Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » about adding a package
about adding a package [message #1072807] Tue, 23 July 2013 10:38 Go to next message
Yueming Hong is currently offline Yueming Hong
Messages: 87
Registered: April 2013
Member
Hi friends,
is it possible to add a package of files that could be shared and referenced within a xtext project? just like the java library, when you launch the editor, user can refer to the files within such package.
Rolling Eyes
Re: about adding a package [message #1072816 is a reply to message #1072807] Tue, 23 July 2013 11:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6127
Registered: July 2009
Senior Member
Hi have a look at what Xtend does for this (Xtend lib is such a
package)

--
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
Re: about adding a package [message #1072832 is a reply to message #1072816] Tue, 23 July 2013 11:44 Go to previous messageGo to next message
Yueming Hong is currently offline Yueming Hong
Messages: 87
Registered: April 2013
Member
could you give me a specific link?
Re: about adding a package [message #1072837 is a reply to message #1072832] Tue, 23 July 2013 11:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6127
Registered: July 2009
Senior Member
Nope sry

--
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
Re: about adding a package [message #1072868 is a reply to message #1072837] Tue, 23 July 2013 13:24 Go to previous messageGo to next message
Yueming Hong is currently offline Yueming Hong
Messages: 87
Registered: April 2013
Member
Don't see how it works. Sad

btw, any live example for tailoring the project wizard?

thanks
Re: about adding a package [message #1072880 is a reply to message #1072868] Tue, 23 July 2013 13:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6127
Registered: July 2009
Senior Member
Hi sry I don't have the time to browse the Xtend source code for you.
What do you mean with tailoring the wizard? Do you have a specific
question

--
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
Re: about adding a package [message #1072883 is a reply to message #1072880] Tue, 23 July 2013 14:05 Go to previous messageGo to next message
Yueming Hong is currently offline Yueming Hong
Messages: 87
Registered: April 2013
Member
Yes, to my understanding, a project wizard is you can choose to create a project of your own type. for instance, the eclipse comes with the ability to create java project and provides defaults for the java project.
If i can tailor such a project wizard for my language, then it would be nice to the users.

is it possible?
Re: about adding a package [message #1072887 is a reply to message #1072883] Tue, 23 July 2013 14:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6127
Registered: July 2009
Senior Member
Hi,

simply add/enable the

 fragment = projectWizard.SimpleProjectWizardFragment auto-inject {
    		      generatorProjectName = "${projectName}"
    		 }



in the workflow, run it, merge plugin.xml_gen to plugin.xml in the ui project
and you are started
Re: about adding a package [message #1072999 is a reply to message #1072887] Tue, 23 July 2013 19:06 Go to previous message
Yueming Hong is currently offline Yueming Hong
Messages: 87
Registered: April 2013
Member
Thanks Christ, I will try it.
Previous Topic:Filter JvmType content assist for inferred type from specific source type from the dsl
Next Topic:No EObjectDescription could be found in Scope
Goto Forum:
  


Current Time: Thu Jul 24 06:58:14 EDT 2014

Powered by FUDForum. Page generated in 0.05548 seconds