Community
Participate
Working Groups
The Code examples are outdated https://www.eclipse.org/sirius/doc/developer/extensions-properties_provide_custom_widget_basic.html e.g [outdate] public class TableLifecycleManager extends AbstractEEFWidgetLifecycleManager { ... private IConsumer<Object> newValueConsumer; ... } Correct public class TableLifecycleManager extends AbstractEEFWidgetLifecycleManager { ... private Consumer<Object> newValueConsumer; ... }
Hi M V, Thank for the bug report, the doc should be corrected in 5.1.1. Regards
New Gerrit change created: https://git.eclipse.org/r/111805
Gerrit change https://git.eclipse.org/r/111805 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=c23c07f3bfd324828dc9e8426f63319461b7780d
Fixed by c23c07f3bfd324828dc9e8426f63319461b7780d. To validate: * create a plug-in project with the proper dependencies (Sirius and EEF); * create a class with the source code in the document (TableLifecycleManager extends AbstractEEFWidgetLifecycleManager); * verify that it compiles without errors (ideally without warnings either).
being validated...
There are still compilation error In TableLifecycleManager * A contextAdapter field is needed. Its initialization should be done in constructor. * Add setEnabled(boolean) unimplemented method In TableController * java.util.function.Consumer should be used instead of IConsumer * A contextAdapter field is needed. Its initialization should be done in constructor. * adapt code because this.getCustomExpression return an Optional<String> and a String is needed
By the way there is probably the same kind of change in "Sirius Properties – Advanced Custom Widget"
New Gerrit change created: https://git.eclipse.org/r/115291
New Gerrit change created: https://git.eclipse.org/r/115849
Gerrit change https://git.eclipse.org/r/115849 was merged to [v5.1.x]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5a5a7c4e5e9b2cb7282397c199c84036e474ad3a
Fixed by 5a5a7c4e5e9b2cb7282397c199c84036e474ad3a.
Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details.