public class JavaJRETab extends JavaLaunchTab
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.
Modifier and Type | Field and Description |
---|---|
protected ILaunchConfigurationTab |
fDynamicTab |
protected Composite |
fDynamicTabHolder |
protected boolean |
fIsInitializing |
protected org.eclipse.jdt.internal.debug.ui.jres.JREsComboBlock |
fJREBlock |
protected ILaunchConfiguration |
fLaunchConfiguration |
protected boolean |
fUseDynamicArea |
protected ILaunchConfigurationWorkingCopy |
fWorkingCopy |
Constructor and Description |
---|
JavaJRETab()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
activated(ILaunchConfigurationWorkingCopy workingCopy) |
void |
createControl(Composite parent) |
void |
deactivated(ILaunchConfigurationWorkingCopy workingCopy) |
void |
dispose() |
protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor |
getDefaultJREDescriptor() |
protected ILaunchConfigurationTab |
getDynamicTab() |
protected Composite |
getDynamicTabHolder() |
String |
getErrorMessage()
Overridden here so that any error message in the dynamic UI gets returned.
|
String |
getId() |
Image |
getImage() |
protected IJavaProject |
getJavaProject()
Returns the Java project associated with the current config being edited,
or
null if none. |
protected ILaunchConfiguration |
getLaunchConfiguration() |
protected ILaunchConfigurationWorkingCopy |
getLaunchConfigurationWorkingCopy() |
String |
getName() |
protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor |
getSpecificJREDescriptor() |
protected ILaunchConfigurationTab |
getTabForCurrentJRE()
Return the class that implements
ILaunchConfigurationTab
that is registered against the install type of the currently selected VM. |
protected void |
handleSelectedJREChanged()
Notification that the user changed the selection in the JRE combination box.
|
void |
initializeFrom(ILaunchConfiguration configuration) |
protected boolean |
isUseDynamicJREArea() |
boolean |
isValid(ILaunchConfiguration config) |
protected void |
loadDynamicJREArea()
Show the contributed piece of UI that was registered for the install type
of the currently selected VM.
|
void |
performApply(ILaunchConfigurationWorkingCopy configuration) |
protected void |
selectJRE(String typeID,
String vmName) |
void |
setDefaults(ILaunchConfigurationWorkingCopy config) |
protected void |
setDynamicTab(ILaunchConfigurationTab tab) |
protected void |
setDynamicTabHolder(Composite tabHolder) |
protected void |
setLaunchConfiguration(ILaunchConfiguration launchConfiguration) |
protected void |
setLaunchConfigurationWorkingCopy(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(ILaunchConfiguration config)
This method updates the jre selection from the
ILaunchConfiguration |
getContext, getCurrentLaunchConfiguration, initializeJavaProject
canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, getControl, getHelpContextId, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, getUpdateJobDelay, getWarningMessage, isDirty, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, setWarningMessage, updateLaunchConfigurationDialog
protected org.eclipse.jdt.internal.debug.ui.jres.JREsComboBlock fJREBlock
protected ILaunchConfigurationTab fDynamicTab
protected Composite fDynamicTabHolder
protected boolean fUseDynamicArea
protected ILaunchConfigurationWorkingCopy fWorkingCopy
protected ILaunchConfiguration fLaunchConfiguration
protected boolean fIsInitializing
public void dispose()
dispose
in interface ILaunchConfigurationTab
dispose
in class AbstractLaunchConfigurationTab
public void createControl(Composite parent)
protected void setDynamicTabHolder(Composite tabHolder)
protected Composite getDynamicTabHolder()
protected void setDynamicTab(ILaunchConfigurationTab tab)
protected ILaunchConfigurationTab getDynamicTab()
public void setDefaults(ILaunchConfigurationWorkingCopy config)
public void initializeFrom(ILaunchConfiguration configuration)
initializeFrom
in interface ILaunchConfigurationTab
initializeFrom
in class JavaLaunchTab
ILaunchConfigurationTab.initializeFrom(ILaunchConfiguration)
public void performApply(ILaunchConfigurationWorkingCopy configuration)
public boolean isValid(ILaunchConfiguration config)
isValid
in interface ILaunchConfigurationTab
isValid
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.isValid(ILaunchConfiguration)
public String getName()
ILaunchConfigurationTab.getName()
public Image getImage()
getImage
in interface ILaunchConfigurationTab
getImage
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.getImage()
public String getId()
getId
in class AbstractLaunchConfigurationTab
AbstractLaunchConfigurationTab.getId()
protected void updateJREFromConfig(ILaunchConfiguration config)
ILaunchConfiguration
config
- the config to update fromprotected void handleSelectedJREChanged()
protected ILaunchConfigurationTab getTabForCurrentJRE()
ILaunchConfigurationTab
that is registered against the install type of the currently selected VM.ILaunchConfigurationTab
protected void loadDynamicJREArea()
protected ILaunchConfigurationWorkingCopy getLaunchConfigurationWorkingCopy()
public String getErrorMessage()
getErrorMessage
in interface ILaunchConfigurationTab
getErrorMessage
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.getErrorMessage()
protected void setLaunchConfigurationWorkingCopy(ILaunchConfigurationWorkingCopy workingCopy)
protected ILaunchConfiguration getLaunchConfiguration()
protected void setLaunchConfiguration(ILaunchConfiguration launchConfiguration)
public void setVMSpecificArgumentsVisible(boolean visible)
visible
- whether this tab will display the VM specific arguments area
if a JRE supports VM specific argumentsprotected boolean isUseDynamicJREArea()
protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor getDefaultJREDescriptor()
protected org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor getSpecificJREDescriptor()
protected IJavaProject getJavaProject()
null
if none.null
public void activated(ILaunchConfigurationWorkingCopy workingCopy)
activated
in interface ILaunchConfigurationTab
activated
in class AbstractLaunchConfigurationTab
public void deactivated(ILaunchConfigurationWorkingCopy workingCopy)
deactivated
in interface ILaunchConfigurationTab
deactivated
in class AbstractLaunchConfigurationTab
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.