Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Implementing createChildren
Implementing createChildren [message #1386721] Thu, 19 June 2014 20:00 Go to next message
Al B is currently offline Al BFriend
Messages: 130
Registered: July 2009
Senior Member
I'm getting the error below when I compile the Xtext generated ui plugin.

The AQLOutlineTreeProvider.xtend was automatically generated so does it have to be changed after that or is there a way to resolve the error without changing the .xtend file?

The class AQLOutlineTreeProvider must be defined abstract because it does not implement createChildren(IOutlineNode, EObject)
19-Jun-2014 11:39:42 	     [java]      [java] 5331 [main] ERROR org.eclipse.xtend.core.compiler.batch.XtendBatchCompiler  - 
Re: Implementing createChildren [message #1386723 is a reply to message #1386721] Thu, 19 June 2014 20:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

if there is a error this is a bug.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Implementing createChildren [message #1386724 is a reply to message #1386723] Thu, 19 June 2014 20:17 Go to previous messageGo to next message
Al B is currently offline Al BFriend
Messages: 130
Registered: July 2009
Senior Member
Hi Christian,

It goes away if add the keyword abstract, is that required? Should the generator adds it by default, is that what you meant as a bug?


/*
* generated by Xtext
*/
package gov.nasa.arc.advocate.queries.xtext.ui.outline

/**
 * Customization of the default outline structure.
 *
 * see http://www.eclipse.org/Xtext/documentation.html#outline
 */
abstract class AQLOutlineTreeProvider extends org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider {
	
}

Re: Implementing createChildren [message #1386725 is a reply to message #1386724] Thu, 19 June 2014 20:24 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
no

the class should compile out of the box. it seems there is something wrong with your project setup.

DefaultOutlineTreeProvider is not abstract and thus every subclass should be fine.



Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Replacing STRING terminal/skip inserting closing terminal
Next Topic:Generate xtext artifacts for an edited metamodel
Goto Forum:
  


Current Time: Thu Mar 28 17:46:02 GMT 2024

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

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

Back to the top