Skip to main content



      Home
Home » Modeling » EMF » Xtext based cell editor in EMF
Xtext based cell editor in EMF [message #1739084] Wed, 27 July 2016 09:18 Go to next message
Eclipse UserFriend
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 09:26 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: Xtext based cell editor in EMF [message #1739126 is a reply to message #1739084] Wed, 27 July 2016 11:41 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 23:27:24 EDT 2025

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

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

Back to the top