|Editing item from Eclipse text viewer context menu [message #662926]
||Fri, 01 April 2011 13:58
Registered: September 2010
i am developing my own plugin. i wonder if it possible to edit items (set image, change text) programmatic in context menu at java editor\Project viewer\other viewers . for example when i right click on java editor the item "Save" changes to "Save something" , after awhile i click again and the item "Save" changes to "Save two".
all i know is to get the active editor:
IEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
but donot know how to get reference for context menu.
Thanks for Help
[Updated on: Fri, 01 April 2011 14:00]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02356 seconds