|
Eclipse JDT 2.1 |
||||||||||
| 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_PREFIX
|
protected static String |
EMPTY_STRING
|
protected String |
fDefaultVMName
Name of the default VM or null if a default VM does not exist. |
protected ILaunchConfigurationTab |
fDynamicTab
|
protected Composite |
fDynamicTabHolder
|
protected boolean |
fIsInitializing
|
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 |
protected String |
constructDefaultJREName(IVMInstall defaultVM)
|
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 int |
getVMNameIndex(String searchVMName)
Return the index of the specified VM name in the array of VM names contained in the JRE combo box widget. |
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(String name)
Reply whether or not a new VM of the specified name 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_OLD(String typeID,
String vmName)
Cause the specified VM name to be selected in the JRE combo box. |
protected void |
selectJREComboBoxEntry(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)
|
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, isDirty, launched, setAttribute, setControl, setDirty, 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 boolean fIsInitializing
protected static final String DEFAULT_JRE_NAME_PREFIX
protected static final String EMPTY_STRING
protected String fDefaultVMName
null if a default VM does not exist.
| Constructor Detail |
public JavaJRETab()
| Method Detail |
public void createControl(Composite parent)
createControl in interface ILaunchConfigurationTabcreateControl in class AbstractLaunchConfigurationTabILaunchConfigurationTab.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 ILaunchConfigurationTabsetDefaults in class AbstractLaunchConfigurationTabILaunchConfigurationTab.setDefaults(ILaunchConfigurationWorkingCopy)public void initializeFrom(ILaunchConfiguration configuration)
initializeFrom in interface ILaunchConfigurationTabinitializeFrom in class AbstractLaunchConfigurationTabILaunchConfigurationTab.initializeFrom(ILaunchConfiguration)public void performApply(ILaunchConfigurationWorkingCopy configuration)
performApply in interface ILaunchConfigurationTabperformApply in class AbstractLaunchConfigurationTabILaunchConfigurationTab.performApply(ILaunchConfigurationWorkingCopy)public boolean isValid(ILaunchConfiguration config)
isValid in interface ILaunchConfigurationTabisValid in class AbstractLaunchConfigurationTabILaunchConfigurationTab.isValid(ILaunchConfiguration)public String getName()
getName in interface ILaunchConfigurationTabgetName in class AbstractLaunchConfigurationTabILaunchConfigurationTab.getName()public Image getImage()
getImage in interface ILaunchConfigurationTabgetImage in class AbstractLaunchConfigurationTabILaunchConfigurationTab.getImage()public boolean isDuplicateName(String name)
org.eclipse.jdt.internal.debug.ui.launcher.IAddVMDialogRequestor
isDuplicateName in interface org.eclipse.jdt.internal.debug.ui.launcher.IAddVMDialogRequestorname - the name of a potential new VM
IAddVMDialogRequestor.isDuplicateName(String)public void vmAdded(IVMInstall vm)
org.eclipse.jdt.internal.debug.ui.launcher.IAddVMDialogRequestorAddVMDialog.
vmAdded in interface org.eclipse.jdt.internal.debug.ui.launcher.IAddVMDialogRequestorvm - the added vmIAddVMDialogRequestor.vmAdded(IVMInstall)protected void updateJREFromConfig(ILaunchConfiguration config)
protected void initializeJREComboBox()
protected void handleJREComboBoxModified()
protected void handleJREAddButtonSelected()
protected void populateJREComboBox()
protected String constructDefaultJREName(IVMInstall defaultVM)
protected void selectJREComboBoxEntry_OLD(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 selectJREComboBoxEntry(String typeID,
String vmName)
protected int getVMNameIndex(String searchVMName)
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 ILaunchConfigurationTabgetErrorMessage in class AbstractLaunchConfigurationTabILaunchConfigurationTab.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.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||