Class RefreshTab
- All Implemented Interfaces:
- IPrototypeAttributesLabelProvider,- ILaunchConfigurationTab,- ILaunchConfigurationTab2
 Clients may call AbstractLaunchConfigurationTab.setHelpContextId(String) on this tab prior to control
 creation to alter the default context help associated with this tab.
 
This class may be instantiate.
- Since:
- 3.0
- Restriction:
- This class is not intended to be sub-classed by clients.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivated(ILaunchConfigurationWorkingCopy workingCopy) This method was added to theILaunchConfigurationTabinterface 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.voidcreateControl(Composite parent) Creates the top level control for this launch configuration tab under the given parent composite.voiddeactivated(ILaunchConfigurationWorkingCopy workingCopy) This method was added to theILaunchConfigurationTabinterface in the 3.0 release to allow tabs to distinguish between a tab being deactivated and saving its attributes to a launch configuration.getId()Returns this tab's unique identifier ornullif none.getImage()Returns the image for this tab, ornullif nonegetName()Returns the name of this tab.static StringgetRefreshAttribute(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 StringgetRefreshScope(ILaunchConfiguration configuration) Returns the refresh scope attribute specified by the given launch configuration ornullif none.static IWorkingSetgetWorkingSet(String refreshAttribute) Creates and returns a working set from the given refresh attribute created by the methodgetRefreshAttribute(IWorkingSet), ornullif none.voidinitializeFrom(ILaunchConfiguration configuration) Initializes this tab's controls with values from the given launch configuration.static booleanisRefreshRecursive(ILaunchConfiguration configuration) Returns whether the refresh scope specified by the given launch configuration is recursive.booleanisValid(ILaunchConfiguration launchConfig) Returns whether this tab is in a valid state in the context of the specified launch configuration.voidperformApply(ILaunchConfigurationWorkingCopy configuration) Copies values from this tab into the given launch configuration.static voidrefreshResources(ILaunchConfiguration configuration, IProgressMonitor monitor) Refreshes the resources as specified by the given launch configuration.voidsetDefaults(ILaunchConfigurationWorkingCopy configuration) Initializes the given launch configuration with default values for this tab.Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTabcanSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, dispose, getAttributeLabel, getAttributesLabelsForPrototype, getControl, getErrorMessage, getHelpContextId, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, getUpdateJobDelay, getWarningMessage, initializeAttributes, isDirty, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, setWarningMessage, updateLaunchConfigurationDialogMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.debug.ui.ILaunchConfigurationTabOkToLeaveTab, postApply
- 
Field Details- 
ATTR_REFRESH_RECURSIVEBoolean attribute indicating if a refresh scope is recursive. Default value istrue.
- 
ATTR_REFRESH_SCOPEString attribute identifying the scope of resources that should be refreshed after an external tool is run. The value is either a refresh variable or the default value,null, indicating no refresh.
 
- 
- 
Constructor Details- 
RefreshTabpublic RefreshTab()Constructor
 
- 
- 
Method Details- 
createControlDescription copied from interface:ILaunchConfigurationTabCreates the top level control for this launch configuration tab under the given parent composite. This method is called once on tab creation, aftersetLaunchConfigurationDialogis called.Implementors are responsible for ensuring that the created control can be accessed via getControl- Parameters:
- parent- the parent composite
- See Also:
 
- 
setDefaultsDescription copied from interface:ILaunchConfigurationTabInitializes 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.- Parameters:
- configuration- launch configuration
- See Also:
 
- 
initializeFromDescription copied from interface:ILaunchConfigurationTabInitializes 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.- Parameters:
- configuration- launch configuration
- See Also:
 
- 
performApplyDescription copied from interface:ILaunchConfigurationTabCopies values from this tab into the given launch configuration.- Parameters:
- configuration- launch configuration
- See Also:
 
- 
getNameDescription copied from interface:ILaunchConfigurationTabReturns the name of this tab.- Returns:
- the name of this tab
- See Also:
 
- 
getImageDescription copied from interface:ILaunchConfigurationTabReturns the image for this tab, ornullif none- Specified by:
- getImagein interface- ILaunchConfigurationTab
- Overrides:
- getImagein class- AbstractLaunchConfigurationTab
- Returns:
- the image for this tab, or nullif none
- See Also:
 
- 
isValidDescription copied from interface:ILaunchConfigurationTabReturns whether this tab is in a valid state in the context of the specified launch configuration.This information is typically used by the launch configuration dialog to decide when it is okay to launch. - Specified by:
- isValidin interface- ILaunchConfigurationTab
- Overrides:
- isValidin class- AbstractLaunchConfigurationTab
- Parameters:
- launchConfig- launch configuration which provides context for validating this tab. This value must not be- null.
- Returns:
- whether this tab is in a valid state
- See Also:
 
- 
refreshResourcespublic static void refreshResources(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException Refreshes the resources as specified by the given launch configuration.- Parameters:
- configuration- launch configuration
- monitor- progress monitor which may be- null
- Throws:
- CoreException- if an exception occurs while refreshing resources
 
- 
getRefreshResourcesReturns a collection of resources referred to by a refresh scope attribute.- Parameters:
- scope- refresh scope attribute (- ATTR_REFRESH_SCOPE)
- Returns:
- collection of resources referred to by the refresh scope attribute
- Throws:
- CoreException- if unable to resolve a set of resources
 
- 
getRefreshScopeReturns the refresh scope attribute specified by the given launch configuration ornullif none.- Parameters:
- configuration- launch configuration
- Returns:
- refresh scope attribute (ATTR_REFRESH_SCOPE)
- Throws:
- CoreException- if unable to access the associated attribute
 
- 
isRefreshRecursiveReturns whether the refresh scope specified by the given launch configuration is recursive.- Parameters:
- configuration- the configuration to check for recursive refresh being set
- Returns:
- whether the refresh scope is recursive
- Throws:
- CoreException- if unable to access the associated attribute
 
- 
getRefreshAttributeCreates and returns a memento for the given working set, to be used as a refresh attribute.- Parameters:
- workingSet- a working set, or- null
- Returns:
- an equivalent refresh attribute
 
- 
getWorkingSetCreates and returns a working set from the given refresh attribute created by the methodgetRefreshAttribute(IWorkingSet), ornullif none.- Parameters:
- refreshAttribute- a refresh attribute that represents a working set
- Returns:
- equivalent working set, or null
 
- 
activatedDescription copied from class:AbstractLaunchConfigurationTabThis method was added to theILaunchConfigurationTabinterface 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'sinitializeFrommethod. Tabs should override this method as required.The launch tab framework was originally 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 activatedanddeactivatedallow tabs to determine the appropriate course of action.- Specified by:
- activatedin interface- ILaunchConfigurationTab
- Overrides:
- activatedin class- AbstractLaunchConfigurationTab
- Parameters:
- workingCopy- the launch configuration being edited
- See Also:
 
- 
deactivatedDescription copied from class:AbstractLaunchConfigurationTabThis method was added to theILaunchConfigurationTabinterface in the 3.0 release to allow tabs to distinguish between a tab being deactivated and saving its attributes to a launch configuration. To maintain backwards compatible behavior, the default implementation provided, calls this tab'sperformApplymethod. Tabs should override this method as required.The launch tab framework was originally 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 activatedanddeactivatedallow tabs to determine the appropriate course of action.- Specified by:
- deactivatedin interface- ILaunchConfigurationTab
- Overrides:
- deactivatedin class- AbstractLaunchConfigurationTab
- Parameters:
- workingCopy- the launch configuration being edited
- See Also:
 
- 
getIdDescription copied from class:AbstractLaunchConfigurationTabReturns this tab's unique identifier ornullif none. By default,nullis returned. Subclasses should override as necessary.Tab identifiers allow contributed tabs to be ordered relative to one another. - Overrides:
- getIdin class- AbstractLaunchConfigurationTab
- Returns:
- tab id or null
- Since:
- 3.5
- See Also:
 
 
-