本文整理汇总了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)
};
}
}
示例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;
}
示例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();
}
示例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;
}
示例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()
};
}
示例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()]);
}
示例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;
}
示例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)
};
}
示例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;
}
示例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)
};
}
示例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;
}
示例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;
}