@@ -0,0 +1,2546 @@
+package org.perfcake.pc4idea.module;%0A%0Aimport com.intellij.ide.util.projectWizard.JavaModuleBuilder;%0Aimport com.intellij.openapi.application.ApplicationManager;%0Aimport com.intellij.openapi.fileEditor.FileEditorManager;%0Aimport com.intellij.openapi.module.Module;%0Aimport com.intellij.openapi.module.ModuleType;%0Aimport com.intellij.openapi.options.ConfigurationException;%0Aimport com.intellij.openapi.project.Project;%0Aimport com.intellij.openapi.roots.ModifiableRootModel;%0Aimport com.intellij.openapi.startup.StartupManager;%0Aimport com.intellij.openapi.vfs.VirtualFile;%0Aimport org.jetbrains.annotations.NonNls;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: Stanislav Kaleta%0A * Date: 8.9.2014%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class PCModuleBuilder extends JavaModuleBuilder %7B%0A    @NonNls private static final String messagesDirName = %22messages%22;%0A    @NonNls private static final String scenariosDirName = %22scenarios%22;%0A%0A%0A    @Override%0A    public ModuleType getModuleType() %7B%0A        return PCModuleType.getInstance();%0A    %7D%0A//    @Override%0A//    public String getGroupName() %7B%0A//        return %22PerfCake%22;%0A//    %7D%0A    @Override%0A    public void setupRootModel(final ModifiableRootModel rootModel) throws ConfigurationException %7B%0A        super.setupRootModel(rootModel);%0A%0A        final Module module = rootModel.getModule();%0A        final Project project = module.getProject();%0A%0A        StartupManager.getInstance(project).runWhenProjectIsInitialized(new Runnable() %7B%0A            public void run() %7B%0A                ApplicationManager.getApplication().runWriteAction(new Runnable() %7B%0A                    public void run() %7B%0A                        try %7B%0A                            VirtualFile messageDir = project.getBaseDir().createChildDirectory(null, messagesDirName);%0A                            if (messageDir != null) %7B%0A                                FileEditorManager.getInstance(project).openFile(messageDir, true);%0A                            %7D%0A                            VirtualFile scenariosDir = project.getBaseDir().createChildDirectory(null, scenariosDirName);%0A                            if (scenariosDir != null) %7B%0A                                FileEditorManager.getInstance(project).openFile(scenariosDir, true);%0A                            %7D%0A                        %7D catch (IOException e) %7B%0A                            e.printStackTrace();    /*TODO log*/%0A                        %7D%0A                    %7D%0A                %7D);%0A%0A            %7D%0A        %7D);%0A    %7D%0A%0A%7D%0A

package update