Examples of EntryData


Examples of org.wso2.carbon.localentry.dos.EntryData

            lock.lock();
            SynapseConfiguration synapseConfiguration = getSynapseConfiguration();
            Map gloabalEntiesMap = synapseConfiguration.getDefinedEntries();
            ArrayList<EntryData> globalEntryList = new ArrayList<EntryData>();
            for (Object o : gloabalEntiesMap.entrySet()) {
                EntryData data = new EntryData();
                Map.Entry entry = (Map.Entry) o;
                String key = (String) entry.getKey();
                if (SynapseConstants.SERVER_IP.equals(key)
                        || SynapseConstants.SERVER_HOST.equals(key)) {
                    continue;
                }
                if (entry.getValue() instanceof Entry) {
                    Entry value = (Entry) entry.getValue();
                    data.setName(key);
                    data.setDescription(value.getDescription());
                    switch (value.getType()) {
                        case Entry.REMOTE_ENTRY:
                            data.setType("Registry Key");
                            break;
                        case Entry.INLINE_TEXT:
                            data.setType("Inline Text");
                            break;
                        case Entry.INLINE_XML:
                            data.setType("Inline XML");
                            break;
                        case Entry.URL_SRC:
                            data.setType("Source URL");
                            break;
                        default:
                            data.setType("Unknown");
                            break;
                    }

                    if (value.getValue() instanceof String) {
                        String s = (String) value.getValue();
                        data.setValue(s);
                    } else if (value.getType() == Entry.URL_SRC) {
                        String s = value.getSrc().toString();
                        data.setValue(s);
                    } else if (value.getType() == Entry.REMOTE_ENTRY) {
                        data.setValue(value.getKey());
                    } else {
                        if (value.getValue() != null) {
                            data.setValue(value.getValue().toString());
                        } else {
                            data.setValue("");
                        }
                    }

                    globalEntryList.add(data);
                }
View Full Code Here

Examples of vazkii.botania.api.lexicon.LexiconRecipeMappings.EntryData

    GL11.glPopMatrix();

    if(relativeMouseX >= xPos && relativeMouseY >= yPos && relativeMouseX <= xPos + 16 && relativeMouseY <= yPos + 16) {
      tooltipStack = stack;

      EntryData data = LexiconRecipeMappings.getDataForStack(tooltipStack);
      if(data != null && (data.entry != gui.getEntry() || data.page != gui.getPageOn())) {
        tooltipEntry = true;

        if(!mouseDownLastTick && mouseDown && GuiScreen.isShiftKeyDown()) {
          GuiLexiconEntry newGui = new GuiLexiconEntry(data.entry, (GuiScreen) gui);
View Full Code Here

Examples of vazkii.botania.api.lexicon.LexiconRecipeMappings.EntryData

    GL11.glPopMatrix();

    if(relativeMouseX >= xPos && relativeMouseY >= yPos && relativeMouseX <= xPos + 16 && relativeMouseY <= yPos + 16) {
      tooltipStack = stack;

      EntryData data = LexiconRecipeMappings.getDataForStack(tooltipStack);
      if(data != null && (data.entry != gui.getEntry() || data.page != gui.getPageOn())) {
        tooltipEntry = true;

        if(!mouseDownLastTick && mouseDown && GuiScreen.isShiftKeyDown()) {
          GuiLexiconEntry newGui = new GuiLexiconEntry(data.entry, (GuiScreen) gui);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.