PTP
Release 5.0

org.eclipse.ptp.remote.core
Class RemoteVariableManager

java.lang.Object
  extended by org.eclipse.ptp.remote.core.RemoteVariableManager

public class RemoteVariableManager
extends Object

Since:
4.0

Constructor Summary
RemoteVariableManager()
           
 
Method Summary
static RemoteVariableManager getInstance()
           
 String performStringSubstitution(String expression)
          Perform a string substitution on the expression using the variables known by the platform.
 void setVars(Map<String,String> vars)
          Initialize variables with values from the map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteVariableManager

public RemoteVariableManager()
Method Detail

getInstance

public static RemoteVariableManager getInstance()

performStringSubstitution

public String performStringSubstitution(String expression)
Perform a string substitution on the expression using the variables known by the platform.

Parameters:
expression - expression to substitute
Returns:

setVars

public void setVars(Map<String,String> vars)
Initialize variables with values from the map. Variable values should be stored externally as platform variables are shared across all plugins. This method should be called prior to calling performStringSubstitution

Parameters:
vars -
Since:
5.0

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.