Class JavaArgumentsTab
- java.lang.Object
-
- org.eclipse.debug.ui.AbstractLaunchConfigurationTab
-
- org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
-
- org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab
-
- All Implemented Interfaces:
IPrototypeAttributesLabelProvider
,ILaunchConfigurationTab
,ILaunchConfigurationTab2
- Direct Known Subclasses:
AppletArgumentsTab
public class JavaArgumentsTab extends JavaLaunchTab
A launch configuration tab that displays and edits program arguments, VM arguments, and working directory launch configuration attributes.This class may be instantiated.
- Since:
- 2.0
- Restriction:
- This class is not intended to be sub-classed by clients.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
EMPTY_STRING
protected Label
fPrgmArgumentsLabel
protected Text
fPrgmArgumentsText
protected org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock
fVMArgumentsBlock
protected WorkingDirectoryBlock
fWorkingDirectoryBlock
-
Constructor Summary
Constructors Constructor Description JavaArgumentsTab()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activated(ILaunchConfigurationWorkingCopy workingCopy)
void
createControl(Composite parent)
protected org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock
createVMArgsBlock()
protected WorkingDirectoryBlock
createWorkingDirBlock()
Creates a control to specify a working directory.void
deactivated(ILaunchConfigurationWorkingCopy workingCopy)
void
dispose()
protected String
getAttributeValueFrom(Text text)
Returns the string in the text widget, ornull
if empty.String
getErrorMessage()
String
getId()
Image
getImage()
String
getMessage()
String
getName()
protected void
initializeAttributes()
void
initializeFrom(ILaunchConfiguration configuration)
boolean
isValid(ILaunchConfiguration config)
void
performApply(ILaunchConfigurationWorkingCopy configuration)
void
setDefaults(ILaunchConfigurationWorkingCopy config)
Defaults are empty.protected void
setHelpContextId()
Set the help context id for this launch config tab.void
setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)
-
Methods inherited from class org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
getContext, getCurrentLaunchConfiguration, initializeJavaProject
-
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, getAttributeLabel, getAttributesLabelsForPrototype, getControl, getHelpContextId, getLaunchConfigurationDialog, getLaunchManager, getShell, getUpdateJobDelay, getWarningMessage, isDirty, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, 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
-
fPrgmArgumentsLabel
protected Label fPrgmArgumentsLabel
-
fPrgmArgumentsText
protected Text fPrgmArgumentsText
-
fVMArgumentsBlock
protected org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock fVMArgumentsBlock
-
fWorkingDirectoryBlock
protected WorkingDirectoryBlock fWorkingDirectoryBlock
-
EMPTY_STRING
protected static final String EMPTY_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
createVMArgsBlock
protected org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock createVMArgsBlock()
-
createWorkingDirBlock
protected WorkingDirectoryBlock createWorkingDirBlock()
Creates a control to specify a working directory.- Returns:
- the new
WorkingDirectoryBlock
- Since:
- 3.4
-
createControl
public void createControl(Composite parent)
-
setHelpContextId
protected void setHelpContextId()
Set the help context id for this launch config tab. Subclasses may override this method.
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceILaunchConfigurationTab
- Overrides:
dispose
in classAbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.dispose()
-
isValid
public boolean isValid(ILaunchConfiguration config)
- Specified by:
isValid
in interfaceILaunchConfigurationTab
- Overrides:
isValid
in classAbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.isValid(ILaunchConfiguration)
-
setDefaults
public void setDefaults(ILaunchConfigurationWorkingCopy config)
Defaults are empty.
-
initializeFrom
public void initializeFrom(ILaunchConfiguration configuration)
- Specified by:
initializeFrom
in interfaceILaunchConfigurationTab
- Overrides:
initializeFrom
in classJavaLaunchTab
- See Also:
ILaunchConfigurationTab.initializeFrom(ILaunchConfiguration)
-
performApply
public void performApply(ILaunchConfigurationWorkingCopy configuration)
-
getAttributeValueFrom
protected String getAttributeValueFrom(Text text)
Returns the string in the text widget, ornull
if empty.- Parameters:
text
- the widget to get the value from- Returns:
- text or
null
-
getName
public String getName()
- See Also:
ILaunchConfigurationTab.getName()
-
setLaunchConfigurationDialog
public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)
- Specified by:
setLaunchConfigurationDialog
in interfaceILaunchConfigurationTab
- Overrides:
setLaunchConfigurationDialog
in classAbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.setLaunchConfigurationDialog(ILaunchConfigurationDialog)
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessage
in interfaceILaunchConfigurationTab
- Overrides:
getErrorMessage
in classAbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.getErrorMessage()
-
getMessage
public String getMessage()
- Specified by:
getMessage
in interfaceILaunchConfigurationTab
- Overrides:
getMessage
in classAbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.getMessage()
-
getImage
public Image getImage()
- Specified by:
getImage
in interfaceILaunchConfigurationTab
- Overrides:
getImage
in classAbstractLaunchConfigurationTab
- See Also:
ILaunchConfigurationTab.getImage()
-
getId
public String getId()
- Overrides:
getId
in classAbstractLaunchConfigurationTab
- Since:
- 3.3
- See Also:
AbstractLaunchConfigurationTab.getId()
-
activated
public void activated(ILaunchConfigurationWorkingCopy workingCopy)
- Specified by:
activated
in interfaceILaunchConfigurationTab
- Overrides:
activated
in classAbstractLaunchConfigurationTab
-
deactivated
public void deactivated(ILaunchConfigurationWorkingCopy workingCopy)
- Specified by:
deactivated
in interfaceILaunchConfigurationTab
- Overrides:
deactivated
in classAbstractLaunchConfigurationTab
-
initializeAttributes
protected void initializeAttributes()
- Overrides:
initializeAttributes
in classJavaLaunchTab
-
-