plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServiceRefWizard.java [54:96]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        protected void initControl () {
            if (eObject == null) {
                element.select(SERVICE_REF);
                ServiceRef serviceRef = (ServiceRef)section.getSelectedObject();
                // use of ports and port completions are mutually exclusive
                if (serviceRef == null) {
                    element.setEnabled(false);
                } else if (serviceRef.getServiceCompletion() == null) {
                    element.remove(PORT_COMPLETION);
                } else {
                    element.remove(PORT);
                }
            }
            else {
                if (ServiceRef.class.isInstance(eObject)) {
                    textList.get(0).setText(((ServiceRef)eObject).getServiceRefName());
                    if (((ServiceRef)eObject).getServiceCompletion() != null) {
                        textList.get(1).setText(((ServiceRef)eObject).getServiceCompletion().getServiceName());
                    }
                    element.select(SERVICE_REF);
                }
                else if (Port.class.isInstance(eObject)) {
                    textList.get(0).setText(((Port)eObject).getPortName());
                    textList.get(1).setText(((Port)eObject).getProtocol());
                    textList.get(2).setText(((Port)eObject).getHost());
                    textList.get(3).setText(((Port)eObject).getPort().toString());
                    textList.get(4).setText(((Port)eObject).getUri());
                    textList.get(5).setText(((Port)eObject).getCredentialsName());
                    element.select(PORT);
                }
                else if (PortCompletion.class.isInstance(eObject)) {
                    textList.get(0).setText(((PortCompletion)eObject).getPort().getPortName());
                    textList.get(1).setText(((PortCompletion)eObject).getPort().getProtocol());
                    textList.get(2).setText(((PortCompletion)eObject).getPort().getHost());
                    textList.get(3).setText(((PortCompletion)eObject).getPort().getPort().toString());
                    textList.get(4).setText(((PortCompletion)eObject).getPort().getUri());
                    textList.get(5).setText(((PortCompletion)eObject).getPort().getCredentialsName());
                    textList.get(6).setText(((PortCompletion)eObject).getBindingName());
                    element.select(PORT_COMPLETION);
                }
                element.setEnabled(false);
            }
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/wizards/ServiceRefWizard.java [54:96]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        protected void initControl () {
            if (eObject == null) {
                element.select(SERVICE_REF);
                ServiceRef serviceRef = (ServiceRef)section.getSelectedObject();
                // use of ports and port completions are mutually exclusive
                if (serviceRef == null) {
                    element.setEnabled(false);
                } else if (serviceRef.getServiceCompletion() == null) {
                    element.remove(PORT_COMPLETION);
                } else {
                    element.remove(PORT);
                }
            }
            else {
                if (ServiceRef.class.isInstance(eObject)) {
                    textList.get(0).setText(((ServiceRef)eObject).getServiceRefName());
                    if (((ServiceRef)eObject).getServiceCompletion() != null) {
                        textList.get(1).setText(((ServiceRef)eObject).getServiceCompletion().getServiceName());
                    }
                    element.select(SERVICE_REF);
                }
                else if (Port.class.isInstance(eObject)) {
                    textList.get(0).setText(((Port)eObject).getPortName());
                    textList.get(1).setText(((Port)eObject).getProtocol());
                    textList.get(2).setText(((Port)eObject).getHost());
                    textList.get(3).setText(((Port)eObject).getPort().toString());
                    textList.get(4).setText(((Port)eObject).getUri());
                    textList.get(5).setText(((Port)eObject).getCredentialsName());
                    element.select(PORT);
                }
                else if (PortCompletion.class.isInstance(eObject)) {
                    textList.get(0).setText(((PortCompletion)eObject).getPort().getPortName());
                    textList.get(1).setText(((PortCompletion)eObject).getPort().getProtocol());
                    textList.get(2).setText(((PortCompletion)eObject).getPort().getHost());
                    textList.get(3).setText(((PortCompletion)eObject).getPort().getPort().toString());
                    textList.get(4).setText(((PortCompletion)eObject).getPort().getUri());
                    textList.get(5).setText(((PortCompletion)eObject).getPort().getCredentialsName());
                    textList.get(6).setText(((PortCompletion)eObject).getBindingName());
                    element.select(PORT_COMPLETION);
                }
                element.setEnabled(false);
            }
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



