|
|||||||||
| Home >> All >> org >> eclipse >> ant >> internal >> ui >> [ launchConfigurations overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.ant.internal.ui.launchConfigurations
Class AntBuildTab

java.lang.Objectorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
org.eclipse.ant.internal.ui.launchConfigurations.AntBuildTab
- All Implemented Interfaces:
- org.eclipse.debug.ui.ILaunchConfigurationTab
- public class AntBuildTab
- extends org.eclipse.debug.ui.AbstractLaunchConfigurationTab
A launch configuration tab which allows the user to specify which resources should be built before the Ant build (a build scope)
This class may be instantiated; this class is not intended to be subclassed.
- Since:
- 3.0
| Nested Class Summary | |
(package private) class |
AntBuildTab.ProjectsContentProvider
|
| Field Summary | |
static java.lang.String |
ATTR_BUILD_SCOPE
String attribute identifying the build scope for this launch configuration. |
static java.lang.String |
ATTR_INCLUDE_REFERENCED_PROJECTS
Attribute identifier specifying whether referenced projects should be considered when computing the projects to build. |
private org.eclipse.swt.widgets.Button |
fBuildButton
|
private org.eclipse.swt.widgets.Group |
fGroup
|
private org.eclipse.swt.widgets.Button |
fProjectButton
|
private java.util.List |
fProjects
|
private org.eclipse.swt.widgets.Button |
fReferencedProjects
|
private org.eclipse.swt.widgets.Button |
fSelectButton
|
private org.eclipse.swt.widgets.Button |
fSpecificProjectsButton
|
private org.eclipse.swt.widgets.Button |
fWorkspaceButton
|
| Fields inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab |
|
| Constructor Summary | |
AntBuildTab()
|
|
| 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 |
deactivated(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 deactivated
and saving its attributes to a launch configuration. |
private java.lang.String |
generateScopeMemento()
Generates a memento for the build scope. |
static org.eclipse.core.resources.IProject[] |
getBuildProjects(java.lang.String scope)
Returns a collection of projects referenced by a build scope attribute. |
static java.lang.String |
getBuildScope(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the build scope attribute specified by the given launch configuration or null if none. |
static java.lang.String |
getBuildScopeAttribute(java.util.List projects)
Creates and returns a memento for the given project set, to be used as a build scope attribute. |
org.eclipse.swt.graphics.Image |
getImage()
Returns the image for this tab, or null if none |
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. |
static boolean |
isIncludeReferencedProjects(org.eclipse.debug.core.ILaunchConfiguration configuration)
Whether referenced projects should be considered when building. |
boolean |
isValid(org.eclipse.debug.core.ILaunchConfiguration launchConfig)
Returns whether this tab is in a valid state in the context of the specified launch configuration. |
void |
performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Copies values from this tab into the given launch configuration. |
private void |
selectResources()
Prompts the user to select the projects to build. |
void |
setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Initializes the given launch configuration with default values for this tab. |
private void |
updateEnabledState()
Updates the enablement state of the fields. |
private void |
updateReferencedProjects(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
private void |
updateScope(org.eclipse.debug.core.ILaunchConfiguration configuration)
Updates the tab to display the build scope specified by the launch config |
| 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 |
ATTR_BUILD_SCOPE
public static final java.lang.String ATTR_BUILD_SCOPE
- String attribute identifying the build scope for this launch configuration.
nullindicates the default workspace build.
ATTR_INCLUDE_REFERENCED_PROJECTS
public static final java.lang.String ATTR_INCLUDE_REFERENCED_PROJECTS
- Attribute identifier specifying whether referenced projects should be
considered when computing the projects to build. Default value is
true.
fBuildButton
private org.eclipse.swt.widgets.Button fBuildButton
fGroup
private org.eclipse.swt.widgets.Group fGroup
fProjectButton
private org.eclipse.swt.widgets.Button fProjectButton
fSpecificProjectsButton
private org.eclipse.swt.widgets.Button fSpecificProjectsButton
fWorkspaceButton
private org.eclipse.swt.widgets.Button fWorkspaceButton
fSelectButton
private org.eclipse.swt.widgets.Button fSelectButton
fReferencedProjects
private org.eclipse.swt.widgets.Button fReferencedProjects
fProjects
private java.util.List fProjects
| Constructor Detail |
AntBuildTab
public AntBuildTab()
| 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
setLaunchConfigurationDialogis called.Implementors are responsible for ensuring that the created control can be accessed via
getControl
selectResources
private void selectResources()
- Prompts the user to select the projects to build.
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.
updateReferencedProjects
private void updateReferencedProjects(org.eclipse.debug.core.ILaunchConfiguration configuration)
updateScope
private void updateScope(org.eclipse.debug.core.ILaunchConfiguration configuration)
- Updates the tab to display the build scope specified by the launch config
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.
generateScopeMemento
private java.lang.String generateScopeMemento()
- Generates a memento for the build scope.
getName
public java.lang.String getName()
- Description copied from interface:
org.eclipse.debug.ui.ILaunchConfigurationTab - Returns the name of this tab.
updateEnabledState
private void updateEnabledState()
- Updates the enablement state of the fields.
getImage
public org.eclipse.swt.graphics.Image getImage()
- Description copied from interface:
org.eclipse.debug.ui.ILaunchConfigurationTab - Returns the image for this tab, or
nullif none
isValid
public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration launchConfig)
- Description copied from interface:
org.eclipse.debug.ui.ILaunchConfigurationTab - Returns 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.
getBuildProjects
public static org.eclipse.core.resources.IProject[] getBuildProjects(java.lang.String scope)
- Returns a collection of projects referenced by a build scope attribute.
getBuildScope
public static java.lang.String getBuildScope(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
- Returns the build scope attribute specified by the given launch configuration
or
nullif none.
isIncludeReferencedProjects
public static boolean isIncludeReferencedProjects(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
- Whether referenced projects should be considered when building. Only valid
when a set of projects is to be built.
getBuildScopeAttribute
public static java.lang.String getBuildScopeAttribute(java.util.List projects)
- Creates and returns a memento for the given project set, to be used as a
build scope attribute.
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
ILaunchConfigurationTabinterface 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 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
activatedanddeactivatedallow tabs to determine the appropriate course of action.
deactivated
public void deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
- Description copied from class:
org.eclipse.debug.ui.AbstractLaunchConfigurationTab - This method was added to the
ILaunchConfigurationTabinterface 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 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
activatedanddeactivatedallow tabs to determine the appropriate course of action.
|
|||||||||
| Home >> All >> org >> eclipse >> ant >> internal >> ui >> [ launchConfigurations overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC