Community
Participate
Working Groups
Build Identifier: DiagramEditorDummy is used by ExtensionManager.createDiagramTypeProvider() , oriented towards Dark Processing. The problem is that DiagramEditorDummy has a blank implementation of executeFeature() , which in some cases (when a feature calls another), breaks everything. Because in dark processing mode we have nothing to do with GEF (right?) I think the following implementaion would be enough @Override public void executeFeature(IFeature feature, IContext context) { if (feature.canExecute(context)) { feature.execute(context); } } I'm not sure if the canExecute() should be call here. Reproducible: Always
I added the proposed implementation to DiagramEditorDummy. Thanks for the contribution! I think the canExecute check should be done here in case the method is directly called by a user. Additionally I have added a test in testDarkFeatureProcessing Checked-in and pushed to Eclipse: commit f85cd7849f6c467df8042b7c5e49f398143cfc82 Author: mwenz <michael.wenz@sap.com> 2011-11-11 10:39:41 Committer: mwenz <michael.wenz@sap.com> 2011-11-11 10:39:41 Parent: d0ad1625ec8fef4e1b386d3fba37c198970a9d52 (Bug 363464: Return IReason to pass on information if layout has been performed) Branches: origin/master, master
Bookkeeping: Set target release
Part of Graphiti 0.9.0 (Eclipse Juno)