/** * When the "use default" button is selected, update the "applet viewer class" text. */ private void handleAppletViewerClassDefaultSelected() { setAppletViewerTextEnabledState(); if (isDefaultAppletViewerClassName()) { fAppletViewerClassText.setText(IJavaLaunchConfigurationConstants.DEFAULT_APPLETVIEWER_CLASS); } else { fAppletViewerClassText.setText(EMPTY_STRING); } }
public void performApply(ILaunchConfigurationWorkingCopy config) { config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, fProjText.getText()); config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, fMainText.getText()); mapResources(config); String appletViewerClassName= null; if (!isDefaultAppletViewerClassName()) { appletViewerClassName= fAppletViewerClassText.getText().trim(); if (appletViewerClassName.length() <= 0) { appletViewerClassName= null; } } config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_APPLETVIEWER_CLASS, appletViewerClassName); }
/** * Set the appropriate enabled state for the applet viewer text widget. */ private void setAppletViewerTextEnabledState() { if (isDefaultAppletViewerClassName()) { fAppletViewerClassText.setEnabled(false); } else { fAppletViewerClassText.setEnabled(true); } }