1 11 package org.eclipse.debug.internal.ui.launchConfigurations; 12 13 14 import org.eclipse.debug.core.ILaunchConfiguration; 15 import org.eclipse.debug.internal.ui.IDebugHelpContextIds; 16 import org.eclipse.debug.ui.IDebugUIConstants; 17 import org.eclipse.swt.widgets.Composite; 18 import org.eclipse.swt.widgets.Shell; 19 20 23 public class LaunchConfigurationDialog extends LaunchConfigurationPropertiesDialog { 24 25 32 public LaunchConfigurationDialog(Shell shell, ILaunchConfiguration launchConfiguration, LaunchGroupExtension group) { 33 super(shell, launchConfiguration, group); 34 } 35 36 39 protected void createButtonsForButtonBar(Composite parent) { 40 createButton(parent, ID_LAUNCH_BUTTON, getLaunchButtonText(), true); 41 createButton(parent, ID_CLOSE_BUTTON, LaunchConfigurationsMessages.LaunchConfigurationDialog_Close_1, false); 42 } 43 44 47 protected String getShellTitle() { 48 return getLaunchConfiguration().getName(); 49 } 50 51 54 protected String getTitleAreaTitle() { 55 return LaunchConfigurationsMessages.LaunchConfigurationDialog_Modify_attributes_and_launch__1; 56 } 57 58 61 protected String getHelpContextId() { 62 return IDebugHelpContextIds.SINGLE_LAUNCH_CONFIGURATION_DIALOG; 63 } 64 65 68 public void updateButtons() { 69 getTabViewer().refresh(); 71 getButton(ID_LAUNCH_BUTTON).setEnabled(getTabViewer().canLaunch() & getTabViewer().canLaunchWithModes() & !getTabViewer().hasDuplicateDelegates()); 72 73 } 74 75 78 protected String getDialogSettingsSectionName() { 79 return IDebugUIConstants.PLUGIN_ID + ".SINGLE_LAUNCH_CONFIGURATION_DIALOG_SECTION"; } 81 } 82 | Popular Tags |