当前位置: 首页>>代码示例>>Java>>正文


Java WizardContext类代码示例

本文整理汇总了Java中com.intellij.ide.util.projectWizard.WizardContext的典型用法代码示例。如果您正苦于以下问题:Java WizardContext类的具体用法?Java WizardContext怎么用?Java WizardContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


WizardContext类属于com.intellij.ide.util.projectWizard包,在下文中一共展示了WizardContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getWizard

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
private AddModuleWizard getWizard(final Project project) throws ConfigurationException {
    final HybrisProjectImportProvider provider = getHybrisProjectImportProvider();
    final String basePath = project.getBasePath();
    final String projectName = project.getName();
    final Sdk jdk = ProjectRootManager.getInstance(project).getProjectSdk();
    final String compilerOutputUrl = CompilerProjectExtension.getInstance(project).getCompilerOutputUrl();
    final HybrisProjectSettings settings = HybrisProjectSettingsComponent.getInstance(project).getState();

    final AddModuleWizard wizard = new AddModuleWizard(null, basePath, provider) {

        protected void init() {
            // non GUI mode
        }
    };
    final WizardContext wizardContext = wizard.getWizardContext();
    wizardContext.setProjectJdk(jdk);
    wizardContext.setProjectName(projectName);
    wizardContext.setCompilerOutputDirectory(compilerOutputUrl);
    final StepSequence stepSequence = wizard.getSequence();
    for (ModuleWizardStep step : stepSequence.getAllSteps()) {
        if (step instanceof NonGuiSupport) {
            ((NonGuiSupport) step).nonGuiModeImport(settings);
        }
    }
    return wizard;
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:27,代码来源:ProjectRefreshAction.java

示例2: doQuickImport

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@Override
public boolean doQuickImport(final VirtualFile file, final WizardContext wizardContext) {
    this.getBuilder().cleanup();
    this.getBuilder().setRootProjectDirectory(VfsUtil.virtualToIoFile(file.getParent()));

    final List<HybrisModuleDescriptor> projects = this.getBuilder().getList();
    if (null == projects || 1 != projects.size()) {
        return false;
    }

    try {
        this.getBuilder().setList(projects);
    } catch (ConfigurationException e) {
        LOG.error(e);
    }

    wizardContext.setProjectName(projects.get(0).getName());

    return true;
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:21,代码来源:HybrisProjectOpenProcessor.java

示例3: createSteps

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@Override
public ModuleWizardStep[] createSteps(WizardContext context) {
  if (myProjectImport) {
    return new ModuleWizardStep[]{
      new AdtImportLocationStep(context),
      new AdtImportPrefsStep(context),
      new AdtWorkspaceForm(context),
      new AdtImportSdkStep(context),
      new AdtRepositoriesStep(context),
      new AdtImportWarningsStep(context)
    };
  } else {
    return new ModuleWizardStep[]{
      new AdtImportPrefsStep(context),
      new AdtWorkspaceForm(context),
      new AdtImportSdkStep(context),
      new AdtRepositoriesStep(context),
      new AdtImportWarningsStep(context)
    };
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:AdtImportProvider.java

示例4: getTemplatesMap

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
public static MultiMap<TemplatesGroup, ProjectTemplate> getTemplatesMap(WizardContext context) {
  ProjectTemplatesFactory[] factories = ProjectTemplatesFactory.EP_NAME.getExtensions();
  final MultiMap<TemplatesGroup, ProjectTemplate> groups = new MultiMap<TemplatesGroup, ProjectTemplate>();
  for (ProjectTemplatesFactory factory : factories) {
    for (String group : factory.getGroups()) {
      ProjectTemplate[] templates = factory.createTemplates(group, context);
      List<ProjectTemplate> values = Arrays.asList(templates);
      if (!values.isEmpty()) {
        Icon icon = factory.getGroupIcon(group);
        String parentGroup = factory.getParentGroup(group);
        TemplatesGroup templatesGroup = new TemplatesGroup(group, null, icon, factory.getGroupWeight(group), parentGroup, group, null);
        groups.putValues(templatesGroup, values);
      }
    }
  }
  return groups;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:CreateFromTemplateMode.java

示例5: FrameworkBasedOptionsStep

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
public FrameworkBasedOptionsStep(T provider, final B builder, WizardContext context) {
  myContext = context;
  LibrariesContainer container = LibrariesContainerFactory.createContainer(myContext.getProject());
  myBuilder = builder;
  myFrameworkSupportModel = new FrameworkSupportModelBase(context.getProject(), myBuilder, container) {
    @NotNull
    @Override
    public String getBaseDirectoryForLibrariesPath() {
      return StringUtil.notNullize(builder.getContentEntryPath());
    }
  };
  //noinspection AbstractMethodCallInConstructor
  myConfigurable = createConfigurable(provider, myFrameworkSupportModel);
  myFrameworkSupportModel.selectFramework(provider, true);

  builder.addModuleConfigurationUpdater(new ModuleBuilder.ModuleConfigurationUpdater() {
    @Override
    public void update(@NotNull Module module, @NotNull ModifiableRootModel rootModel) {
      myConfigurable.addSupport(module, rootModel, null);
    }
  });

  myPanel = new JPanel(new BorderLayout(0, 4));
  myPanel.add(myConfigurable.getComponent(), BorderLayout.CENTER);
  updateDataModel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:FrameworkBasedOptionsStep.java

示例6: ImportSourceModulePath

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
public ImportSourceModulePath(@Nullable VirtualFile importSource,
                              @NotNull NewModuleWizardState wizardState,
                              @NotNull WizardContext context,
                              @Nullable Icon sidePanelIcon,
                              @Nullable TemplateWizardStep.UpdateListener listener) {
  myWizardState = wizardState;
  myContext = context;
  List<ModuleWizardStep> steps = Lists.newLinkedList();
  ImportSourceLocationStep locationStep = new ImportSourceLocationStep(context, importSource,
                                                                       wizardState, sidePanelIcon, listener);
  steps.add(locationStep);
  for (ModuleImporter importer : ModuleImporter.getAllImporters(myContext)) {
    steps.addAll(importer.createWizardSteps());
  }
  mySteps = steps;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:ImportSourceModulePath.java

示例7: createTemplates

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@NotNull
@Override
public ProjectTemplate[] createTemplates(@Nullable String group, WizardContext context) {
    return new ProjectTemplate[]{
            new TYPO3CMSClassicLayoutDirectoryProjectGenerator(),
            new TYPO3CMSComposerLayoutDirectoryProjectGenerator()
    };
}
 
开发者ID:cedricziel,项目名称:idea-php-typo3-plugin,代码行数:9,代码来源:TYPO3CMSProjectTemplatesFactory.java

示例8: createSteps

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@Override
public ModuleWizardStep[] createSteps(final WizardContext context) {
    final ProjectWizardStepFactory stepFactory = ProjectWizardStepFactory.getInstance();

    return new ModuleWizardStep[]{
        new CheckRequiredPluginsStep(context),
        new DiscountImportstep(context),
        new InformationStep(context),
        new HybrisWorkspaceRootStep(context),
        new SelectHybrisModulesToImportStep(context),
        new SelectOtherModulesToImportStep(context),
        stepFactory.createProjectJdkStep(context)
    };
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:15,代码来源:HybrisProjectImportProvider.java

示例9: createTemplates

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@NotNull
@Override
public ProjectTemplate[] createTemplates(@Nullable String group, WizardContext context) {
  final ArrayList<EduIntelliJProjectTemplate> templates = new ArrayList<>();
  final List<Course> courses = EduCourseUpdater.getInstance().getRemoteCourses();
  for (Course course : courses) {
    templates.add(new EduRemoteCourseTemplate(course));
  }
  Collections.addAll(templates, ApplicationManager.getApplication().getExtensions(EduIntelliJProjectTemplate.EP_NAME));
  return templates.toArray(new ProjectTemplate[templates.size()]);
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:12,代码来源:EduIntelliJTemplateFactory.java

示例10: createWizardSteps

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@Override
public ModuleWizardStep[] createWizardSteps(@NotNull WizardContext wizardContext,
                                            @NotNull ModulesProvider modulesProvider) {
    ConfigureProcessingProject projectConfig =  new ConfigureProcessingProject(wizardContext);

    ModuleWizardStep[] wizardSteps = new ModuleWizardStep[1];
    wizardSteps[0] = projectConfig;

    return wizardSteps;
}
 
开发者ID:mistodev,项目名称:processing-idea,代码行数:11,代码来源:ProcessingModuleBuilder.java

示例11: createSteps

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
public ModuleWizardStep[] createSteps(WizardContext context) {
    final ProjectWizardStepFactory stepFactory = ProjectWizardStepFactory.getInstance();
    return new ModuleWizardStep[]{
            stepFactory.createProjectJdkStep(context),
            new ProcessingSketchRootSelectStep(context),
            new ConfigureProcessingProject(context)
    };
}
 
开发者ID:mistodev,项目名称:processing-idea,代码行数:9,代码来源:ProcessingProjectImportProvider.java

示例12: getCustomOptionsStep

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@Override
@Nullable
public ModuleWizardStep getCustomOptionsStep(WizardContext context, Disposable parentDisposable) {
    setProject(context.getProject());
    GravIntroWizardStep step = new GravIntroWizardStep(this);
    Disposer.register(parentDisposable, step);
    return step;
}
 
开发者ID:PioBeat,项目名称:GravSupport,代码行数:9,代码来源:GravModuleBuilder.java

示例13: createWizardSteps

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@Override
    public ModuleWizardStep[] createWizardSteps(@NotNull WizardContext wizardContext, @NotNull ModulesProvider modulesProvider) {
        return new ModuleWizardStep[]{
//                new GravIntroWizardStep(this),
//                new GravModuleWizardStep(this)
        };
    }
 
开发者ID:PioBeat,项目名称:GravSupport,代码行数:8,代码来源:GravModuleBuilder.java

示例14: getCustomOptionsStep

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
@Nullable
@Override
public ModuleWizardStep getCustomOptionsStep(WizardContext context, Disposable parentDisposable) {
    MuleVersionConfiguration step = new MuleVersionConfiguration(this, muleVersion);
    Disposer.register(parentDisposable, step);
    return step;
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:8,代码来源:MuleDomainMavenModuleBuilder.java

示例15: LuaSdkSelectStep

import com.intellij.ide.util.projectWizard.WizardContext; //导入依赖的package包/类
public LuaSdkSelectStep(@NotNull final LuaModuleBuilder moduleBuilder, @Nullable final Icon icon,
                        @Nullable final String helpId, @NotNull final WizardContext context) {
    super();
    myIcon = icon;
    myModuleBuilder = moduleBuilder;
    myContext = context;
    myHelp = helpId;
}
 
开发者ID:internetisalie,项目名称:lua-for-idea,代码行数:9,代码来源:LuaSdkSelectStep.java


注:本文中的com.intellij.ide.util.projectWizard.WizardContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。