Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Substitute values at runtime
Substitute values at runtime [message #736062] Thu, 13 October 2011 13:28
Mikael Petterson is currently offline Mikael Petterson
Messages: 152
Registered: July 2009
Senior Member
Hi,

I am developing a plugin. For it I have a PreferencePage ( call it MyPreferencePage).
In MyPreferencePage I have a StringFieldEditor where I can place certain parameters that I want to replace at runtime.

Example:

HelperText: form_user{currentHw}

When running the plugin I will use this helper text in an input field as guideance for the user. And I want to substitute {currentHw} with the actual value from the plugin.

To get the value I use:

provider.getCurrentHw();//Plugin specific data.

My idea is to use reflection to access this value but I am most likely not the first so I wonder if someone else has done this and has a more efficient way Smile ?

br,

//mike

Previous Topic:IHandlerService query for best-matching handler for given context
Next Topic:Eclipse triggers full builds ... and we don't know why
Goto Forum:
  


Current Time: Thu Oct 23 08:54:47 GMT 2014

Powered by FUDForum. Page generated in 0.01917 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software