|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
org.eclipse.debug.ui.RefreshTab
A launch configuration tab which allows the user to specify which resources should be refreshed when the launch terminates.
This class may be instantiated; this class is not intended to be subclassed.
Field Summary | |
static String | ATTR_REFRESH_RECURSIVE
Boolean attribute indicating if a refresh scope is recursive. |
static String | ATTR_REFRESH_SCOPE
String attribute identifying the scope of resources that should be refreshed after an external tool is run. |
Constructor Summary | |
RefreshTab()
|
Method Summary | |
void | activated(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(Composite parent)
Creates the top level control for this launch configuration tab under the given parent composite. |
void | deactivated(ILaunchConfigurationWorkingCopy workingCopy)
This method was added to the ILaunchConfigurationTab interface in the 3.0 release to allow tabs to distinguish between a tab being deactivated and saving its attributes to a launch configuration. |
Image | getImage()
Returns the image for this tab, or null if none |
String | getName()
Returns the name of this tab. |
static String | getRefreshAttribute(IWorkingSet workingSet)
Creates and returns a memento for the given working set, to be used as a refresh attribute. |
static IResource[] | getRefreshResources(String scope)
Returns a collection of resources referred to by a refresh scope attribute. |
static String | getRefreshScope(ILaunchConfiguration configuration)
Returns the refresh scope attribute specified by the given launch configuration or null if none. |
static IWorkingSet | getWorkingSet(String refreshAttribute)
Creates and returns a working set from the given refresh attribute created by the method getRefreshAttribute(IWorkingSet), or null if none. |
void | initializeFrom(ILaunchConfiguration configuration)
Initializes this tab's controls with values from the given launch configuration. |
static boolean | isRefreshRecursive(ILaunchConfiguration configuration)
Returns whether the refresh scope specified by the given launch configuration is recursive. |
boolean | isValid(ILaunchConfiguration launchConfig)
Returns whether this tab is in a valid state in the context of the specified launch configuration. |
void | performApply(ILaunchConfigurationWorkingCopy configuration)
Copies values from this tab into the given launch configuration. |
static void | refreshResources(ILaunchConfiguration configuration,
IProgressMonitor monitor)
Refreshes the resources as specified by the given launch configuration. |
void | setDefaults(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, dispose, getControl, getErrorMessage, 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 |
public static final String ATTR_REFRESH_RECURSIVE
public static final String ATTR_REFRESH_SCOPE
Constructor Detail |
public RefreshTab()
Method Detail |
public void createControl(Composite parent)
Implementors are responsible for ensuring that the created control can be accessed via getControl
public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
public void initializeFrom(ILaunchConfiguration configuration)
public void performApply(ILaunchConfigurationWorkingCopy configuration)
public String getName()
public Image getImage()
public boolean isValid(ILaunchConfiguration launchConfig)
This information is typically used by the launch configuration dialog to decide when it is okay to launch.
public static void refreshResources(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException
public static IResource[] getRefreshResources(String scope) throws CoreException
public static String getRefreshScope(ILaunchConfiguration configuration) throws CoreException
public static boolean isRefreshRecursive(ILaunchConfiguration configuration) throws CoreException
public static String getRefreshAttribute(IWorkingSet workingSet)
public static IWorkingSet getWorkingSet(String refreshAttribute)
public void activated(ILaunchConfigurationWorkingCopy workingCopy)
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.
public void deactivated(ILaunchConfigurationWorkingCopy workingCopy)
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.
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.