Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Setting Developer Environment
Setting Developer Environment [message #897266] Mon, 23 July 2012 13:03 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

starting from http://www.eclipse.org/forums/index.php/m/897161/
I tried to setup the developer environment (I've been struggling with
that for some time ;)

Here's what I did, I'd like to know whether this is the correct method
(indeed http://www.eclipse.org/forums/index.php/m/897161/ was not enough
for me):

- cloned http://git.eclipse.org/c/tmf/org.eclipse.xtext.git/
- import most of the projects (excluding documentation and maven)
- import the examples starting from the directory
/examples/org.eclipse.xtext.xtext.ui.examples/contents/ (otherwise the
plugin projects are not shown to be imported, since they are shadowed by
org.eclipse.xtext.xtext.ui.examples)
- set API baseline as detailed in
/org.eclipse.xtext.releng/api-baseline/readme.txt
- set target platform using
/org.eclipse.xtext.releng/target-platforms/developer-juno-3_8-emf-2_5.target
- cloned http://git.eclipse.org/gitroot/xtend/org.eclipse.xtend.git
- import most of the projects in the plugins directory
- cloned http://git.eclipse.org/gitroot/emf/org.eclipse.mwe.git
- import org.eclipse.emf.mwe2.language, org.eclipse.emf.mwe2.launch,
org.eclipse.emf.mwe2.lib

now I have no error :)

is this correct?

thanks in advance
cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: Setting Developer Environment [message #897296 is a reply to message #897266] Mon, 23 July 2012 14:06 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Yes, that seems to be correct. Thanks for the summary.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 23.07.12 15:03, schrieb Lorenzo Bettini:
> Hi
>
> starting from http://www.eclipse.org/forums/index.php/m/897161/
> I tried to setup the developer environment (I've been struggling with
> that for some time ;)
>
> Here's what I did, I'd like to know whether this is the correct method
> (indeed http://www.eclipse.org/forums/index.php/m/897161/ was not enough
> for me):
>
> - cloned http://git.eclipse.org/c/tmf/org.eclipse.xtext.git/
> - import most of the projects (excluding documentation and maven)
> - import the examples starting from the directory
> /examples/org.eclipse.xtext.xtext.ui.examples/contents/ (otherwise the
> plugin projects are not shown to be imported, since they are shadowed by
> org.eclipse.xtext.xtext.ui.examples)
> - set API baseline as detailed in
> /org.eclipse.xtext.releng/api-baseline/readme.txt
> - set target platform using
> /org.eclipse.xtext.releng/target-platforms/developer-juno-3_8-emf-2_5.target
>
> - cloned http://git.eclipse.org/gitroot/xtend/org.eclipse.xtend.git
> - import most of the projects in the plugins directory
> - cloned http://git.eclipse.org/gitroot/emf/org.eclipse.mwe.git
> - import org.eclipse.emf.mwe2.language, org.eclipse.emf.mwe2.launch,
> org.eclipse.emf.mwe2.lib
>
> now I have no error :)
>
> is this correct?
>
> thanks in advance
> cheers
> Lorenzo
>
Re: Setting Developer Environment [message #970826 is a reply to message #897296] Sun, 04 November 2012 10:31 Go to previous message
Boris Brodski is currently offline Boris BrodskiFriend
Messages: 112
Registered: July 2009
Senior Member
Hello Sebastian,
Hello Lorenzo,

Thank you for the tips!

I followed those steps. It was partially success, but I still have some major issues, that prevent me from using my new development environment. I used
- eclipse-SDK-4.2-Xtext-2.3.1-linux-gtk-x86_64

Here are some issues I had:

1. Along the way I had to install different plugins into my eclipse (like easymock or GMF). Is there a recommended (zipped) eclipse somewhere with all necessary plugins installed?

2. The last released Xtend (2.3.1) installed into the eclipse fails to compile some Xtend source files. The problem was always the casting. Xtend fails to use right (casted) variable after an instanceof check within the generated code. I had to fix it manually. So which Xtend/Xtext version should be used?

3. After altering the Xtext.ecore file and invoking "Generate Model Code" from the Xtext.genmodel I had a lot of errors. Here are some of those:
- Missing @since tag on getMyCoolNewAttribute()
- The import ecore cannot be resolved
- The method doSwitch(int, EObject) in the type XtextSwitch<Boolean> is not applicable for the arguments
(AbstractElement)

Thank you for the help!


Regards,
Boris
Previous Topic:Why generated file in /src-gen is removed when input file is not valid
Next Topic:narrow cross references
Goto Forum:
  


Current Time: Fri Apr 26 08:41:04 GMT 2024

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

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

Back to the top