Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Activity pattern binding to remove "Previous/Next Annotation" and "Last Edit Location
Activity pattern binding to remove "Previous/Next Annotation" and "Last Edit Location [message #756906] Tue, 15 November 2011 08:43 Go to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
I know how to remove undesired elements from toolbar in general. However, what is the correct pattern in <activitypatternbinding> to remove "Previous/Next Annotation" and "Last Edit Location" from the toolbar?

Tracing keybinding as described at http://www.vogella.de/articles/EclipseCodeAccess/article.html#keybindings shows that IDs for commands are org.eclipse.ui.edit.text.gotoLastEditPosition, org.eclipse.ui.navigate.next, and org.eclipse.ui.navigate.previous, but adding pattern bindings for .*/org.eclipse.ui.edit.text.gotoLastEditPosition and .*/org.eclipse.ui.navigate.* doesn't work.

Strangely enough, .*/org.eclipse.ui.edit.text.* does, but I will quite likely need some commands for text editing later, so what's the best way to do this?
Re: Activity pattern binding to remove "Previous/Next Annotation" and "Last Edit Loca [message #756913 is a reply to message #756906] Tue, 15 November 2011 09:02 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Try using ALT+SHIFT+F2 and then selecting the toolbar item. The activity patterm is applied against <plugin>/<element.id> not <plugin>/<command.id>.

You can also try the Window>Customize Perspective Dialog and remove the Command Groups that contains those tool items.

PW


Re: Activity pattern binding to remove "Previous/Next Annotation" and "Last Edit Loca [message #756914 is a reply to message #756913] Tue, 15 November 2011 09:07 Go to previous message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
Thanks!
Previous Topic:MultiPageEditorPart and menu contribution
Next Topic:DateTime widget with 12h format not working
Goto Forum:
  


Current Time: Tue Jul 29 08:46:10 EDT 2014

Powered by FUDForum. Page generated in 0.01565 seconds