Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Editing item from Eclipse text viewer context menu
Editing item from Eclipse text viewer context menu [message #662926] Fri, 01 April 2011 13:58 Go to next message
amir  is currently offline amir Friend
Messages: 16
Registered: September 2010
Junior Member
hey

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

Re: Editing item from Eclipse text viewer context menu [message #663470 is a reply to message #662926] Tue, 05 April 2011 08:43 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 01/04/11 7:28 PM, amir wrote:
> 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".

Instead of changing such default behaviour and confusing the users, why
can't you add your own contribution?

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Editing item from Eclipse text viewer context menu [message #663802 is a reply to message #663470] Wed, 06 April 2011 14:32 Go to previous message
amir  is currently offline amir Friend
Messages: 16
Registered: September 2010
Junior Member
since i got no choice for changing default commands, i have to add my own contribution.
thanks for the suggestion
cheers
Previous Topic:Debugging C++ in Eclipse very slow
Next Topic:How can I refresh a file during a IResourceChangeEvent
Goto Forum:
  


Current Time: Thu Mar 28 12:29:08 GMT 2024

Powered by FUDForum. Page generated in 0.01910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top