public class ToolPane extends java.lang.Object implements IAppInput, IToolUITab
| Modifier and Type | Class and Description |
|---|---|
protected class |
ToolPane.MakeBrowseListener
A listener class to launch file or directory browsers from browse buttons
for a ToolPane's tools
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_COMPILERS |
static int |
ANALYSIS |
org.eclipse.swt.events.SelectionListener |
browseListener
The listener for browse buttons in this pane
|
static int |
CC_COMPILER |
protected ToolPaneListener |
checkListener
The listener for check boxes and value entry fields in this pane
|
java.lang.String |
configID
This unique, generated ID is used to store the output of this pane in a
launch configuration
|
java.lang.String |
configVarID |
static int |
CXX_COMPILER |
boolean |
displayOptions
If true, the showOpts options display is used.
|
boolean |
embedded
Control the pane normally but don't the user must set it to be displayed
manually in a plugin
|
java.lang.String |
encloseOpts
String/character put before the first and after the last option in the
option string Default: empty
|
java.lang.String |
encloseValues
String/character placed around values Default: "
|
static int |
ENV_VAR |
static int |
EXEC_UTIL |
static int |
F90_COMPILER |
ToolOption[] |
options
The individual tool options defined in this pane
|
java.lang.String |
paneName
The name associated with this tool pane
|
int |
paneType
The type of tool the parameter defined by this pane goes to
|
java.lang.String |
prependOpts
Added to the beginning of the opt string Default: empty
|
java.lang.String |
separateNameValue
String/character placed between option names and values Default: =
|
java.lang.String |
separateOpts
String/Character placed between individual options Default: newline
|
org.eclipse.swt.widgets.Text |
showOpts
The text box that shows the selected/defined options in this pane
|
java.lang.String |
toolName
The name of the top-level tool workflow associated with this pane
|
boolean |
virtual
If true then this pane is merely a placeholder for a pane defined
elsewhere
|
| Constructor and Description |
|---|
ToolPane(boolean virtual)
Creates a new tool pane
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArgument(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the argument(s) contained by this object, building them from information in the configuration if necessary
|
java.lang.String |
getConfigID() |
java.lang.String |
getConfigVarID() |
java.util.Map<java.lang.String,java.lang.String> |
getEnvVars(org.eclipse.debug.core.ILaunchConfiguration configuration) |
java.lang.String |
getName() |
ToolOption |
getOption(java.lang.String optID) |
java.lang.String |
getOptionString()
Returns the complete argument output of this pane, or the empty string if
no input has been specified
|
java.lang.String |
getToolName() |
java.util.Map<java.lang.String,java.lang.String> |
getVarMap() |
void |
initializePane(org.eclipse.debug.core.ILaunchConfiguration configuration)
Initializes all tool values and enabled/disabled states with the contents
of configuration, or their defaults
|
boolean |
isEmbedded()
Returns true if this tab is embedded (managed internally but not displayed), otherwise false.
|
boolean |
isVirtual() |
void |
makeToolPane(org.eclipse.swt.widgets.Composite comp)
Creates the widgets and initializes the values for this ToolPane
|
void |
makeToolPane(org.eclipse.swt.widgets.Composite comp,
ToolPaneListener paneListener)
Creates the widgets and initializes the values for this ToolPane
|
protected void |
OptArgUpdate(ToolOption opt)
If the given ToolOption has an assoicated value field, the name/value
string is updated accordingly.
|
void |
OptUpdate()
For every option in this pane, if it is active/selected add its
name/value string to the collection of active values for the whole pane
|
void |
performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Saves the current pane-state in the supplied configuration
|
void |
setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Sets the default values as suppled for the tools in this pane in the
given configuration
|
void |
setName(java.lang.String name) |
void |
setOptions(java.util.List<ToolOption> toptions) |
void |
updateOptDisplay()
Places the current string of name/value pairs in the option-display text
box
|
boolean |
updateOptField(java.lang.Object source)
If the object is a tool in this pane update the associated strings and
displays for the object
|
public static final int ALL_COMPILERS
public static final int CC_COMPILER
public static final int CXX_COMPILER
public static final int F90_COMPILER
public static final int EXEC_UTIL
public static final int ANALYSIS
public static final int ENV_VAR
public final boolean virtual
public org.eclipse.swt.events.SelectionListener browseListener
protected ToolPaneListener checkListener
public boolean displayOptions
public org.eclipse.swt.widgets.Text showOpts
public ToolOption[] options
public java.lang.String paneName
public java.lang.String toolName
public java.lang.String prependOpts
public java.lang.String encloseOpts
public java.lang.String separateOpts
public java.lang.String encloseValues
public java.lang.String separateNameValue
public java.lang.String configID
public java.lang.String configVarID
public int paneType
public boolean embedded
public java.lang.String getArgument(org.eclipse.debug.core.ILaunchConfiguration configuration)
IAppInputgetArgument in interface IAppInputpublic java.lang.String getConfigID()
getConfigID in interface IToolUITabpublic java.lang.String getConfigVarID()
getConfigVarID in interface IToolUITabpublic java.util.Map<java.lang.String,java.lang.String> getEnvVars(org.eclipse.debug.core.ILaunchConfiguration configuration)
getEnvVars in interface IAppInputpublic java.lang.String getName()
getName in interface IToolUITabpublic ToolOption getOption(java.lang.String optID)
public java.lang.String getOptionString()
getOptionString in interface IToolUITabpublic java.lang.String getToolName()
getToolName in interface IToolUITabpublic java.util.Map<java.lang.String,java.lang.String> getVarMap()
getVarMap in interface IToolUITabpublic void initializePane(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
initializePane in interface IToolUITabconfiguration - The configuration from which the current tool values are to be
extractedorg.eclipse.core.runtime.CoreExceptionpublic boolean isEmbedded()
IToolUITabisEmbedded in interface IToolUITabpublic boolean isVirtual()
isVirtual in interface IToolUITabpublic void makeToolPane(org.eclipse.swt.widgets.Composite comp)
makeToolPane in interface IToolUITabcomp - The composite that will contain the elements of this tool panepublic void makeToolPane(org.eclipse.swt.widgets.Composite comp,
ToolPaneListener paneListener)
makeToolPane in interface IToolUITabcomp - The composite that will contain the elements of this tool panepaneListener - The listener class that defines behavior when check boxes and
value fields are manipulatedprotected void OptArgUpdate(ToolOption opt)
opt - The ToolOption being updatedpublic void OptUpdate()
OptUpdate in interface IToolUITabpublic void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
performApply in interface IToolUITabconfiguration - The configuration where the pane-state is to be savedpublic void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
setDefaults in interface IToolUITabconfiguration - The configuration where the default values are setpublic void setName(java.lang.String name)
public void setOptions(java.util.List<ToolOption> toptions)
public void updateOptDisplay()
updateOptDisplay in interface IToolUITabpublic boolean updateOptField(java.lang.Object source)
updateOptField in interface IToolUITabsource - The object being searched for and updated if foundCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.