Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Using Xtext code in an Eclipse Plugin
Using Xtext code in an Eclipse Plugin [message #998001] Wed, 09 January 2013 06:50 Go to next message
Mohammad Javad Dousti is currently offline Mohammad Javad Dousti
Messages: 1
Registered: January 2013
Junior Member
I have written two plugins:

1- A text editor based on Xtext 2.3.1 which comprises of four projects. First is the source project, second is the UI, third is SDK, and last is the test. I know how to export this project as a plugin and use it inside Eclipse 4.2 (Juno). This editor works on the extensions of 'myDSL'.

2- A wizard which is triggered from File->Menu and creates a file with the extension 'myDSL'.

I would like to combine these two plugin projects into one. I have read the following section of Xtext documentation: Setup within Eclipse-Equinox (OSGi). Unfortunately, I could not get it to work. First of all, I am not sure if I need to combine the files of two projects or just add the Xtext project as the dependency of the other project. In either case, which one of the Xtext project should I consider? The main project or the UI project? (Actually, I do not know the exact difference between them). Second, I do not know what <MyDsl>ExecutableExtensionFactory should be replaced with.
Re: Using Xtext code in an Eclipse Plugin [message #998199 is a reply to message #998001] Wed, 09 January 2013 14:48 Go to previous message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
Since it seems like you are going to be installing your bundles into an
IDE, you really do not need to do much. Sounds like you need an Eclipse
Feature that includes your other bundles. This is the thing users
install into their IDE.

There is nothing Xtext specific about that BTW.

Regards
- henrik

On 2013-09-01 14:24, Mohammad Javad Dousti wrote:
> I have written two plugins:
>
> 1- A text editor based on Xtext 2.3.1 which comprises of four projects.
> First is the source project, second is the UI, third is SDK, and last is
> the test. I know how to export this project as a plugin and use it
> inside Eclipse 4.2 (Juno). This editor works on the extensions of 'myDSL'.
>
> 2- A wizard which is triggered from File->Menu and creates a file with
> the extension 'myDSL'.
>
> I would like to combine these two plugin projects into one. I have read
> the following section of Xtext documentation:
> http://www.eclipse.org/Xtext/documentation.html#equinoxSetup.
> Unfortunately, I could not get it to work. First of all, I am not sure
> if I need to combine the files of two projects or just add the Xtext
> project as the dependency of the other project. In either case, which
> one of the Xtext project should I consider? The main project or the UI
> project? (Actually, I do not know the exact difference between them).
> Second, I do not know what <MyDsl>ExecutableExtensionFactory should be
> replaced with.
Previous Topic:Using Xtext to populate memody model
Next Topic:Multiline Comment processing
Goto Forum:
  


Current Time: Fri Sep 19 22:00:41 GMT 2014

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

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