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 PettersonFriend
Messages: 156
Registered: July 2009
Senior Member

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.


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 ?



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: Sun Apr 22 10:57:58 GMT 2018

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

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