Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [xtend] Import values
[xtend] Import values [message #777051] Mon, 09 January 2012 18:27 Go to next message
Peter Johnsen is currently offline Peter JohnsenFriend
Messages: 60
Registered: January 2012
Member
Hi,

In the 15 minutes Xtend tutorial (http://www.eclipse.org/Xtext/documentation/2_1_0/020-domainmodel-step-by-step.php), it is described how to use 'importedNamespace' in a rule to define the given value as an import. However, this probably only works if the import has a Java-like structure with dots: 'package1.package2.Class'. Is is possible to use another "navigation" symbol other than '.', e.g. '->'? And, where does such a change has to be reflected in the framework code? Thanks for any help!

[Updated on: Mon, 09 January 2012 18:28]

Report message to a moderator

Re: [xtend] Import values [message #777309 is a reply to message #777051] Tue, 10 January 2012 09:04 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Have a look at the IQualifiedNameConverter.
You'll also have to change the syntax for the importedName.


Am 09.01.12 19:27, schrieb Peter Johnsen:
> Hi,
>
> In the 15 minutes Xtend tutorial
> (http://www.eclipse.org/Xtext/documentation/2_1_0/020-domainmodel-step-by-step.php),
> it is described how to use 'importedNamespace' in a rule to define the
> given value as an import. However, this probably only works if the
> import has a Java-like structure with dots: 'package1.package2.Class' Is
> is possible to use another "navigation" symbol other than '.', e.g.
> '->'? And, where does such a change has to be reflected in the framework
> code? Thanks for any help!


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: [xtend] Import values [message #777430 is a reply to message #777309] Tue, 10 January 2012 13:44 Go to previous message
Peter Johnsen is currently offline Peter JohnsenFriend
Messages: 60
Registered: January 2012
Member
Hi Jan,

Thanks! I've done what you wrote, but now I get a lot of errors in the .mwe2 files,
and the .xtend file ("everything" has a red underline). When I run a .mwe2 file I get an IllegalStateException (XtextLinkingDiagnostic: null:9 Couldn't resolve reference to JvmType 'Workflow'., XtextLinkingDiagnostic: null:1 ...)

All .java files of the org.eclipse.xtext project have been recompiled. Any ideas?
Previous Topic:No error reported, but semantic model incomplete
Next Topic:[xtend ]Invoking Java from xtend
Goto Forum:
  


Current Time: Thu Sep 19 01:36:04 GMT 2024

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

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

Back to the top