|
Rule Designer API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.debug.ui.AbstractLaunchConfigurationTab ilog.rules.studio.dvs.ui.execution.tabgroup.IlrDVSMainTab
public abstract class IlrDVSMainTab
An instance is used in each DVS launch configuration. This tab is used to specify:
This class must be subclassed when you implement a custom DVS launcher.
Field Summary | |
---|---|
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 |
source
|
Constructor Summary | |
---|---|
IlrDVSMainTab()
|
Method Summary | |
---|---|
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 String |
getAbsolutePath(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 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,
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 launchConfig)
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. |
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab |
---|
activated, canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, deactivated, dispose, getControl, getErrorMessage, getId, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, getUpdateJobDelay, isDirty, launched, scheduleUpdateJob, 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 |
---|
protected ilog.rules.studio.dvs.ui.execution.tabgroup.block.IlrDVSMainTabSourceBlock 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
Constructor Detail |
---|
public IlrDVSMainTab()
Method Detail |
---|
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 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:
parent
- The parent composite.public abstract org.eclipse.swt.graphics.Image getImage()
getImage
in interface org.eclipse.debug.ui.ILaunchConfigurationTab
getImage
in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
getName()
public abstract 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.
configuration
- The launch configuration.public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
configuration
- The launch configuration.public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
configuration
- The launch configuration.public org.eclipse.core.resources.IProject getProject()
protected void initializeFileFrom(org.eclipse.debug.core.ILaunchConfiguration configuration, String attribute, org.eclipse.swt.widgets.Text field)
initializeFrom(ILaunchConfiguration)
method.
configuration
- The launch configuration.attribute
- The attribute to read.field
- The field where the value of the attribute will be set.protected String getAbsolutePath(String fullpath) throws org.eclipse.core.runtime.CoreException
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 launchConfig)
isValid
in interface org.eclipse.debug.ui.ILaunchConfigurationTab
isValid
in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
true
if launchConfig
is valid.
|
Rule Designer API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |