Skip to main content


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 13:43 Go to next message
Alexey Romanov is currently offline Alexey RomanovFriend
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 14:02 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
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 14:07 Go to previous message
Alexey Romanov is currently offline Alexey RomanovFriend
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: Fri Mar 29 00:10:35 GMT 2024

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

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

Back to the top