Hide more settings in new project wizard

Hi,

In my prugin I've created a new moduleBuilder by extending MavenModuleBuilder and in create new project wizard it shows Module name, content root and module file location under 'More settings' like in below image

all.png

I want to hide those 'More settings properties like below image

no.png
I've looked around EmptyModuleBuilder and for the love of God, I can't figure out how it hide those values. Does anybody knows how to hide those extra 'More Settings properties' programatically within a ModuleBulder.

6 comments
Comment actions Permalink

'Empty project' mode doesn't create any module, it only creates absolutely empty project indeed, that's why it doesn't have module-related questions.

0
Comment actions Permalink

Is there any way I could programatically hide that module-related questions section only. Because I want to make sure when you're creating a new project Project directory and module directory are the same. So by hiding those input fields I can accomplish that.

0
Comment actions Permalink

I'm afraid not. Even if it were, user is able to change module roots afterwards in Project Structure dialog.

Note that project/module wizards are refactored in IntelliJ IDEA 13.1. Related refactorings are still in progress.

0
Comment actions Permalink

I see. Well, is there any way to add a file to an empty project after its creation. I mean I could write a moduleBuilder extending EmptyModuleBuilder. All I want to do is after creating empty project, add a pom file to the project.

0
Comment actions Permalink

Project doesn't contain any content/source roots. So it is impossible to say that some file belongs to the project if the project doesn't contain modules.
Are you familiar with Eclipse? Can you imagine adding a file to Eclipse workspace that doesn't contain Eclipse projects? ;)

0
Comment actions Permalink

I guess you're right. I'll create an empty module and add a pom to that. Adding a file to an empty project doesn't makes sense :) Thanks Alex

0

Please sign in to leave a comment.