Eclipse JDT
Release 3.0

org.eclipse.jdt.debug.ui.launchConfigurations
Class JavaJRETab

java.lang.Object
  extended byorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
      extended byorg.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab
          extended byorg.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab
All Implemented Interfaces:
org.eclipse.jdt.internal.debug.ui.launcher.IEntriesChangedListener, org.eclipse.debug.ui.ILaunchConfigurationTab

public class JavaJRETab
extends org.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab

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.

Since:
2.0

Field Summary
protected static String EMPTY_STRING
           
protected  org.eclipse.debug.ui.ILaunchConfigurationTab fDynamicTab
           
protected  org.eclipse.swt.widgets.Composite fDynamicTabHolder
           
protected  boolean fIsInitializing
           
protected  org.eclipse.jdt.internal.debug.ui.jres.JREsComboBlock fJREBlock
           
protected  org.eclipse.debug.core.ILaunchConfiguration fLaunchConfiguration
           
protected  boolean fOkToClearUnknownVM
           
protected  String fUnknownVMName
           
protected  String fUnknownVMType
           
protected  boolean fUseDynamicArea
           
protected  org.eclipse.debug.core.ILaunchConfigurationWorkingCopy fWorkingCopy
           
 
Constructor Summary
JavaJRETab()
           
 
Method Summary
 void 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 getDefaultJREDescriptor()
           
protected  org.eclipse.debug.ui.ILaunchConfigurationTab getDynamicTab()
           
protected  org.eclipse.swt.widgets.Composite getDynamicTabHolder()
           
 String getErrorMessage()
          Overridden here so that any error message in the dynamic UI gets returned.
 org.eclipse.swt.graphics.Image getImage()
           
protected  IJavaProject getJavaProject()
          Returns the Java project associated with the current config being edited, or null if none.
protected  org.eclipse.debug.core.ILaunchConfiguration getLaunchConfiguration()
           
protected  org.eclipse.debug.core.ILaunchConfigurationWorkingCopy getLaunchConfigurationWorkingCopy()
           
 String getName()
           
protected  org.eclipse.jdt.internal.debug.ui.jres.JREDescriptor getSpecificJREDescriptor()
           
protected  org.eclipse.debug.ui.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 combo box.
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
protected  boolean isUseDynamicJREArea()
           
 boolean isValid(org.eclipse.debug.core.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(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
           
protected  void selectJRE(String typeID, String vmName)
           
 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)
           
 
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, createCheckButton, createPushButton, createRadioButton, createSeparator, createVerticalSpacer, 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

fJREBlock

protected org.eclipse.jdt.internal.debug.ui.jres.JREsComboBlock fJREBlock

fUnknownVMType

protected String fUnknownVMType

fUnknownVMName

protected String fUnknownVMName

fOkToClearUnknownVM

protected boolean fOkToClearUnknownVM

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

EMPTY_STRING

protected static final String EMPTY_STRING
See Also:
Constant Field Values
Constructor Detail

JavaJRETab

public JavaJRETab()
Method Detail

dispose

public void dispose()

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)
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)
See Also:
ILaunchConfigurationTab.isValid(ILaunchConfiguration)

getName

public String getName()
See Also:
ILaunchConfigurationTab.getName()

getImage

public org.eclipse.swt.graphics.Image getImage()
See Also:
ILaunchConfigurationTab.getImage()

updateJREFromConfig

protected void updateJREFromConfig(org.eclipse.debug.core.ILaunchConfiguration config)

handleSelectedJREChanged

protected void handleSelectedJREChanged()
Notification that the user changed the selection in the JRE combo box.


selectJRE

protected void selectJRE(String typeID,
                         String vmName)

getTabForCurrentJRE

protected org.eclipse.debug.ui.ILaunchConfigurationTab getTabForCurrentJRE()
Return the class that implements ILaunchConfigurationTab that is registered against the install type of the currently selected VM.


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

public String getErrorMessage()
Overridden here so that any error message in the dynamic UI gets returned.

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

protected IJavaProject getJavaProject()
Returns the Java project associated with the current config being edited, or null if none.

Returns:
java project or null

activated

public void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)

deactivated

public void deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)

Eclipse JDT
Release 3.0

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.