Toolbar actions for GenericEditor [message #1775983] |
Wed, 08 November 2017 16:10  |
Eclipse User |
|
|
|
I'm using the toolbarAction extension point to add actions to the GenericEditor's toolbar, and have two problems:
1) I would like the enablement of the actions to be dynamic, based on the selection, but the ISelectionProvider does not support registering listeners. The ISelectionProvider is an inner class of GenericEditor that throws UnsupportedOperationException for the add and remove methods for ISelectionChangeListeners.
2) Some of my actions change the model, but even if they do, the editor does not become dirty. I guess this is because the change is not performed by a command on the command stack. To do this, the action needs access to the IEditingDomain, but how can it? The toolbarAction only gets a reference to the ResourceSet and the ISelectionProvider.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04850 seconds