Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

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


java.lang.Object
  extended by 

org.eclipse.debug.ui.AbstractLaunchConfigurationTab
      extended by 

org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
          extended by 
org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab
All Implemented Interfaces:
ILaunchConfigurationTab

public class JavaJRETab
extends JavaLaunchTab

A launch configuration tab that displays and edits the VM install launch configuration attributes.

This class may be instantiated.

Since:
2.0
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
protected static  String EMPTY_STRING
           
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 Summary
JavaJRETab ()
           
 
Method Summary
 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
 
Methods inherited from class org.eclipse.jdt.debug.ui.launchConfigurations. JavaLaunchTab
getContext, getCurrentLaunchConfiguration, 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

fDynamicTab

protected 
ILaunchConfigurationTab fDynamicTab

fDynamicTabHolder

protected 
Composite fDynamicTabHolder

fUseDynamicArea

protected boolean fUseDynamicArea

fWorkingCopy

protected 
ILaunchConfigurationWorkingCopy fWorkingCopy

fLaunchConfiguration

protected 
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()
Specified by:
dispose in interface ILaunchConfigurationTab
Overrides:
dispose in class AbstractLaunchConfigurationTab

createControl

public void createControl(
Composite parent)
See Also:
ILaunchConfigurationTab.createControl(Composite)

setDynamicTabHolder

protected void setDynamicTabHolder(
Composite tabHolder)

getDynamicTabHolder

protected 
Composite getDynamicTabHolder()

setDynamicTab

protected void setDynamicTab(
ILaunchConfigurationTab tab)

getDynamicTab

protected 
ILaunchConfigurationTab getDynamicTab()

setDefaults

public void setDefaults(
ILaunchConfigurationWorkingCopy config)
See Also:
ILaunchConfigurationTab.setDefaults(ILaunchConfigurationWorkingCopy)

initializeFrom

public void initializeFrom(
ILaunchConfiguration configuration)
Specified by:
initializeFrom in interface ILaunchConfigurationTab
Overrides:
initializeFrom in class JavaLaunchTab
See Also:
ILaunchConfigurationTab.initializeFrom(ILaunchConfiguration)

performApply

public void performApply(
ILaunchConfigurationWorkingCopy configuration)
See Also:
ILaunchConfigurationTab.performApply(ILaunchConfigurationWorkingCopy)

isValid

public boolean isValid(
ILaunchConfiguration config)
Specified by:
isValid in interface ILaunchConfigurationTab
Overrides:
isValid in class AbstractLaunchConfigurationTab
See Also:
ILaunchConfigurationTab.isValid(ILaunchConfiguration)

getName

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

getImage

public 
Image getImage()
Specified by:
getImage in interface ILaunchConfigurationTab
Overrides:
getImage in class AbstractLaunchConfigurationTab
See Also:
ILaunchConfigurationTab.getImage()

getId

public 
String getId()
Overrides:
getId in class AbstractLaunchConfigurationTab
Since:
3.3
See Also:
AbstractLaunchConfigurationTab.getId()

updateJREFromConfig

protected void updateJREFromConfig(
ILaunchConfiguration config)
This method updates the jre selection from the ILaunchConfiguration

Parameters:
config - the config to update from

handleSelectedJREChanged

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


selectJRE

protected void selectJRE(
String typeID,
                         
String vmName)

getTabForCurrentJRE

protected 
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 
ILaunchConfigurationWorkingCopy getLaunchConfigurationWorkingCopy()

getErrorMessage

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

Specified by:
getErrorMessage in interface ILaunchConfigurationTab
Overrides:
getErrorMessage in class AbstractLaunchConfigurationTab
See Also:
ILaunchConfigurationTab.getErrorMessage()

setLaunchConfigurationWorkingCopy

protected void setLaunchConfigurationWorkingCopy(
ILaunchConfigurationWorkingCopy workingCopy)

getLaunchConfiguration

protected 
ILaunchConfiguration getLaunchConfiguration()

setLaunchConfiguration

protected void setLaunchConfiguration(
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(
ILaunchConfigurationWorkingCopy workingCopy)
Specified by:
activated in interface ILaunchConfigurationTab
Overrides:
activated in class AbstractLaunchConfigurationTab

deactivated

public void deactivated(
ILaunchConfigurationWorkingCopy workingCopy)
Specified by:
deactivated in interface ILaunchConfigurationTab
Overrides:
deactivated in class AbstractLaunchConfigurationTab

Eclipse JDT
Release 3.5

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire