AddCougaarDialog dialog = new AddCougaarDialog(this, getShell(), vm); dialog.setTitle(CougaarPreferencesMessages.getString("CougaarPreferencePage.editVersion.title")); if (dialog.open() != AddCougaarDialog.OK) { return; }
    private void editCougaar() {        IStructuredSelection selection = (IStructuredSelection) fCougaarList            .getSelection();        // assume it's length one, otherwise this will not be called        ICougaarInstall vm = (ICougaarInstall) selection.getFirstElement();        //	AddVMDialog dialog= new AddVMDialog(this, getShell(), fVMTypes, vm);        //		dialog.setTitle(LauncherMessages.getString("vmPreferencePage.editJRE.title")); //$NON-NLS-1$        //		if (dialog.open() != AddVMDialog.OK) {        //			return;        //		}        fCougaarList.refresh(vm);    }