Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext 2.3.0M6 outline view extension point
Xtext 2.3.0M6 outline view extension point [message #842753] Thu, 12 April 2012 15:31 Go to next message
Daniel Le Berre is currently offline Daniel Le BerreFriend
Messages: 82
Registered: July 2009
Member
Hi all,

We would like to contribute new actions in a popup menu in the outline view.

It used to work with Xtext 1.0 where the outline view was specific to xtext. Extension point was:
popup:org.eclipse.xtext.ui.outline?after=additions

It looks like such extension point is no longer working with Xtext 2.3M6.

What is the new extension point for the new outline view?

Daniel
Re: Xtext 2.3.0M6 outline view extension point [message #842873 is a reply to message #842753] Thu, 12 April 2012 17:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13493
Registered: July 2009
Senior Member
Hi,

there is no context menu at all in the outline. you have to care yourself (using std eclipse means)
http://www.eclipse.org/forums/index.php/mv/msg/205185/656948/#msg_656948

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext 2.3.0M6 outline view extension point [message #843529 is a reply to message #842873] Fri, 13 April 2012 05:47 Go to previous messageGo to next message
Daniel Le Berre is currently offline Daniel Le BerreFriend
Messages: 82
Registered: July 2009
Member
Thanks a lot Christian!

Daniel
Re: Xtext 2.3.0M6 outline view extension point [message #844214 is a reply to message #843529] Fri, 13 April 2012 20:26 Go to previous messageGo to next message
Daniel Le Berre is currently offline Daniel Le BerreFriend
Messages: 82
Registered: July 2009
Member
We have been able to create our popup menu for the outline view.

However, we are currently unable to create a specific action according to the type of node available in the view: all of them are of type IOutlineNode. We were using an adapter for that with Xtext 1.0, which cannot be reused directly here (because it worked with the specific Xtext outline view).

Is there a simple way to discriminate the nodes of the outline view according to their EObject type?

Daniel
Re: Xtext 2.3.0M6 outline view extension point [message #844269 is a reply to message #844214] Fri, 13 April 2012 21:40 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13493
Registered: July 2009
Senior Member
hi,

depends on how your outline works. you may be able to downcast to EObjectNode.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:question on IScope API(getSingleElement)--my mistake
Next Topic:strange completion
Goto Forum:
  


Current Time: Thu Jul 09 09:10:18 GMT 2020

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

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

Back to the top