Community
Participate
Working Groups
When the actions were in the oepd.common, the initial state of the actions was disable (just after starting eclipse), because nothing was selected (common, r2910). In the new plugin org.eclipse.papyrus.diagram.menu, all actions are enable because the plugin is not launched. Ideas : - Activator could implements org.eclipse.ui.IStartup and we could use this extension point in the plugin... - add refreshMenu() in ParametricAndListeningHandler.setInitializationData -> doesn't resolve all problems : autosize is always to true after the startup.
in r2921 : add IStartup + an enableWHen for the autoSize in the toolbar.
I think that we should remove the IStartup and find another way to correct this bug.
This bug must not be closed!
The enable state is never computed for Java-based property testers (Unless force activation is set to true in the plugin.xml, which is not recommended) Possible solutions: - Implement a *lightweight* property tester in a *low level* Papyrus plug-in (With as few dependencies as possible, to avoid starting N plug-ins) - Implement the "isEnabled" state with XML-based Eclipse Expressions (Which are properly executed) In all cases, it is important that testing the Actions enablement/visibility does not require to start any leaf Papyrus plug-in (Which takes time and memory, because all dependencies are loaded, and it is intrusive for non-Papyrus users)