Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » View Toolbar(Adding a toolbar to the Editor)
View Toolbar [message #1100535] Tue, 03 September 2013 08:24 Go to next message
Goran Marjanovic is currently offline Goran MarjanovicFriend
Messages: 2
Registered: September 2013
Junior Member
Hi,

I got a problem with my Xtext-Application. Everything is fine except that I cannot add a toolbar to the view. I tried www.vogella.com/articles/EclipseCommands/article.html#toolbar__viewtoolbar, but I cannot see the added command. I am using eclipse 4.3....

Has anybody an idea how to add a toolbar to the view?

regards
Goran
Re: View Toolbar [message #1100935 is a reply to message #1100535] Tue, 03 September 2013 20:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
Hi,

i am not quite sure if i got you. by terms of eclipse 3.x the editor is an editor and not a view. thus the hook is EditorActionBarContributor.
by default the plugin.xml already has a

contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"


ehich you should replace by your custom subclass.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: View Toolbar [message #1102110 is a reply to message #1100935] Thu, 05 September 2013 11:28 Go to previous message
Goran Marjanovic is currently offline Goran MarjanovicFriend
Messages: 2
Registered: September 2013
Junior Member
Thanks.... that helped me!
Previous Topic:Xtext: Couldn't resolve reference to JvmType 'String'
Next Topic:Get all EObjects of a Type
Goto Forum:
  


Current Time: Thu Sep 26 04:50:18 GMT 2024

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

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

Back to the top