Skip to main content


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 14:38 Go to next message
Yueming Hong is currently offline Yueming HongFriend
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 15:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: about adding a package [message #1072832 is a reply to message #1072816] Tue, 23 July 2013 15:44 Go to previous messageGo to next message
Yueming Hong is currently offline Yueming HongFriend
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 15:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: about adding a package [message #1072868 is a reply to message #1072837] Tue, 23 July 2013 17:24 Go to previous messageGo to next message
Yueming Hong is currently offline Yueming HongFriend
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 17:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: about adding a package [message #1072883 is a reply to message #1072880] Tue, 23 July 2013 18:05 Go to previous messageGo to next message
Yueming Hong is currently offline Yueming HongFriend
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 18:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: about adding a package [message #1072999 is a reply to message #1072887] Tue, 23 July 2013 23:06 Go to previous message
Yueming Hong is currently offline Yueming HongFriend
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 Apr 18 12:51:49 GMT 2024

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

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

Back to the top