Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext and Eclipse
Xtext and Eclipse [message #669553] Tue, 10 May 2011 17:47 Go to next message
pozer is currently offline pozerFriend
Messages: 32
Registered: August 2010
Member
I am not sure if this is the right place for this question but I thought I could at least start here. I have created a dsl in xtext and it works fine. I now need to give the dsl to another user so that they can use it. They will be using eclipse to utilize the language. How do I do this? Do they need the actual xtext projects or do I need to give them specific plug ins? Any help would be greatly appreciated. I am not a java programmer so I don't completely get how this all works. And there is no one else here who is familiar with the xtext side of things. Embarrassed
Re: Xtext and Eclipse [message #669581 is a reply to message #669553] Tue, 10 May 2011 19:52 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 10-05-11 19:47, Pam wrote:
> I now need to give the
> dsl to another user so that they can use it. They will be
> using eclipse to utilize the language. How do I do this? Do they need
> the actual xtext projects or do I need to give
> them specific plug ins? Any help would be greatly
> appreciated. I am not a java programmer so I don't
> completely get how this all works. And there is no one else
> here who is familiar with the xtext side of things. :bl

Hi, if the other user is using the same eclipse as you which would
include the same version of xtext (If not these should be installed),
you could given the two generated plugins. yourdsl and yourdsl.ui. you
can export them using i.e. File->Export->Plugin Dev.->Deployable plugins
& Features and then selecte these two. The other user can put them in
his/her eclipse installation under the "dropins" folder. This should work.
Make sure your dsl, also generates a wizard, so the other user can use
file->new->your dsl wizard.

hope this helps. Christophe
Re: Xtext and Eclipse [message #669583 is a reply to message #669553] Tue, 10 May 2011 20:03 Go to previous messageGo to next message
Luong  is currently offline Luong Friend
Messages: 8
Registered: March 2011
Junior Member
Hi Pam,

Have you read the post of Karsten's blog? It talks about the setting up of a RCP with an Xtext DSL. Please search for "Setting up a RCP product for a Xtext DSL" with Google as I cannot post links for now.

Other than the way described by Christophe, you can create an update site.
Re: Xtext and Eclipse [message #670154 is a reply to message #669583] Thu, 12 May 2011 21:00 Go to previous messageGo to next message
pozer is currently offline pozerFriend
Messages: 32
Registered: August 2010
Member
So I tried exporting the plug-ins and having the other person put them in the drop ins folder that did not work. It does not recognize the dsl extension still. Is there something else I should have to do?


I would prefer the plugin way since the other person is using eclipse for other things as well and does not need a separate smaller instance for this.

Thanks for your help
Re: Xtext and Eclipse [message #670159 is a reply to message #670154] Thu, 12 May 2011 21:54 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
I have a strong hunch that drop-ins (which should really be avoided)
does not work because of some error that you never get to see - it then
silently just does not start what was dropped in.

If you have not already created a feature for you language, do so, then
make it and the language bundles available in a p2 repository (on disk)
- zip it up and share with your colleague. The export to a p2 repository
is available in the UI.

Your colleague uses the p2 user interface to install the feature - p2
will then contact the required sites to get everything that is required.

Hope that helps.
- henrik

On 5/12/11 11:00 PM, Pam wrote:
> So I tried exporting the plug-ins and having the other
> person put them in the drop ins folder that did not work.
> It does not recognize the dsl extension still. Is there
> something else I should have to do?
>
>
> I would prefer the plugin way since the other person is
> using eclipse for other things as well and does not need a
> separate smaller instance for this.
> Thanks for your help
Re: Xtext and Eclipse [message #671683 is a reply to message #670159] Wed, 18 May 2011 16:50 Go to previous messageGo to next message
pozer is currently offline pozerFriend
Messages: 32
Registered: August 2010
Member
What is a P2 Repository?
Re: Xtext and Eclipse [message #671773 is a reply to message #671683] Wed, 18 May 2011 23:20 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 5/18/11 6:50 PM, Pam wrote:
> What is a P2 Repository?
http://wiki.eclipse.org/Equinox_p2_Getting_Started

And the very short description of p2 would be:

A p2 repository is a layout of bundles and features along with metadata
that makes it possible for the p2 engine to calculate what to install,
update, remove etc. and when it is performing those operations how to
perform the installation or removal of a component.

In the IDE it is possible to export in this format.

A p2 repository can be zipped up and shared, or it can be hosted on a
web server as an "update site".

When you use the "install new software" in your IDE, you are talking to
p2...

Hope that helps as a starting point.

Regards
- henrik
Previous Topic:java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
Next Topic:ANTLR grammar question
Goto Forum:
  


Current Time: Thu Apr 25 09:06:31 GMT 2024

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

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

Back to the top