Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to setup IApplication to read DSL files
How to setup IApplication to read DSL files [message #1352562] Tue, 13 May 2014 14:19 Go to next message
Markus Duft is currently offline Markus DuftFriend
Messages: 148
Registered: February 2013
Senior Member
Hey!

On the topic of reading DSL model files, there are two setups described in the manual:

1) standalone java application
2) in eclipse.

I think none of them fits for me xD, or I miss something. What i have is a DSL, for which I have the generated x.wdl and x.wdl.ui plugins. I deliver those with our IDE, so that people can create and edit the .wdl files.

Now i also want to be able to read those models at application runtime (but of course i don't need the UI then...), so i also have the x.wdl plugin in the "normal" workspace of our application(s) (but not the x.wdl.ui plugin)

In the manual, there is a reference to a generated Activator, which will do the setup for me, but there is one only in the x.wdl.ui bundle, but not in the x.wdl one.

What do i have to do, to be able to access the model files in an arbitrary RCP IApplication?

Thanks,
Markus
Re: How to setup IApplication to read DSL files [message #1352944 is a reply to message #1352562] Tue, 13 May 2014 18:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13313
Registered: July 2009
Senior Member
Hi,

you have to use the /an ui plugin if you want to read stuff from within an osgi environment.
of course one can strip down the plugin.xml not to register editors etc


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to setup IApplication to read DSL files [message #1354039 is a reply to message #1352944] Wed, 14 May 2014 05:03 Go to previous messageGo to next message
Markus Duft is currently offline Markus DuftFriend
Messages: 148
Registered: February 2013
Senior Member
so even though i don't have an ui, i have to use it? can i somehow generate another one? i want/need the one i have by default the way it is now! is there a manual way of doing the required setups?

Thanks!
Re: How to setup IApplication to read DSL files [message #1354040 is a reply to message #1354039] Wed, 14 May 2014 05:05 Go to previous messageGo to next message
Markus Duft is currently offline Markus DuftFriend
Messages: 148
Registered: February 2013
Senior Member
Asked differently: what would be the downside of using the standalone setup in a headless osgi environment?
Re: How to setup IApplication to read DSL files [message #1354049 is a reply to message #1354039] Wed, 14 May 2014 05:06 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13313
Registered: July 2009
Senior Member
You can copy and paste + strip down the ui plugin

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to setup IApplication to read DSL files [message #1354050 is a reply to message #1354039] Wed, 14 May 2014 05:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13313
Registered: July 2009
Senior Member
Hi and do not stick with the .ui it is short form for .ineclipse

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to setup IApplication to read DSL files [message #1354051 is a reply to message #1354040] Wed, 14 May 2014 05:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13313
Registered: July 2009
Senior Member
Hi you will get strange errors since emfs singleton APIs will destroy
themselves if called multiple times

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to setup IApplication to read DSL files [message #1354537 is a reply to message #1354051] Wed, 14 May 2014 09:54 Go to previous message
Markus Duft is currently offline Markus DuftFriend
Messages: 148
Registered: February 2013
Senior Member
ok, thanks, i will check whats the minimum i can come up with...
Previous Topic:"XtextReconcilerJob" internal error
Next Topic:Prevent Workspace-Rebuild if using xtext-based plugin
Goto Forum:
  


Current Time: Sat Jan 18 01:30:11 GMT 2020

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

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

Back to the top