Community
Participate
Working Groups
There should be a way to specify the initial value of a discoverer parameter. This can be specified with an additional annotation on a method that returns the initial value, like this for example: @ParameterInitialValue(name="MY_PARAM") public boolean getMyParamInitialValue(IProject source) { return true; } The initialization method takes the source as a parameter because we want to be able to initialize a parameter based on the selected source.
Committed in revision 4020.
Hi Nicolas, can you add some short presentation of the @ParameterInitialValue annotation in component documentation in "advanced API" section ? Thanks. Moreover some minimal test of IDiscoveryManager.hasInitialValue/getInitialValue will be welcome.
I added the documentation: http://wiki.eclipse.org/MoDisco/Components/DiscoverersManager/Documentation/0.9.beta#initial_values and unit tests.
Upgrade done.