IProject project = null; String defaultVersion = ""; if (javaProject != null) { project = javaProject.getProject(); defaultVersion = CougaarPlugin.getCougaarPreference(project .getProject(), ICougaarConstants.COUGAAR_VERSION);
TableItem tableItem = null; if (tableItem == null) { tableItem = getTableItemForName(nameValuePair[0]); if (tableItem == null) { tableItem = new TableItem(this.fParametersTable, SWT.NONE); }
    protected void displayDefaultCougaarParameters() {        ILaunchConfiguration config = getLaunchConfiguration();        ILaunchConfigurationWorkingCopy wc = null;        try {            if (config.isWorkingCopy()) {                wc = (ILaunchConfigurationWorkingCopy) config;            } else {                wc = config.getWorkingCopy();            }        } catch (CoreException e) {            JDIDebugUIPlugin.log(e);        }        IJavaProject javaProject = getJavaProject(wc);        IProject project = null;        String defaultVersion = "";        if (javaProject != null) {            project = javaProject.getProject();            defaultVersion = CougaarPlugin.getCougaarPreference(project                    .getProject(), ICougaarConstants.COUGAAR_VERSION);        }        HashMap map = new HashMap();        Enumeration keys = CougaarINIParameters.getKeys();        while (keys.hasMoreElements()) {            String[] nameValuePair = new String[2];            nameValuePair[0] = (String) keys.nextElement();            if ((defaultVersion != null) && !defaultVersion.equals("")) {                String cip = "";                cip = CougaarPlugin.getCougaarBaseLocation(defaultVersion);                if ((cip != null) && !cip.equals("")) {                    nameValuePair[1] = replaceCIP(cip, CougaarXMLParameters.getString(                            nameValuePair[0]));                                                 }                map.put(nameValuePair[0], nameValuePair[1]);                TableItem tableItem = null;                if (tableItem == null) {                    tableItem = getTableItemForName(nameValuePair[0]);                    if (tableItem == null) {                        tableItem = new TableItem(this.fParametersTable,                                SWT.NONE);                    }                }                tableItem.setText(nameValuePair);                this.fParametersTable                        .setSelection(new TableItem[] { tableItem});            }        }        setDirty(true);        performApply(wc);    }