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:
IPrototypeAttributesLabelProvider,ILaunchConfigurationTab,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
FieldsModifier and TypeFieldDescriptionprotected ILaunchConfigurationTabprotected Compositeprotected booleanprotected org.eclipse.jdt.internal.debug.ui.jres.JREsComboBlockprotected ILaunchConfigurationprotected booleanprotected ILaunchConfigurationWorkingCopy -
Constructor Summary
ConstructorsConstructorDescriptionConstructorJavaJRETab(boolean checkForClasspathDependenciesChange) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidactivated(ILaunchConfigurationWorkingCopy workingCopy) voidcreateControl(Composite parent) voiddeactivated(ILaunchConfigurationWorkingCopy workingCopy) voiddispose()protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptorprotected ILaunchConfigurationTabprotected CompositeOverridden here so that any error message in the dynamic UI gets returned.getId()getImage()protected IJavaProjectReturns the Java project associated with the current config being edited, ornullif none.protected ILaunchConfigurationprotected ILaunchConfigurationWorkingCopygetName()protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptorprotected ILaunchConfigurationTabReturn the class that implementsILaunchConfigurationTabthat is registered against the install type of the currently selected VM.protected voidNotification that the user changed the selection in the JRE combination box.protected voidvoidinitializeFrom(ILaunchConfiguration configuration) protected booleanbooleanisValid(ILaunchConfiguration config) protected voidShow the contributed piece of UI that was registered for the install type of the currently selected VM.booleanvoidperformApply(ILaunchConfigurationWorkingCopy configuration) voidprotected voidvoidprotected voidprotected voidsetDynamicTabHolder(Composite tabHolder) protected voidsetLaunchConfiguration(ILaunchConfiguration launchConfiguration) protected voidvoidsetVMSpecificArgumentsVisible(boolean visible) Sets whether this tab will display the VM specific arguments area if a JRE supports VM specific arguments.protected voidThis method updates the jre selection from theILaunchConfigurationMethods inherited from class org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
getContext, getCurrentLaunchConfiguration, initializeJavaProjectMethods 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
-
fDynamicTabHolder
-
fUseDynamicArea
protected boolean fUseDynamicArea -
fWorkingCopy
-
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:
disposein interfaceILaunchConfigurationTab- Overrides:
disposein classAbstractLaunchConfigurationTab
-
createControl
-
setDynamicTabHolder
-
getDynamicTabHolder
-
setDynamicTab
-
getDynamicTab
-
setDefaults
-
initializeFrom
- Specified by:
initializeFromin interfaceILaunchConfigurationTab- Overrides:
initializeFromin classJavaLaunchTab- See Also:
-
performApply
-
isValid
- Specified by:
isValidin interfaceILaunchConfigurationTab- Overrides:
isValidin classAbstractLaunchConfigurationTab- See Also:
-
getName
- See Also:
-
getImage
- Specified by:
getImagein interfaceILaunchConfigurationTab- Overrides:
getImagein classAbstractLaunchConfigurationTab- See Also:
-
getId
- Overrides:
getIdin classAbstractLaunchConfigurationTab- Since:
- 3.3
- See Also:
-
updateJREFromConfig
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
Return the class that implementsILaunchConfigurationTabthat 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
-
getErrorMessage
Overridden here so that any error message in the dynamic UI gets returned.- Specified by:
getErrorMessagein interfaceILaunchConfigurationTab- Overrides:
getErrorMessagein classAbstractLaunchConfigurationTab- See Also:
-
setLaunchConfigurationWorkingCopy
-
getLaunchConfiguration
-
setLaunchConfiguration
-
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, ornullif none.- Returns:
- java project or
null
-
activated
- Specified by:
activatedin interfaceILaunchConfigurationTab- Overrides:
activatedin classAbstractLaunchConfigurationTab
-
deactivated
- Specified by:
deactivatedin interfaceILaunchConfigurationTab- Overrides:
deactivatedin classAbstractLaunchConfigurationTab
-
postApply
public void postApply()- Since:
- 3.9
-
OkToLeaveTab
public boolean OkToLeaveTab()- Since:
- 3.9
-
initializeAttributes
protected void initializeAttributes()- Overrides:
initializeAttributesin classJavaLaunchTab
-