public abstract class IlrDVSMainTab extends DVSMainTab<org.eclipse.core.resources.IProject>
This class must be subclassed when you implement a custom DVS launcher.
| Modifier and Type | Field and Description |
|---|---|
protected ilog.rules.studio.dvs.ui.execution.tabgroup.block.IlrWorkingDirectoryBlock |
dir |
protected org.eclipse.debug.core.ILaunchConfiguration |
launchConfig |
protected ilog.rules.studio.dvs.ui.execution.tabgroup.block.IlrDVSMainTabOutputBlock |
output |
protected ilog.rules.studio.dvs.ui.execution.tabgroup.block.IlrDVSMainTabSourceBlock<org.eclipse.core.resources.IProject> |
source |
| Constructor and Description |
|---|
IlrDVSMainTab() |
| Modifier and Type | Method and Description |
|---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
Creates the top level control for this launch configuration tab under a
given parent composite.
|
abstract void |
createCustomControl(org.eclipse.swt.widgets.Composite comp)
Adds a custom control to this control.
|
protected java.lang.String |
getAbsolutePath(java.lang.String fullpath)
Returns the absolute path calculated from a path relative to the
current workspace.
|
abstract org.eclipse.swt.graphics.Image |
getImage()
Returns the image that is displayed before the name in the tabulation.
|
abstract java.lang.String |
getName()
Return the name of the tabulation.
|
org.eclipse.core.resources.IProject |
getProject()
Returns the rule project in this tabulation.
|
protected void |
initializeFileFrom(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String attribute,
org.eclipse.swt.widgets.Text field)
Initializes a file text field in this tab using the value of an attribute
stored in a configuration, restored in the OS way.
|
void |
initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
Initializes the controls for this tab with values from a given launch
configuration.
|
boolean |
isValid(org.eclipse.debug.core.ILaunchConfiguration configuration)
Tests if a given launch configuration is valid.
|
void |
performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Copies values from this tab to the given launch configuration.
|
void |
setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Initializes a given launch configuration with default values for this
tab.
|
createSourceBlock, getErrorMessage, getMessage, getOutputBlock, getRulesetSource, getSourceBlock, getWorkingDirectoryBlock, rulesetSourceChanged, setLaunchConfigurationDialogactivated, canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, deactivated, dispose, getControl, getId, getLaunchConfigurationDialog, getLaunchManager, getShell, getUpdateJobDelay, isDirty, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setMessage, updateLaunchConfigurationDialogprotected ilog.rules.studio.dvs.ui.execution.tabgroup.block.IlrDVSMainTabSourceBlock<org.eclipse.core.resources.IProject> source
protected ilog.rules.studio.dvs.ui.execution.tabgroup.block.IlrDVSMainTabOutputBlock output
protected org.eclipse.debug.core.ILaunchConfiguration launchConfig
protected ilog.rules.studio.dvs.ui.execution.tabgroup.block.IlrWorkingDirectoryBlock dir
public void createControl(org.eclipse.swt.widgets.Composite parent)
setLaunchConfigurationDialog has been called.
Implementors must ensure that the control created can be accessed by
calling getControl.
In this implementation, once createCustomControl(Composite)
has been called, the following items are created:
createControl in interface org.eclipse.debug.ui.ILaunchConfigurationTabcreateControl in class DVSMainTab<org.eclipse.core.resources.IProject>parent - The parent composite.public abstract void createCustomControl(org.eclipse.swt.widgets.Composite comp)
GridLayout with three columns.
This method is called from createControl(Composite).
comp - The parent composite.public abstract org.eclipse.swt.graphics.Image getImage()
getImage in interface org.eclipse.debug.ui.ILaunchConfigurationTabgetImage in class org.eclipse.debug.ui.AbstractLaunchConfigurationTabgetName()public abstract java.lang.String getName()
public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
This method should be redefined to manage the custom area. The client method should call this method.
initializeFrom in interface org.eclipse.debug.ui.ILaunchConfigurationTabinitializeFrom in class DVSMainTab<org.eclipse.core.resources.IProject>configuration - The launch configuration.public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
performApply in interface org.eclipse.debug.ui.ILaunchConfigurationTabperformApply in class DVSMainTab<org.eclipse.core.resources.IProject>configuration - The launch configuration.public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
setDefaults in interface org.eclipse.debug.ui.ILaunchConfigurationTabsetDefaults in class DVSMainTab<org.eclipse.core.resources.IProject>configuration - The launch configuration.public org.eclipse.core.resources.IProject getProject()
protected void initializeFileFrom(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String attribute,
org.eclipse.swt.widgets.Text field)
initializeFrom(ILaunchConfiguration) method.initializeFileFrom in class DVSMainTab<org.eclipse.core.resources.IProject>configuration - The launch configuration.attribute - The attribute to read.field - The field where the value of the attribute will be set.protected java.lang.String getAbsolutePath(java.lang.String fullpath)
throws org.eclipse.core.runtime.CoreException
getAbsolutePath in class DVSMainTab<org.eclipse.core.resources.IProject>org.eclipse.core.runtime.CoreException - if there is a problem calculating the absolute
path.fullpath - The file path relative to the workspace.public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration configuration)
isValid in interface org.eclipse.debug.ui.ILaunchConfigurationTabisValid in class DVSMainTab<org.eclipse.core.resources.IProject>true if launchConfig is valid.© Copyright IBM Corp. 1987, 2017