Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.debug.ui.sourcelookup
Class SourceLookupTab  view SourceLookupTab download SourceLookupTab.java

java.lang.Object
  extended byorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
      extended byorg.eclipse.debug.ui.sourcelookup.SourceLookupTab
All Implemented Interfaces:
org.eclipse.debug.ui.ILaunchConfigurationTab

public class SourceLookupTab
extends org.eclipse.debug.ui.AbstractLaunchConfigurationTab

A launch configuration tab that displays and edits the source lookup path for a launch configuration. This tab works with the debug platform source lookup facilities - a source lookup director with associated participants and source containers.

This tab may be instantiated. This class is not intended to be subclassed.

Since:
3.0

Field Summary
private  org.eclipse.debug.internal.ui.sourcelookup.SourceLookupPanel fSourceLookupPanel
           
 
Fields inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
 
Constructor Summary
SourceLookupTab()
           
 
Method Summary
 void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
          This method was added to the ILaunchConfigurationTab interface in the 3.0 release to allow tabs to distinguish between a tab being activated and a tab group be initialized for the first time, from a selected launch configuration.
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the top level control for this launch configuration tab under the given parent composite.
 void dispose()
          By default, do nothing.
 java.lang.String getErrorMessage()
          Returns the current error message for this tab.
 org.eclipse.swt.graphics.Image getImage()
          Returns the image for this tab, or null if none
 java.lang.String getMessage()
          Returns the current message for this tab.
 java.lang.String getName()
          Returns the name of this tab.
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Initializes this tab's controls with values from the given launch configuration.
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
          Copies values from this tab into the given launch configuration.
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
          Initializes the given launch configuration with default values for this tab.
 
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createVerticalSpacer, deactivated, getControl, getLaunchConfigurationDialog, getLaunchManager, getShell, isDirty, isValid, 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

fSourceLookupPanel

private org.eclipse.debug.internal.ui.sourcelookup.SourceLookupPanel fSourceLookupPanel
Constructor Detail

SourceLookupTab

public SourceLookupTab()
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Creates the top level control for this launch configuration tab under the given parent composite. This method is called once on tab creation, after setLaunchConfigurationDialog is called.

Implementors are responsible for ensuring that the created control can be accessed via getControl


setDefaults

public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Initializes the given launch configuration with default values for this tab. This method is called when a new launch configuration is created such that the configuration can be initialized with meaningful values. This method may be called before this tab's control is created.


initializeFrom

public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Initializes this tab's controls with values from the given launch configuration. This method is called when a configuration is selected to view or edit, after this tab's control has been created.


performApply

public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Copies values from this tab into the given launch configuration.


getName

public java.lang.String getName()
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns the name of this tab.


getImage

public org.eclipse.swt.graphics.Image getImage()
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns the image for this tab, or null if none


activated

public void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
Description copied from class: org.eclipse.debug.ui.AbstractLaunchConfigurationTab
This method was added to the ILaunchConfigurationTab interface in the 3.0 release to allow tabs to distinguish between a tab being activated and a tab group be initialized for the first time, from a selected launch configuration. To maintain backwards compatible behavior, the default implementation provided, calls this tab's initializeFrom method. Tabs should override this method as required.

The launch tab framework was originially designed to take care of inter tab communication by applying attributes from the active tab to the launch configuration being edited, when a tab is exited, and by initializing a tab when activated. The addition of the methods activated and deactivated allow tabs to determine the appropriate course of action.


dispose

public void dispose()
Description copied from class: org.eclipse.debug.ui.AbstractLaunchConfigurationTab
By default, do nothing.


getErrorMessage

public java.lang.String getErrorMessage()
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns the current error message for this tab. May be null to indicate no error message.

An error message should describe some error state, as opposed to a message which may simply provide instruction or information to the user.


getMessage

public java.lang.String getMessage()
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns the current message for this tab.

A message provides instruction or information to the user, as opposed to an error message which should describe some error state.