Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Making my DSL independent of JDT(Cannot make it !!!)
Making my DSL independent of JDT [message #658273] Mon, 07 March 2011 16:42 Go to next message
Michel Simeon is currently offline Michel SimeonFriend
Messages: 130
Registered: December 2009
Senior Member
I am developing an application called Mads. I am using XText to produce a DSL that is used to define my models, without a generator, and have two additional plug-ins, one to process the model and one to provide help.

I would like to be able to get it running on its own by installing my plug-ins plus the minimum required on the Eclipse Platform distribution. I am using Eclipse 3.6.2 and XText 2.:

I have edited my MadsUiModule as per the XText help to make my DSL JDT-independent:

public class MadsUiModule extends fr.msimeon.mads.ui.AbstractMadsUiModule {
public MadsUiModule(AbstractUIPlugin plugin) {
super(plugin);
}
// Making Mads independent from the JDK

// remove the bindings to components with support for the ' classpath:' URI protocol
@Override
public Class<? extends IResourceForEditorInputFactory>
bindIResourceForEditorInputFactory() {
return ResourceForIEditorInputFactory.class;
}

@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
return SimpleResourceSetProvider.class;
}

// configure the global scope provider to scan project root folders instead of the classpath of Java projects.
@Override
public com.google.inject.Provider
<org.eclipse.xtext.resource.containers.IAllContainersState>
provideIAllContainersState() {
return org.eclipse.xtext.ui.shared.Access.getWorkspaceProjectsState ();
}
}


But I am unable to get my application running without JDT installed.

Any suggestion on how to proceed would be appreciated.

MS
Re: Making my DSL independent of JDT [message #658283 is a reply to message #658273] Mon, 07 March 2011 17:27 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=336217
which shows how it can be done in Xtext 1.0 (but reports that it is
broken in 2.0).

Regards
- henrik

On 3/7/11 5:42 PM, Michel Simeon wrote:
> I am developing an application called Mads. I am using XText to produce
> a DSL that is used to define my models, without a generator, and have
> two additional plug-ins, one to process the model and one to provide help.
>
> I would like to be able to get it running on its own by installing my
> plug-ins plus the minimum required on the Eclipse Platform distribution.
> I am using Eclipse 3.6.2 and XText 2.:
>
> I have edited my MadsUiModule as per the XText help to make my DSL
> JDT-independent:
> public class MadsUiModule extends fr.msimeon.mads.ui.AbstractMadsUiModule {
> public MadsUiModule(AbstractUIPlugin plugin) {
> super(plugin);
> }
> // Making Mads independent from the JDK
>
> // remove the bindings to components with support for the ' classpath:'
> URI protocol
> @Override
> public Class<? extends IResourceForEditorInputFactory>
> bindIResourceForEditorInputFactory() {
> return ResourceForIEditorInputFactory.class;
> }
>
> @Override
> public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
> return SimpleResourceSetProvider.class;
> }
>
> // configure the global scope provider to scan project root folders
> instead of the classpath of Java projects. @Override
> public com.google.inject.Provider
> <org.eclipse.xtext.resource.containers.IAllContainersState>
> provideIAllContainersState() {
> return org.eclipse.xtext.ui.shared.Access.getWorkspaceProjectsState ();
> }
> }
>
>
> But I am unable to get my application running without JDT installed.
> Any suggestion on how to proceed would be appreciated.
>
> MS
Re: Making my DSL independent of JDT [message #658312 is a reply to message #658283] Mon, 07 March 2011 20:19 Go to previous messageGo to next message
Michel Simeon is currently offline Michel SimeonFriend
Messages: 130
Registered: December 2009
Senior Member
Thank you for your reply.

Any idea if the issue will be fixed in the future ?

MS
Re: Making my DSL independent of JDT [message #658330 is a reply to message #658312] Mon, 07 March 2011 22:47 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Look at the issue ;-)
It is marked M6 - and I also hope it gets fixed.

- henrik
On 3/7/11 9:19 PM, Michel Simeon wrote:
> Thank you for your reply.
>
> Any idea if the issue will be fixed in the future ?
>
> MS
Re: Making my DSL independent of JDT [message #658362 is a reply to message #658330] Tue, 08 March 2011 08:09 Go to previous message
Michel Simeon is currently offline Michel SimeonFriend
Messages: 130
Registered: December 2009
Senior Member
Thanks again.

MS
Previous Topic:SQL syntax
Next Topic:Integration of Xtext with Graphiti
Goto Forum:
  


Current Time: Fri Apr 19 13:11:23 GMT 2024

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

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

Back to the top