Package com.sun.enterprise.tools.upgrade.common

Examples of com.sun.enterprise.tools.upgrade.common.DomainInfo


        });

        this.addComponetWithConstraints(domainsComboBox,getContentPane(), 0, 1, 1,1, GridBagConstraints.HORIZONTAL, new Insets(0, 10, 10, 60), 1.0,0.0);
        if(commonInfo.getSourceVersion().equals(UpgradeConstants.VERSION_7X)) {
            domainNameLabel.setText(stringManager.getString("upgrade.gui.adddomainpanel.instanceBoxLabel"));
            DomainInfo dInfo = (DomainInfo)domainMap.get((String)domainsComboBox.getSelectedItem());
            instanceList = dInfo.getInstanceNames();
            instanceList.remove("admin-server");
            instancesComboBox.setModel(new javax.swing.DefaultComboBoxModel(instanceList.toArray()));
            instancesComboBox.addItemListener(new java.awt.event.ItemListener() {
                public void itemStateChanged(java.awt.event.ItemEvent evt) {
                    instancesComboBoxItemStateChanged();
View Full Code Here


        if(clusterInfoList == null)
            clusterInfoList = new ArrayList();
        clusterInfoList.clear();
        for(java.util.Iterator dItr =
                commonInfo.getDomainMapping().keySet().iterator(); dItr.hasNext();){
            DomainInfo dInfo = (DomainInfo)commonInfo.getDomainMapping().get(dItr.next());
            String domainName = dInfo.getDomainName();
            String domainXmlFile = dInfo.getDomainPath() + File.separator +
                    UpgradeConstants.AS_CONFIG_DIRECTORY + File.separator +
                    "domain.xml";
            //Build the clusterInfoList
            UpgradeUtils.getUpgradeUtils(commonInfo).updateClusterList(
                    domainXmlFile, domainName, clusterInfoList);
View Full Code Here

        }
    }
   
    private void domainsComboBoxItemStateChanged() {
        // Add your handling code here:
        DomainInfo dInfo = (DomainInfo)domainMap.get((String)domainsComboBox.getSelectedItem());
        instanceList = dInfo.getInstanceNames();
        if(commonInfo.getSourceVersion().equals(UpgradeConstants.VERSION_7X)){
            instanceList.remove("admin-server");
        }
        instancesComboBox.setModel(new javax.swing.DefaultComboBoxModel(instanceList.toArray()));
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.tools.upgrade.common.DomainInfo

Copyright © 2018 www.massapicom. 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.