|
EMF auto-generated action-bar menu items in the editor -
07-01-2009, 03:00 PM
I've autogenerated an editor for my emf model and have been customizing it. I'd like to get rid of the validate and load resource items that are auto-generated in the menu as actions, but can't seem to find any place to get rid of them in the plugin.xml, the editor or the actionbar contributor. Any ideas?
Also, I'd like to make the copy action actually do something like copy a version of the selected items in the editor to the clipboard. Does anyone know how to go about this?
Related to menu items, I'd like to prevent the user from editing anything in the editor. What's the easiest way to make the editor readonly without making the file it's reading from (a serialized emf model) readonly? I'm pulling the file in as a URIEditorInput when the file is double-clicked in the workspace, and then building a resource out of it using my emf factory's namespace.
Thanks in advance.
|