Class JavaJRETab
java.lang.Object
org.eclipse.debug.ui.AbstractLaunchConfigurationTab
org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab
- All Implemented Interfaces:
org.eclipse.debug.core.IPrototypeAttributesLabelProvider
,org.eclipse.debug.ui.ILaunchConfigurationTab
,org.eclipse.debug.ui.ILaunchConfigurationTab2
A launch configuration tab that displays and edits the VM install
launch configuration attributes.
Clients may call AbstractLaunchConfigurationTab.setHelpContextId(String)
on this tab prior to control
creation to alter the default context help associated with this tab.
This class may be instantiated.
- Since:
- 2.0
- Restriction:
- This class is not intended to be sub-classed by clients.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.eclipse.debug.ui.ILaunchConfigurationTab
protected org.eclipse.swt.widgets.Composite
protected boolean
protected org.eclipse.jdt.internal.debug.ui.jres.JREsComboBlock
protected org.eclipse.debug.core.ILaunchConfiguration
protected boolean
protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy
-
Constructor Summary
ConstructorDescriptionConstructorJavaJRETab
(boolean checkForClasspathDependenciesChange) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
activated
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) void
createControl
(org.eclipse.swt.widgets.Composite parent) void
deactivated
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) void
dispose()
protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor
protected org.eclipse.debug.ui.ILaunchConfigurationTab
protected org.eclipse.swt.widgets.Composite
Overridden here so that any error message in the dynamic UI gets returned.getId()
org.eclipse.swt.graphics.Image
getImage()
protected IJavaProject
Returns the Java project associated with the current config being edited, ornull
if none.protected org.eclipse.debug.core.ILaunchConfiguration
protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy
getName()
protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor
protected org.eclipse.debug.ui.ILaunchConfigurationTab
Return the class that implementsILaunchConfigurationTab
that is registered against the install type of the currently selected VM.protected void
Notification that the user changed the selection in the JRE combination box.protected void
void
initializeFrom
(org.eclipse.debug.core.ILaunchConfiguration configuration) protected boolean
boolean
isValid
(org.eclipse.debug.core.ILaunchConfiguration config) protected void
Show the contributed piece of UI that was registered for the install type of the currently selected VM.boolean
void
performApply
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration) void
protected void
void
setDefaults
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config) protected void
setDynamicTab
(org.eclipse.debug.ui.ILaunchConfigurationTab tab) protected void
setDynamicTabHolder
(org.eclipse.swt.widgets.Composite tabHolder) protected void
setLaunchConfiguration
(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration) protected void
setLaunchConfigurationWorkingCopy
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) void
setVMSpecificArgumentsVisible
(boolean visible) Sets whether this tab will display the VM specific arguments area if a JRE supports VM specific arguments.protected void
updateJREFromConfig
(org.eclipse.debug.core.ILaunchConfiguration config) This method updates the jre selection from theILaunchConfiguration
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, getMessage, getShell, getUpdateJobDelay, getWarningMessage, isDirty, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, setWarningMessage, updateLaunchConfigurationDialog
-
Field Details
-
fJREBlock
protected org.eclipse.jdt.internal.debug.ui.jres.JREsComboBlock fJREBlock -
fDynamicTab
protected org.eclipse.debug.ui.ILaunchConfigurationTab fDynamicTab -
fDynamicTabHolder
protected org.eclipse.swt.widgets.Composite fDynamicTabHolder -
fUseDynamicArea
protected boolean fUseDynamicArea -
fWorkingCopy
protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy fWorkingCopy -
fLaunchConfiguration
protected org.eclipse.debug.core.ILaunchConfiguration fLaunchConfiguration -
fIsInitializing
protected boolean fIsInitializing
-
-
Constructor Details
-
JavaJRETab
public JavaJRETab()Constructor -
JavaJRETab
public JavaJRETab(boolean checkForClasspathDependenciesChange) Constructor- Parameters:
checkForClasspathDependenciesChange
- if this is true, and the user changes between a non-modular jvm and a modular jvm, the user will be asked to apply changes before the tab is exited and the tabs will be refreshed.- Since:
- 3.9
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
dispose
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) - See Also:
-
ILaunchConfigurationTab.createControl(Composite)
-
setDynamicTabHolder
protected void setDynamicTabHolder(org.eclipse.swt.widgets.Composite tabHolder) -
getDynamicTabHolder
protected org.eclipse.swt.widgets.Composite getDynamicTabHolder() -
setDynamicTab
protected void setDynamicTab(org.eclipse.debug.ui.ILaunchConfigurationTab tab) -
getDynamicTab
protected org.eclipse.debug.ui.ILaunchConfigurationTab getDynamicTab() -
setDefaults
public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config) - See Also:
-
ILaunchConfigurationTab.setDefaults(ILaunchConfigurationWorkingCopy)
-
initializeFrom
public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration) - Specified by:
initializeFrom
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
initializeFrom
in classJavaLaunchTab
- See Also:
-
ILaunchConfigurationTab.initializeFrom(ILaunchConfiguration)
-
performApply
public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration) - See Also:
-
ILaunchConfigurationTab.performApply(ILaunchConfigurationWorkingCopy)
-
isValid
public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config) - Specified by:
isValid
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
isValid
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
- See Also:
-
ILaunchConfigurationTab.isValid(ILaunchConfiguration)
-
getName
- See Also:
-
ILaunchConfigurationTab.getName()
-
getImage
public org.eclipse.swt.graphics.Image getImage()- Specified by:
getImage
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
getImage
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
- See Also:
-
ILaunchConfigurationTab.getImage()
-
getId
- Overrides:
getId
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
- Since:
- 3.3
- See Also:
-
AbstractLaunchConfigurationTab.getId()
-
updateJREFromConfig
protected void updateJREFromConfig(org.eclipse.debug.core.ILaunchConfiguration config) This method updates the jre selection from theILaunchConfiguration
- Parameters:
config
- the config to update from
-
handleSelectedJREChanged
protected void handleSelectedJREChanged()Notification that the user changed the selection in the JRE combination box. -
selectJRE
-
getTabForCurrentJRE
protected org.eclipse.debug.ui.ILaunchConfigurationTab getTabForCurrentJRE()Return the class that implementsILaunchConfigurationTab
that is registered against the install type of the currently selected VM.- Returns:
- the backing
ILaunchConfigurationTab
-
loadDynamicJREArea
protected void loadDynamicJREArea()Show the contributed piece of UI that was registered for the install type of the currently selected VM. -
getLaunchConfigurationWorkingCopy
protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy getLaunchConfigurationWorkingCopy() -
getErrorMessage
Overridden here so that any error message in the dynamic UI gets returned.- Specified by:
getErrorMessage
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
getErrorMessage
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
- See Also:
-
ILaunchConfigurationTab.getErrorMessage()
-
setLaunchConfigurationWorkingCopy
protected void setLaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) -
getLaunchConfiguration
protected org.eclipse.debug.core.ILaunchConfiguration getLaunchConfiguration() -
setLaunchConfiguration
protected void setLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration) -
setVMSpecificArgumentsVisible
public void setVMSpecificArgumentsVisible(boolean visible) Sets whether this tab will display the VM specific arguments area if a JRE supports VM specific arguments.- Parameters:
visible
- whether this tab will display the VM specific arguments area if a JRE supports VM specific arguments
-
isUseDynamicJREArea
protected boolean isUseDynamicJREArea() -
getDefaultJREDescriptor
protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor getDefaultJREDescriptor() -
getSpecificJREDescriptor
protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor getSpecificJREDescriptor() -
getJavaProject
Returns the Java project associated with the current config being edited, ornull
if none.- Returns:
- java project or
null
-
activated
public void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) - Specified by:
activated
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
activated
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
-
deactivated
public void deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) - Specified by:
deactivated
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
deactivated
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
-
postApply
public void postApply()- Since:
- 3.9
-
OkToLeaveTab
public boolean OkToLeaveTab()- Since:
- 3.9
-
initializeAttributes
protected void initializeAttributes()- Overrides:
initializeAttributes
in classJavaLaunchTab
-