Skip to main content


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: 158
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: Fri Apr 19 04:44:21 GMT 2024

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

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

Back to the top