Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Xtext based cell editor in EMF
Xtext based cell editor in EMF [message #1739084] Wed, 27 July 2016 13:18 Go to next message
Philipp Heisig is currently offline Philipp HeisigFriend
Messages: 26
Registered: November 2014
Junior Member
Hi,

I'm currently trying to integrate a Xtext based cell editor into my EMF editor. I already asked at the TMF forum about that (https://www.eclipse.org/forums/index.php/t/1079311/), but it's probably better to ask EMF specific questions here.

To sum up the thread posted above, I want to use the XtextStyledTextCellEditor.java within my EMF editor to make use of the Xtext grammar and the other features of Xtext. Unfortunately it doesn't work, while it works with other cell editors, e. g. DialogCellEditor.

It seems that they are using this customized cell editor in GMF, so I assumed that it also should work for the EMF properties. In the meantime, I read an blog post that EMF uses another properties view than GMF. Is that the reason why it doesn't work or are there any other obstacles, which I've haven't considered?
Re: Xtext based cell editor in EMF [message #1739087 is a reply to message #1739084] Wed, 27 July 2016 13:26 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31918
Registered: July 2009
Senior Member
Phil,

I can only point you at this for how to create a specialized cell editor
in EMF's normal properties view:

https://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_property_editor_in_a_generated_application


On 27.07.2016 15:18, Phil Hei wrote:
> Hi,
>
> I'm currently trying to integrate a Xtext based cell editor into my
> EMF editor. I already asked at the TMF forum about that
> (https://www.eclipse.org/forums/index.php/t/1079311/), but it's
> probably better to ask EMF specific questions here.
>
> To sum up the thread posted above, I want to use the
> https://github.com/Yakindu/statecharts/blob/master/plugins/org.yakindu.base.xtext.utils.jface/src/org/yakindu/base/xtext/utils/jface/viewers/XtextStyledTextCellEditor.java
> within my EMF editor to make use of the Xtext grammar and the other
> features of Xtext. Unfortunately it doesn't work, while it works with
> other cell editors, e. g. DialogCellEditor.
>
> It seems that they are using this customized cell editor in GMF, so I
> assumed that it also should work for the EMF properties. In the
> meantime, I read an
> https://www.eclipse.org/articles/Article-Tabbed-Properties/tabbed_properties_view.html
> that EMF uses another properties view than GMF. Is that the reason why
> it doesn't work or are there any other obstacles, which I've haven't
> considered?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Xtext based cell editor in EMF [message #1739126 is a reply to message #1739084] Wed, 27 July 2016 15:41 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7178
Registered: July 2009
Senior Member
Hi

Have a look at EMF Forms which provides morre extensibility.

Regards

Ed Willink

On 27/07/2016 14:18, Phil Hei wrote:
> Hi,
>
> I'm currently trying to integrate a Xtext based cell editor into my EMF
> editor. I already asked at the TMF forum about that
> (https://www.eclipse.org/forums/index.php/t/1079311/), but it's probably
> better to ask EMF specific questions here.
>
> To sum up the thread posted above, I want to use the
> https://github.com/Yakindu/statecharts/blob/master/plugins/org.yakindu.base.xtext.utils.jface/src/org/yakindu/base/xtext/utils/jface/viewers/XtextStyledTextCellEditor.java
> within my EMF editor to make use of the Xtext grammar and the other
> features of Xtext. Unfortunately it doesn't work, while it works with
> other cell editors, e. g. DialogCellEditor.
>
> It seems that they are using this customized cell editor in GMF, so I
> assumed that it also should work for the EMF properties. In the
> meantime, I read an
> https://www.eclipse.org/articles/Article-Tabbed-Properties/tabbed_properties_view.html
> that EMF uses another properties view than GMF. Is that the reason why
> it doesn't work or are there any other obstacles, which I've haven't
> considered?


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Previous Topic:Improve XMLResourceImpl's URI Fragments upon serialization
Next Topic:[CDO] Custom configuration for Authenticator
Goto Forum:
  


Current Time: Thu Jun 24 07:05:36 GMT 2021

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

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

Back to the top