|
Eclipse JDT 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.debug.ui.AbstractLaunchConfigurationTab | +--org.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab | +--org.eclipse.jdt.debug.ui.launchConfigurations.JavaMainTab
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.
Field Summary | |
static 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. |
protected static String |
EMPTY_STRING
|
protected Label |
fMainLabel
|
protected Text |
fMainText
|
protected Button |
fProjButton
|
protected Label |
fProjLabel
|
protected Text |
fProjText
|
protected Button |
fSearchButton
|
protected Button |
fSearchExternalJarsCheckButton
|
protected Button |
fStopInMainCheckButton
|
Constructor Summary | |
JavaMainTab()
|
Method Summary | |
protected IJavaProject |
chooseJavaProject()
Realize a Java Project selection dialog and return the first selected project, or null if there was none. |
void |
createControl(Composite parent)
|
void |
dispose()
|
Image |
getImage()
|
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. |
String |
getName()
|
protected void |
handleProjectButtonSelected()
Show a dialog that lets the user select a project. |
protected void |
handleSearchButtonSelected()
Show a dialog that lists all main types |
void |
initializeFrom(ILaunchConfiguration config)
|
protected void |
initializeMainTypeAndName(IJavaElement javaElement,
ILaunchConfigurationWorkingCopy config)
Set the main type & name attributes on the working copy based on the IJavaElement |
boolean |
isValid(ILaunchConfiguration config)
|
void |
performApply(ILaunchConfigurationWorkingCopy config)
|
void |
setDefaults(ILaunchConfigurationWorkingCopy config)
|
protected void |
updateExternalJars(ILaunchConfiguration configuration)
|
protected void |
updateMainTypeFromConfig(ILaunchConfiguration config)
|
protected void |
updateProjectFromConfig(ILaunchConfiguration config)
|
protected void |
updateStopInMainFromConfig(ILaunchConfiguration configuration)
|
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 |
Field Detail |
protected Label fProjLabel
protected Text fProjText
protected Button fProjButton
protected Label fMainLabel
protected Text fMainText
protected Button fSearchButton
protected Button fSearchExternalJarsCheckButton
protected Button fStopInMainCheckButton
protected static final String EMPTY_STRING
public static final String ATTR_INCLUDE_EXTERNAL_JARS
false
.
Constructor Detail |
public JavaMainTab()
Method Detail |
public void createControl(Composite parent)
createControl
in interface ILaunchConfigurationTab
createControl
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.createControl(Composite)
public void initializeFrom(ILaunchConfiguration config)
initializeFrom
in interface ILaunchConfigurationTab
initializeFrom
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.initializeFrom(ILaunchConfiguration)
protected void updateProjectFromConfig(ILaunchConfiguration config)
protected void updateMainTypeFromConfig(ILaunchConfiguration config)
protected void updateStopInMainFromConfig(ILaunchConfiguration configuration)
protected void updateExternalJars(ILaunchConfiguration configuration)
public void performApply(ILaunchConfigurationWorkingCopy config)
performApply
in interface ILaunchConfigurationTab
performApply
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.performApply(ILaunchConfigurationWorkingCopy)
public void dispose()
dispose
in interface ILaunchConfigurationTab
dispose
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.dispose()
protected void handleSearchButtonSelected()
protected void handleProjectButtonSelected()
protected IJavaProject chooseJavaProject()
protected IJavaProject getJavaProject()
public boolean isValid(ILaunchConfiguration config)
isValid
in interface ILaunchConfigurationTab
isValid
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.isValid(ILaunchConfiguration)
public void setDefaults(ILaunchConfigurationWorkingCopy config)
setDefaults
in interface ILaunchConfigurationTab
setDefaults
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.setDefaults(ILaunchConfigurationWorkingCopy)
protected void initializeMainTypeAndName(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config)
public String getName()
getName
in interface ILaunchConfigurationTab
getName
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.getName()
public Image getImage()
getImage
in interface ILaunchConfigurationTab
getImage
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.getImage()
|
Eclipse JDT 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |