|
Eclipse JDT 2.0 |
||||||||||
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.JavaJRETab
A launch configuration tab that displays and edits the VM install launch configuration attributes.
This class may be instantiated. This class is not intended to be subclassed.
Field Summary | |
protected static String |
DEFAULT_JRE_NAME
|
protected static String |
EMPTY_STRING
|
protected ILaunchConfigurationTab |
fDynamicTab
|
protected Composite |
fDynamicTabHolder
|
protected Button |
fJREAddButton
|
protected Combo |
fJRECombo
|
protected Label |
fJRELabel
|
protected ILaunchConfiguration |
fLaunchConfiguration
|
protected boolean |
fOkToClearUnknownVM
|
protected String |
fUnknownVMName
|
protected String |
fUnknownVMType
|
protected boolean |
fUseDynamicArea
|
protected List |
fVMStandins
|
protected IVMInstallType[] |
fVMTypes
|
protected ILaunchConfigurationWorkingCopy |
fWorkingCopy
|
Constructor Summary | |
JavaJRETab()
|
Method Summary | |
protected void |
clearJREComboBoxEntry()
Convenience method to remove any selection in the JRE combo box |
void |
createControl(Composite parent)
|
protected ILaunchConfigurationTab |
getDynamicTab()
|
protected Composite |
getDynamicTabHolder()
|
String |
getErrorMessage()
Overridden here so that any error message in the dynamic UI gets returned. |
Image |
getImage()
|
protected ILaunchConfiguration |
getLaunchConfiguration()
|
protected ILaunchConfigurationWorkingCopy |
getLaunchConfigurationWorkingCopy()
|
String |
getName()
|
protected ILaunchConfigurationTab |
getTabForCurrentJRE()
Return the class that implements ILaunchConfigurationTab
that is registered against the install type of the currently selected VM. |
protected void |
handleJREAddButtonSelected()
Show a dialog that lets the user add a new JRE definition |
protected void |
handleJREComboBoxModified()
Notification that the user changed the selection in the JRE combo box. |
void |
initializeFrom(ILaunchConfiguration configuration)
|
protected void |
initializeJREComboBox()
Load the JRE related collections, and use these to set the values on the combo box |
boolean |
isDuplicateName(IVMInstallType type,
String name)
Reply whether or not a new VM of the specified name and type would constitute a duplicate. |
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 |
populateJREComboBox()
Set the available items on the JRE combo box |
protected void |
selectJREComboBoxEntry(String typeID,
String vmName)
Cause the specified VM to be selected in the JRE combo box. |
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)
|
void |
vmAdded(IVMInstall vm)
Notification that a VM has been added from the AddVMDialog . |
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, dispose, getControl, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, launched, setControl, 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 fJRELabel
protected Combo fJRECombo
protected Button fJREAddButton
protected String fUnknownVMType
protected String fUnknownVMName
protected boolean fOkToClearUnknownVM
protected IVMInstallType[] fVMTypes
protected List fVMStandins
protected ILaunchConfigurationTab fDynamicTab
protected Composite fDynamicTabHolder
protected boolean fUseDynamicArea
protected ILaunchConfigurationWorkingCopy fWorkingCopy
protected ILaunchConfiguration fLaunchConfiguration
protected static final String DEFAULT_JRE_NAME
protected static final String EMPTY_STRING
Constructor Detail |
public JavaJRETab()
Method Detail |
public void createControl(Composite parent)
createControl
in interface ILaunchConfigurationTab
createControl
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.createControl(Composite)
protected void setDynamicTabHolder(Composite tabHolder)
protected Composite getDynamicTabHolder()
protected void setDynamicTab(ILaunchConfigurationTab tab)
protected ILaunchConfigurationTab getDynamicTab()
public void setDefaults(ILaunchConfigurationWorkingCopy config)
setDefaults
in interface ILaunchConfigurationTab
setDefaults
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.setDefaults(ILaunchConfigurationWorkingCopy)
public void initializeFrom(ILaunchConfiguration configuration)
initializeFrom
in interface ILaunchConfigurationTab
initializeFrom
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.initializeFrom(ILaunchConfiguration)
public void performApply(ILaunchConfigurationWorkingCopy configuration)
performApply
in interface ILaunchConfigurationTab
performApply
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.performApply(ILaunchConfigurationWorkingCopy)
public boolean isValid(ILaunchConfiguration config)
isValid
in interface ILaunchConfigurationTab
isValid
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.isValid(ILaunchConfiguration)
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()
public boolean isDuplicateName(IVMInstallType type, String name)
org.eclipse.jdt.internal.debug.ui.launcher.IAddVMDialogRequestor
isDuplicateName
in interface org.eclipse.jdt.internal.debug.ui.launcher.IAddVMDialogRequestor
type
- the type of a potential new VMname
- the name of a potential new VM
IAddVMDialogRequestor.isDuplicateName(IVMInstallType, String)
public void vmAdded(IVMInstall vm)
org.eclipse.jdt.internal.debug.ui.launcher.IAddVMDialogRequestor
AddVMDialog
.
vmAdded
in interface org.eclipse.jdt.internal.debug.ui.launcher.IAddVMDialogRequestor
vm
- the added vmIAddVMDialogRequestor.vmAdded(IVMInstall)
protected void updateJREFromConfig(ILaunchConfiguration config)
protected void initializeJREComboBox()
protected void handleJREComboBoxModified()
protected void handleJREAddButtonSelected()
protected void populateJREComboBox()
protected void selectJREComboBoxEntry(String typeID, String vmName)
fVMStandins
list.
typeID
- the VM install type identifier, or null
to select "default"vmName
- vm name, or null
to select "default"protected void clearJREComboBoxEntry()
protected ILaunchConfigurationTab getTabForCurrentJRE()
ILaunchConfigurationTab
that is registered against the install type of the currently selected VM.
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()
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |