Class JavaMainTab
java.lang.Object
org.eclipse.debug.ui.AbstractLaunchConfigurationTab
org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
org.eclipse.jdt.debug.ui.launchConfigurations.JavaMainTab
- All Implemented Interfaces:
org.eclipse.debug.core.IPrototypeAttributesLabelProvider,org.eclipse.debug.ui.ILaunchConfigurationTab,org.eclipse.debug.ui.ILaunchConfigurationTab2
public class JavaMainTab
extends org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
A launch configuration tab that displays and edits project and
main type name launch configuration attributes.
This class may be instantiated.
- Since:
- 3.2
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBoolean launch configuration attribute indicating whether types inheriting a main method should be considered when searching for a main type.static final StringBoolean launch configuration attribute indicating that external jars (on the runtime classpath) should be searched when looking for a main type.Fields inherited from class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
fMainTextFields inherited from class org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
EMPTY_STRING, fModuleName, fProjText -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(org.eclipse.swt.widgets.Composite parent) protected voidcreateMainTypeExtensions(org.eclipse.swt.widgets.Composite parent) This method allows the group for main type to be extended with custom controls.getId()org.eclipse.swt.graphics.ImagegetImage()getName()protected voidShow a dialog that lists all main typesprotected voidvoidinitializeFrom(org.eclipse.debug.core.ILaunchConfiguration config) booleanisValid(org.eclipse.debug.core.ILaunchConfiguration config) voidperformApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config) voidsetDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config) Methods inherited from class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
createMainTypeEditor, getModuleName, initializeMainTypeAndName, updateMainTypeFromConfigMethods inherited from class org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
createProjectEditor, getDefaultListener, getJavaProject, getWorkspaceRoot, handleProjectButtonSelected, mapResourcesMethods inherited from class org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
getContext, getCurrentLaunchConfiguration, initializeJavaProjectMethods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
activated, canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, deactivated, dispose, getAttributeLabel, getAttributesLabelsForPrototype, getControl, getErrorMessage, getHelpContextId, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, getUpdateJobDelay, getWarningMessage, isDirty, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, setWarningMessage, updateLaunchConfigurationDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.debug.ui.ILaunchConfigurationTab
OkToLeaveTab, postApply
-
Field Details
-
ATTR_INCLUDE_EXTERNAL_JARS
Boolean launch configuration attribute indicating that external jars (on the runtime classpath) should be searched when looking for a main type. Default value isfalse.- Since:
- 2.1
-
ATTR_CONSIDER_INHERITED_MAIN
Boolean launch configuration attribute indicating whether types inheriting a main method should be considered when searching for a main type. Default value isfalse.- Since:
- 3.0
-
-
Constructor Details
-
JavaMainTab
public JavaMainTab()
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) -
createMainTypeExtensions
protected void createMainTypeExtensions(org.eclipse.swt.widgets.Composite parent) Description copied from class:org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTabThis method allows the group for main type to be extended with custom controls. All control added via this method come after the main type text editor and search button in the order they are added to the parent composite- Overrides:
createMainTypeExtensionsin classorg.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab- Parameters:
parent- the parent to add to
-
getImage
public org.eclipse.swt.graphics.Image getImage()- Specified by:
getImagein interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab- Overrides:
getImagein classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
-
getName
-
getId
- Overrides:
getIdin classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab- Since:
- 3.3
- See Also:
-
handleSearchButtonSelected
protected void handleSearchButtonSelected()Show a dialog that lists all main types- Specified by:
handleSearchButtonSelectedin classorg.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
-
initializeFrom
public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration config) - Specified by:
initializeFromin interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab- Overrides:
initializeFromin classorg.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
-
isValid
public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config) - Specified by:
isValidin interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab- Overrides:
isValidin classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
-
performApply
public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config) -
setDefaults
public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config) -
initializeAttributes
protected void initializeAttributes()- Overrides:
initializeAttributesin classorg.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
-