Xtext Cell Editor [message #1737985] |
Thu, 14 July 2016 12:33  |
Eclipse User |
|
|
|
Hi,
I just tried to implement a xtext editor within my emf editor. Therefore, I followed the approach described in this blog post (http://muelder.blogspot.de/2011/04/xtext-celleditor-integration.html). However, the proposed XtextCellEditor within this example seems to be outdated, as several packages, e. g. org.eclipse.xtext.parser.antlr.IAntlrParser, couldn't be resolved. Is there a new implementation for an xtext based cell editor and if so where can I find it?
Cheers,
Phil
|
|
|
|
|
|
|
|
|
|
|
|
Re: Xtext Cell Editor [message #1738691 is a reply to message #1738654] |
Fri, 22 July 2016 06:02  |
Eclipse User |
|
|
|
I created a CustomXtextStyledTextCellEditor class which extends the XtextStyledTextCellEditor and overides the doSetValue method:
protected void doSetValue(Object value) {
if(value == null){
value = "";
}
super.doSetValue(value);
}
This removes the AssertionFailedException, but the Xtext Editor don't pop up. Instead, I can just write every String into my property. However, I've right now no clue how to get it run.
---Edit---
I attached a new example to represent the current state
[Updated on: Wed, 27 July 2016 09:19] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.10910 seconds