| Summary: | [Discovery] specify initial value for Parameters | ||
|---|---|---|---|
| Product: | [Modeling] MoDisco | Reporter: | Nicolas Bros <nicolas.bros> |
| Component: | Infrastructure | Assignee: | Nicolas Bros <nicolas.bros> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | fabien.giquel, hugo.bruneliere, modisco.web-inbox |
| Version: | 0.9.0 | Flags: | nicolas.bros:
indigo+
|
| Target Milestone: | 0.9.0 M6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
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. |
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.