org.eclipse.jdt.debug.ui.launchConfigurations
Class JavaMainTab
java.lang.Object
|
+--org.eclipse.debug.ui.AbstractLaunchConfigurationTab
|
+--org.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab
|
+--org.eclipse.jdt.debug.ui.launchConfigurations.JavaMainTab
- All Implemented Interfaces:
- org.eclipse.jdt.internal.debug.ui.launcher.IEntriesChangedListener, ILaunchConfigurationTab
- public class JavaMainTab
- extends org.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab
A launch configuration tab that displays and edits project and
main type name launch configuration attributes.
This class may be instantiated. This class is not intended to be subclassed.
- Since:
- 2.0
Methods inherited from class org.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab |
entriesChanged, getContext, initializeJavaProject |
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab |
canSave, createPushButton, createRadioButton, createVerticalSpacer, getControl, getErrorMessage, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, isDirty, launched, setAttribute, setControl, setDirty, setErrorMessage, setLaunchConfigurationDialog, setMessage, updateLaunchConfigurationDialog |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fProjLabel
protected Label fProjLabel
fProjText
protected Text fProjText
fProjButton
protected Button fProjButton
fMainLabel
protected Label fMainLabel
fMainText
protected Text fMainText
fSearchButton
protected Button fSearchButton
fSearchExternalJarsCheckButton
protected Button fSearchExternalJarsCheckButton
fStopInMainCheckButton
protected Button fStopInMainCheckButton
EMPTY_STRING
protected static final String EMPTY_STRING
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 is
false
.
- Since:
- 2.1
JavaMainTab
public JavaMainTab()
createControl
public void createControl(Composite parent)
- Overrides:
createControl
in class AbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.createControl(Composite)
initializeFrom
public void initializeFrom(ILaunchConfiguration config)
- Overrides:
initializeFrom
in class AbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.initializeFrom(ILaunchConfiguration)
updateProjectFromConfig
protected void updateProjectFromConfig(ILaunchConfiguration config)
updateMainTypeFromConfig
protected void updateMainTypeFromConfig(ILaunchConfiguration config)
updateStopInMainFromConfig
protected void updateStopInMainFromConfig(ILaunchConfiguration configuration)
updateExternalJars
protected void updateExternalJars(ILaunchConfiguration configuration)
performApply
public void performApply(ILaunchConfigurationWorkingCopy config)
- Overrides:
performApply
in class AbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.performApply(ILaunchConfigurationWorkingCopy)
dispose
public void dispose()
- Overrides:
dispose
in class AbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.dispose()
handleSearchButtonSelected
protected void handleSearchButtonSelected()
- Show a dialog that lists all main types
handleProjectButtonSelected
protected void handleProjectButtonSelected()
- Show a dialog that lets the user select a project. This in turn provides
context for the main type, allowing the user to key a main type name, or
constraining the search for main types to the specified project.
chooseJavaProject
protected IJavaProject chooseJavaProject()
- Realize a Java Project selection dialog and return the first selected project,
or null if there was none.
getJavaProject
protected IJavaProject getJavaProject()
- Return the IJavaProject corresponding to the project name in the project name
text field, or null if the text does not match a project name.
isValid
public boolean isValid(ILaunchConfiguration config)
- Overrides:
isValid
in class AbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.isValid(ILaunchConfiguration)
setDefaults
public void setDefaults(ILaunchConfigurationWorkingCopy config)
- Overrides:
setDefaults
in class AbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.setDefaults(ILaunchConfigurationWorkingCopy)
initializeMainTypeAndName
protected void initializeMainTypeAndName(IJavaElement javaElement,
ILaunchConfigurationWorkingCopy config)
- Set the main type & name attributes on the working copy based on the IJavaElement
getName
public String getName()
- Overrides:
getName
in class AbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.getName()
getImage
public Image getImage()
- Overrides:
getImage
in class AbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.getImage()
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.