|
Re: create custom folder structure [message #1740248 is a reply to message #1740245] |
Wed, 10 August 2016 17:12 |
|
in xtext 2.10+ you can add to yoiur workflow
language = StandardLanguage {
name = "org.xtext.example.mydsl2.MyDsl"
fileExtensions = "mydsl2"
serializer = {
generateStub = false
}
validator = {
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
newProjectWizardForEclipse = {
generate = true
}
}
which creates MyDslNewProjectWizard nd MyDslProjectCreator + registrations in pluginxml
use that (at least as starting point)
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
|
|
Re: create custom folder structure [message #1740426 is a reply to message #1740422] |
Fri, 12 August 2016 17:56 |
|
hmmm i fear there is no magic button
well new project and new file wizards are a std. eclipse thing and only partially a xtext thing.
so looking on how to create a new file wizard in eclipse will give you an answer for (2)
regarding (1) well you have to digg/customize what xtext creates. the newprojectwizard basically calls a IProjectCreator (MyDslProjectCreator)
which is depending on config a AbstractPluginProjectCreator which allows you to configure with getRequiredBundles a list of plugins added to the manifest
or a AbstractProjectCreator. these use ProjectFactories to create projects.
there is a JavaProjectFactory that allows you to add additional classpath entries
you can fiddle around what the code does and customize it. there is not an option for all 1000 possibilities in the workflow unfortunately.
maybe you can use existing code places in xtext a inspiration source like
org.eclipse.xtext.xtext.ui.wizard.project.XtextProjectCreator
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Powered by
FUDForum. Page generated in 0.02147 seconds