Pages: [1]
  Print  
Author Topic: Plugin Preferences  (Read 2273 times)
steffen
Sr. Member
****
Posts: 376



« on: October 09, 2008, 02:12:44 PM »

Hello,

I am not sure whether this is already possible in RapidMiner, so I dare to ask:
I recognized this nice "about"-window in RapidMiner Taskbar containing information about all loaded plugins. Question: It is possible to add something like this to the preferences-dialog ? Or maybe add a separate preferences-dialog for every plugin to the task bar ? Plugins implementing certain interfaces could make use of this.

I am currently developing a group of operators having common parameters. To easy their use I would like to allow the users to set preferenced parameters globally...<= motivating example

thanks in advance,

Steffen
Logged

"I want to make computers do what I mean instead of what I say"
Read The Fantastic Manual
Ingo Mierswa
Administrator
Hero Member
*****
Posts: 1226



WWW
« Reply #1 on: October 09, 2008, 07:19:39 PM »

Hi Steffen,

I think this should already be possible by following this property name scheme:

rapidminer.<your_plugin_name>.<first_subgroup>.<next_subgroup>. ... .<parameter_name>

For example, you could invoke the following method

Code:
RapidMiner.registerRapidMinerProperty(new ParameterTypeBoolean("rapidminer.my_plugin.my_property", "Tooltip for your property", true));

in a static block of a class which is definitely loaded during plugin loading. I did not test it but it probably works.

Cheers,
Ingo
Logged

Did you try our new Marketplace? Upload or download new Extensions, add comments, and organize your operators. Have a look at  http://marketplace.rapid-i.com
steffen
Sr. Member
****
Posts: 376



« Reply #2 on: November 02, 2008, 01:08:35 PM »

Hello Ingo

I just want to report that it worked. thank you very much ! 

One additional remark for other developers: (4.2 release)
To apply one's own default properties without using the SettingsDialog you have to perform a call like this:
Code:
new SettingsTabs().applyProperties();

Another option is to perform a check whether the property has been set or not.

kind regards,

Steffen
« Last Edit: November 02, 2008, 07:46:37 PM by steffen » Logged

"I want to make computers do what I mean instead of what I say"
Read The Fantastic Manual
Pages: [1]
  Print  
 
Jump to: