java - How can I access variable resolving of eclipse run configurations for an eclipse plugin? -


I want to be able to expand the Sysdeo Tomcat plugin such that you can specify in run configuration for Java applications Are, e.g. $ {workspace_loc} .

I have tried to use it, but there is no content in the resulting array:

  resourcesPlugin.getWorkspace (). GetPathVariableManager () getPathVariableNames () .;   

Using this does not give me the desired variables:

  JavaCore.getClasspathVariableNames ();   

Next I search for the code that is actually substituting the variable in the string. Use IStringVariableManager to access variables such as $ {workspace_loc}

. You get from the manager:

  IStringVariableManager manager = VariablesPlugin.getDefault (). GetStringVariableManager ();   

To process variables in string usage:

  string newString = manager.performStringSubstitution (string);   

You can also use the org.eclipse.core.variables.dynamicVariables and org.eclipse.core.variables.valueVariables extensions Points to add new variables

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -