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:
IPrototypeAttributesLabelProvider,ILaunchConfigurationTab,ILaunchConfigurationTab2
public class JavaMainTab extends org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTabA 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
Fields Modifier and Type Field Description static StringATTR_CONSIDER_INHERITED_MAINBoolean launch configuration attribute indicating whether types inheriting a main method should be considered when searching for a main type.static StringATTR_INCLUDE_EXTERNAL_JARSBoolean launch configuration attribute indicating that external jars (on the runtime classpath) should be searched when looking for a main type.
-
Constructor Summary
Constructors Constructor Description JavaMainTab()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateControl(Composite parent)protected voidcreateMainTypeExtensions(Composite parent)This method allows the group for main type to be extended with custom controls.StringgetId()ImagegetImage()StringgetName()protected voidhandleSearchButtonSelected()Show a dialog that lists all main typesprotected voidinitializeAttributes()voidinitializeFrom(ILaunchConfiguration config)booleanisValid(ILaunchConfiguration config)voidperformApply(ILaunchConfigurationWorkingCopy config)voidsetDefaults(ILaunchConfigurationWorkingCopy config)-
Methods inherited from class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
createMainTypeEditor, getModuleName, initializeMainTypeAndName, updateMainTypeFromConfig
-
Methods inherited from class org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
createProjectEditor, getDefaultListener, getJavaProject, getWorkspaceRoot, handleProjectButtonSelected, mapResources
-
Methods inherited from class org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
getContext, getCurrentLaunchConfiguration, initializeJavaProject
-
Methods 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, updateLaunchConfigurationDialog
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.debug.ui.ILaunchConfigurationTab
OkToLeaveTab, postApply
-
-
-
-
Field Detail
-
ATTR_INCLUDE_EXTERNAL_JARS
public static final String 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
public static final String 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
-
-
Method Detail
-
createControl
public void createControl(Composite parent)
-
createMainTypeExtensions
protected void createMainTypeExtensions(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- See Also:
SharedJavaMainTab.createMainTypeExtensions(org.eclipse.swt.widgets.Composite)
-
getImage
public Image getImage()
- Specified by:
getImagein interfaceILaunchConfigurationTab- Overrides:
getImagein classAbstractLaunchConfigurationTab
-
getName
public String getName()
-
getId
public String getId()
- Overrides:
getIdin classAbstractLaunchConfigurationTab- Since:
- 3.3
- See Also:
AbstractLaunchConfigurationTab.getId()
-
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(ILaunchConfiguration config)
- Specified by:
initializeFromin interfaceILaunchConfigurationTab- Overrides:
initializeFromin classorg.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
-
isValid
public boolean isValid(ILaunchConfiguration config)
- Specified by:
isValidin interfaceILaunchConfigurationTab- Overrides:
isValidin classAbstractLaunchConfigurationTab
-
performApply
public void performApply(ILaunchConfigurationWorkingCopy config)
-
setDefaults
public void setDefaults(ILaunchConfigurationWorkingCopy config)
-
initializeAttributes
protected void initializeAttributes()
- Overrides:
initializeAttributesin classorg.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
-
-