Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Classpath-Based global scoping(Classpath-Based scoping without Java and JDT)
Xtext Classpath-Based global scoping [message #898961] Sun, 29 July 2012 15:38 Go to next message
Sandra Shklyaeva is currently offline Sandra ShklyaevaFriend
Messages: 16
Registered: July 2012
Junior Member
In the Xtext Documentation I found the following:

"By default Xtext leverages the classpath mechanism since it is well designed and already understood by most of our users. The available tooling provided by JDT and PDE to configure the classpath adds even more value. However, it is just a default: You can reuse the infrastructure without using Java and independent from the JDT."

When I configure classpath-based global scoping as described in the help, the scoping works only if my project is Java Project (has Java Nature and Java Builder).
In other case, it doesn't work.

The questions is how I can reuse the infrastructure (classpath-based global scoping) without using Java and JDT?
Re: Xtext Classpath-Based global scoping [message #898973 is a reply to message #898961] Sun, 29 July 2012 19:28 Go to previous messageGo to next message
Benjamin Schwertfeger is currently offline Benjamin SchwertfegerFriend
Messages: 53
Registered: July 2009
Member
Hello Sandra,
I am not sure what your intention is. You can not use class paths without java, because the class path is only defined in java and plugin projects. You can use project dependencies in your workspace and references to other model files by changing the container state in your <DSL>UiModule like
public Provider<IAllContainersState> provideIAllContainersState() {
return Access.getWorkspaceProjectsState();
}

If this is not, what you meant, you can explain perhaps.

Regards,
Benjamin
Re: Xtext Classpath-Based global scoping [message #899056 is a reply to message #898961] Mon, 30 July 2012 11:32 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2012-29-07 17:38, Sandra Shklyaeva wrote:
> In the Xtext Documentation I found the following:
>
> "By default Xtext leverages the classpath mechanism since it is well
> designed and already understood by most of our users. The available
> tooling provided by JDT and PDE to configure the classpath adds even
> more value. However, it is just a default: You can reuse the
> infrastructure without using Java and independent from the JDT."
>
> When I configure classpath-based global scoping as described in the
> help, the scoping works only if my project is Java Project (has Java
> Nature and Java Builder).
> In other case, it doesn't work.
>

> The questions is how I can reuse the infrastructure (classpath-based
> global scoping) without using Java and JDT?

If you want to look at a project that is using Eclipse Projects and that
sets up depedencies between projects based on meta data in the projects,
you can look at cloudsmith / geppetto @ github. No JDT functionality is
used in Geppetto.
Note that if you package a product that does not include jdt, there are
a couple of other things to also deal with regarding aggregatin of error
markers in the project/package/navigator views. (See the "jdt-ersatz"
stuff in geppetto what is needed).

Regards
- henrik
Previous Topic:import an Xtext grammar
Next Topic:Ecore model generation - merge custom and generated java code
Goto Forum:
  


Current Time: Fri Apr 19 18:59:25 GMT 2024

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

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

Back to the top