mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-16 12:45:41 +02:00
[241015] Add getActionSubstVarList(SystemUDActionElement)
This commit is contained in:
parent
639e84dd3a
commit
dfc9c5317c
1 changed files with 11 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API types
|
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API types
|
||||||
|
* Kevin Doyle (IBM) - [241015] Add getActionSubstVarList(SystemUDActionElement)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.useractions.ui.uda;
|
package org.eclipse.rse.internal.useractions.ui.uda;
|
||||||
|
@ -157,6 +158,15 @@ public abstract class SystemUDActionSubsystem implements ISystemSubstitutor {
|
||||||
*/
|
*/
|
||||||
public abstract SystemCmdSubstVarList getActionSubstVarList(int actionDomainType);
|
public abstract SystemCmdSubstVarList getActionSubstVarList(int actionDomainType);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the list of substitution variables for the given UDA action.
|
||||||
|
*/
|
||||||
|
public SystemCmdSubstVarList getActionSubstVarList(SystemUDActionElement action)
|
||||||
|
{
|
||||||
|
int actionDomainType = action.getDomain();
|
||||||
|
return getActionSubstVarList(actionDomainType);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve current subsystem
|
* Retrieve current subsystem
|
||||||
*/
|
*/
|
||||||
|
@ -526,7 +536,7 @@ public abstract class SystemUDActionSubsystem implements ISystemSubstitutor {
|
||||||
*/
|
*/
|
||||||
protected String doCommandSubstitutions(SystemUDActionElement action, String cmd, Object selectedObject) {
|
protected String doCommandSubstitutions(SystemUDActionElement action, String cmd, Object selectedObject) {
|
||||||
this.currentAction = action;
|
this.currentAction = action;
|
||||||
SystemCmdSubstVarList supportedVariables = getActionSubstVarList(action.getDomain());
|
SystemCmdSubstVarList supportedVariables = getActionSubstVarList(action);
|
||||||
return supportedVariables.doSubstitutions(cmd, selectedObject, this);
|
return supportedVariables.doSubstitutions(cmd, selectedObject, this);
|
||||||
} // end method
|
} // end method
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue