DerivedValueService not working [message #1038318] |
Wed, 10 April 2013 14:25  |
Eclipse User |
|
|
|
I have a model element with two properties: a ListProperty (containing "wrapped" ReferenceValues) and a String ValueProperty. The value of the second property is derived from the content of the first (it simply concatenates the IDs of all the referenced elements). The properties are as below:
//ListProperty
@Type(base = FusibleRef.class)
@Service(impl=InputIdPossibleValuesService.class)
@Label(full="Inputs", standard="Inputs")
ListProperty PROP_INPUTS = new ListProperty(TYPE, "inputs");
ModelElementList<FusibleRef> getInputs();
//ValueProperty that I want to refresh based on the above ListProperty
@Derived
@DependsOn("inputs")
@Service(impl=FusionFeedDerivedValueService.class)
ValueProperty PROP_FEED = new ValueProperty(TYPE, "Feed");
Value<String> getFeed();
However, my implementation of DerivedValueService is having its compute() method called only once, when the file is opened in the Sapphire editor, and nothing is happening when I make any changes to the "inputs" property. What might I be doing wrong?
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06636 seconds