plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/GBeanWizard.java [57:99]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        protected void initControl() {
            if (eObject == null) {
                element.select(GBEAN);
                if (section.getSelectedObject() == null) {
                    element.setEnabled(false);
                }
            }
            else {
                // change eObject to be the value of the JAXBElement
                eObject = ((JAXBElement)eObject).getValue();
                if (Gbean.class.isInstance(eObject)) {
                    textList.get(0).setText(((Gbean)eObject).getName());
                    textList.get(1).setText(((Gbean)eObject).getClazz());
                    element.select(GBEAN);
                }
                else if (Attribute.class.isInstance(eObject)) {
                    textList.get(0).setText(((Attribute)eObject).getName());
                    textList.get(1).setText(((Attribute)eObject).getType());
                    textList.get(2).setText(((Attribute)eObject).getValue());
                    element.select(ATTRIBUTE);
                }
                else if (Pattern.class.isInstance(eObject)) {
                    textList.get(0).setText(((Pattern)eObject).getGroupId());
                    textList.get(1).setText(((Pattern)eObject).getArtifactId());
                    textList.get(2).setText(((Pattern)eObject).getVersion());
                    textList.get(3).setText(((Pattern)eObject).getModule());
                    textList.get(4).setText(((Pattern)eObject).getType());
                    textList.get(5).setText(((Pattern)eObject).getCustomFoo());
                    element.select(DEPENDENCY);
                }
                else if (Reference.class.isInstance(eObject)) {
                    textList.get(0).setText(((Reference)eObject).getName());
                    textList.get(1).setText(((Reference)eObject).getGroupId());
                    textList.get(2).setText(((Reference)eObject).getArtifactId());
                    textList.get(3).setText(((Reference)eObject).getVersion());
                    textList.get(4).setText(((Reference)eObject).getModule());
                    textList.get(5).setText(((Reference)eObject).getType());
                    textList.get(6).setText(((Reference)eObject).getCustomFoo());
                    element.select(REFERENCE);
                }
                element.setEnabled(false);
            }
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/wizards/GBeanWizard.java [57:99]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        protected void initControl() {
            if (eObject == null) {
                element.select(GBEAN);
                if (section.getSelectedObject() == null) {
                    element.setEnabled(false);
                }
            }
            else {
                // change eObject to be the value of the JAXBElement
                eObject = ((JAXBElement)eObject).getValue();
                if (Gbean.class.isInstance(eObject)) {
                    textList.get(0).setText(((Gbean)eObject).getName());
                    textList.get(1).setText(((Gbean)eObject).getClazz());
                    element.select(GBEAN);
                }
                else if (Attribute.class.isInstance(eObject)) {
                    textList.get(0).setText(((Attribute)eObject).getName());
                    textList.get(1).setText(((Attribute)eObject).getType());
                    textList.get(2).setText(((Attribute)eObject).getValue());
                    element.select(ATTRIBUTE);
                }
                else if (Pattern.class.isInstance(eObject)) {
                    textList.get(0).setText(((Pattern)eObject).getGroupId());
                    textList.get(1).setText(((Pattern)eObject).getArtifactId());
                    textList.get(2).setText(((Pattern)eObject).getVersion());
                    textList.get(3).setText(((Pattern)eObject).getModule());
                    textList.get(4).setText(((Pattern)eObject).getType());
                    textList.get(5).setText(((Pattern)eObject).getCustomFoo());
                    element.select(DEPENDENCY);
                }
                else if (Reference.class.isInstance(eObject)) {
                    textList.get(0).setText(((Reference)eObject).getName());
                    textList.get(1).setText(((Reference)eObject).getGroupId());
                    textList.get(2).setText(((Reference)eObject).getArtifactId());
                    textList.get(3).setText(((Reference)eObject).getVersion());
                    textList.get(4).setText(((Reference)eObject).getModule());
                    textList.get(5).setText(((Reference)eObject).getType());
                    textList.get(6).setText(((Reference)eObject).getCustomFoo());
                    element.select(REFERENCE);
                }
                element.setEnabled(false);
            }
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



