Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Project Wizard for xtext Project(How to generate project wizard using xtext?)
Project Wizard for xtext Project [message #1731030] Mon, 02 May 2016 11:46 Go to next message
Han Li Koay is currently offline Han Li KoayFriend
Messages: 25
Registered: February 2016
Junior Member
Hi guys!

May i know how do i configure my mwe2 workflow to generate the project wizard automatically for me for xtext 2.9.2? I realized that the workflow changed from the old Xtext version and i did not know how exactly should I configure the wizard fragments for the latest Xtext version.

And previously when i try to create my DSL project using the custom project wizard, it was found in the "Xtext" folder which looks like this:
http://s32.postimg.org/z05nj1k9x/xtext.png

I was hoping to get a project wizard structure like this that has its own individual folder which is not under Xtext folder:
- Xtext
-- Xtext Project

- UPF Editor 
-- UPF Editor file
-- UPF Editor project

Is there any way to achieve something like that in xtext project?
Any help is appreciated greatly!

Thanks
Hanli Smile
Re: Project Wizard for xtext Project [message #1731032 is a reply to message #1731030] Mon, 02 May 2016 12:02 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
you may follow https://bugs.eclipse.org/bugs/show_bug.cgi?id=490796.

did you try to use as workaround

fragment = org.eclipse.xtext.generator.adapter.FragmentAdapter {
fragment = org.eclipse.xtext.ui.generator.projectWizard.SimpleProjectWizardFragment {} //from .... xtext.generator
}


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Project Wizard for xtext Project [message #1731035 is a reply to message #1731032] Mon, 02 May 2016 12:41 Go to previous messageGo to next message
Han Li Koay is currently offline Han Li KoayFriend
Messages: 25
Registered: February 2016
Junior Member
Sorry Christian, but that link is broken.

But i successfully generated the project wizard by using:
fragment = ui.projectWizard.SimpleProjectWizardFragment2{
generate = true
}

Do you have any idea on the 2nd question of my first post?

Thanks
Hanli Smile
Re: Project Wizard for xtext Project [message #1731044 is a reply to message #1731035] Mon, 02 May 2016 13:11 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
well it seems to be the . https://bugs.eclipse.org/bugs/show_bug.cgi?id=490796

have a look the the generated plugin.xml / plugin.xml_gen (you may have to merge the second to the first) - i am sure it puts the wizard to a certain category


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Project Wizard for xtext Project [message #1731063 is a reply to message #1731044] Mon, 02 May 2016 15:14 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
As Christian said, this is now available, but in Xtext 2.10 nightly.

The documentation has also been updated, you can see the diff here:

https://github.com/eclipse/xtext/pull/989/files

The project wizard will be by default in the "Xtext" category as it also
used to be in the past.

cheers
Lorenzo

--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Re: Project Wizard for xtext Project [message #1731124 is a reply to message #1731063] Tue, 03 May 2016 03:03 Go to previous messageGo to next message
Han Li Koay is currently offline Han Li KoayFriend
Messages: 25
Registered: February 2016
Junior Member
Thanks Christian and Lorenzo for the help.
I defined my own category and changed the default "Xtext" category to my custom category in plugin.xml and it works perfectly.

Is there any default icon that i can set to the project wizard?

Thanks
Hanli Smile
Re: Project Wizard for xtext Project [message #1731126 is a reply to message #1731124] Tue, 03 May 2016 03:09 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fdialogs_wizards_newWizards.htm

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Providing type for keywords
Next Topic:How to resolve reference to ecore class?
Goto Forum:
  


Current Time: Tue Apr 16 13:04:01 GMT 2024

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

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

Back to the top