Get Project Name in new Project Wizard for Eclipse [message #1745299] |
Fri, 07 October 2016 07:29  |
Eclipse User |
|
|
|
Hey everyone,
I have a short question concerning the new Project Wizard for eclipse feature which was added I think with version 2.9 of xtext.
While before the Project name was accessible through xpand using projectName of MD2ProjectInfo (as I understand), now I try to use it within MyDslNewProjectWizardInitialContents.
I have tried to inject MyDslProjectInfo, however, the projectName variable is null, when accessed.
Does anyone have an idea how to access the Project Name from MyDslNewProjectWizardInitialContents in order to generate the files from there?
Greets,
Martin
[Updated on: Thu, 08 December 2016 10:02] by Moderator
|
|
|
|
|
|
|
Re: Get Project Name in new Project Wizard for Eclipse [message #1745323 is a reply to message #1745307] |
Fri, 07 October 2016 09:01  |
Eclipse User |
|
|
|
Christian Dietrich wrote on Fri, 07 October 2016 12:01well this is something the infrastructure is not really built for. i think you have to customize MyDslProjectCreator for that.
@lorenzo what do you think?
Indeed the project info is not meant to be injected: it is used by the wizard infrastructure to store information about the project. I see that the solution has already been found... though it's strange that it works by just injecting the project creator: I would assume that project info is null if you inject project creator...
|
|
|
Powered by
FUDForum. Page generated in 0.08982 seconds