本文整理汇总了Java中com.intellij.ide.util.newProjectWizard.StepSequence类的典型用法代码示例。如果您正苦于以下问题:Java StepSequence类的具体用法?Java StepSequence怎么用?Java StepSequence使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StepSequence类属于com.intellij.ide.util.newProjectWizard包,在下文中一共展示了StepSequence类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getWizard
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的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: createLessonContent
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Override
public PsiDirectory createLessonContent(@NotNull Project project, @NotNull Lesson lesson, @Nullable IdeView view, @NotNull PsiDirectory parentDirectory) {
NewModuleAction newModuleAction = new NewModuleAction();
String courseDirPath = parentDirectory.getVirtualFile().getPath();
Module utilModule = ModuleManager.getInstance(project).findModuleByName(EduIntelliJNames.UTIL);
if (utilModule == null) {
return null;
}
newModuleAction.createModuleFromWizard(project, null, new AbstractProjectWizard("", project, "") {
@Override
public StepSequence getSequence() {
return null;
}
@Override
public ProjectBuilder getProjectBuilder() {
return new EduLessonModuleBuilder(courseDirPath, lesson, utilModule);
}
});
return parentDirectory.findSubdirectory(EduNames.LESSON + lesson.getIndex());
}
开发者ID:medvector,项目名称:educational-plugin,代码行数:22,代码来源:EduPluginConfiguratorBase.java
示例3: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nonnull
@SuppressWarnings("unchecked")
public StepSequence createSteps(final WizardContext context) {
final StepSequence stepSequence = new StepSequence();
if (myProviders.length > 1) {
stepSequence.addCommonStep(new ImportChooserStep(myProviders, stepSequence, context));
}
for (ModuleImportProvider provider : myProviders) {
ModuleImportContext moduleImportContext = context.getModuleImportContext(provider);
provider.addSteps(stepSequence, context, moduleImportContext, provider.getClass().getName());
}
if (myProviders.length == 1) {
stepSequence.setType(myProviders[0].getClass().getName());
}
return myStepSequence = stepSequence;
}
开发者ID:consulo,项目名称:consulo,代码行数:21,代码来源:ImportMode.java
示例4: addSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
public void addSteps(WizardContext context, ModulesProvider modulesProvider, StepSequence sequence, String specific) {
final ProjectFromSourcesBuilderImpl projectBuilder = new ProjectFromSourcesBuilderImpl(context, modulesProvider);
myProjectBuilder = projectBuilder;
final Icon icon = context.getStepIcon();
if (context.isCreatingNewProject()) {
addStep(sequence, new ProjectNameStep(context, this), specific);
}
addStep(sequence, new RootsDetectionStep(projectBuilder, context, sequence, icon, "reference.dialogs.new.project.fromCode.source"), specific);
Set<String> detectorTypes = new HashSet<String>();
for (ProjectStructureDetector detector : ProjectStructureDetector.EP_NAME.getExtensions()) {
detectorTypes.add(detector.getDetectorId());
for (ModuleWizardStep step : detector.createWizardSteps(projectBuilder, projectBuilder.getProjectDescriptor(detector), icon)) {
sequence.addSpecificStep(detector.getDetectorId(), step);
}
}
if (FrameworkDetectionStep.isEnabled()) {
FrameworkDetectionStep frameworkDetectionStep = new FrameworkDetectionStep(icon, projectBuilder) {
public List<ModuleDescriptor> getModuleDescriptors() {
final List<ModuleDescriptor> moduleDescriptors = new ArrayList<ModuleDescriptor>();
for (ProjectDescriptor descriptor : projectBuilder.getSelectedDescriptors()) {
moduleDescriptors.addAll(descriptor.getModules());
}
return moduleDescriptors;
}
};
projectBuilder.addConfigurationUpdater(frameworkDetectionStep);
sequence.addCommonFinishingStep(frameworkDetectionStep, detectorTypes);
}
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:33,代码来源:CreateFromSourcesMode.java
示例5: addStep
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
private static void addStep(StepSequence sequence, ModuleWizardStep step, String specific) {
if (specific == null) {
sequence.addCommonStep(step);
}
else {
sequence.addSpecificStep(specific, step);
}
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:CreateFromSourcesMode.java
示例6: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nullable
@Override
protected StepSequence createSteps(@NotNull WizardContext context, @NotNull ModulesProvider modulesProvider) {
MultiMap<TemplatesGroup, ProjectTemplate> map = getTemplatesMap(context);
StepSequence sequence = new StepSequence();
for (ProjectTemplate template : map.values()) {
sequence.addStepsForBuilder(template.createModuleBuilder(), context, modulesProvider);
}
mySelectTemplateStep = new SelectTemplateStep(context, sequence, map);
sequence.addCommonStep(mySelectTemplateStep);
return sequence;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:CreateFromTemplateMode.java
示例7: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nullable
protected StepSequence createSteps(@NotNull final WizardContext context, @NotNull final ModulesProvider modulesProvider) {
final StepSequence stepSequence = new StepSequence();
if (myProviders.length > 1) {
stepSequence.addCommonStep(new ImportChooserStep(myProviders, stepSequence, context));
}
for (ProjectImportProvider provider : myProviders) {
provider.addSteps(stepSequence, context, provider.getId());
}
if (myProviders.length == 1) {
stepSequence.setType(myProviders[0].getId());
}
return stepSequence;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:ImportMode.java
示例8: getSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nullable
public StepSequence getSteps(@NotNull WizardContext context, @NotNull final ModulesProvider modulesProvider) {
if (myStepSequence == null) {
myStepSequence = createSteps(context, modulesProvider);
}
return myStepSequence;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:WizardMode.java
示例9: RootsDetectionStep
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
public RootsDetectionStep(ProjectFromSourcesBuilderImpl builder,
WizardContext context,
StepSequence sequence,
Icon icon,
@NonNls String helpId) {
super(IdeBundle.message("prompt.stop.searching.for.sources", ApplicationNamesInfo.getInstance().getProductName()));
myBuilder = builder;
myContext = context;
mySequence = sequence;
myIcon = icon;
myHelpId = helpId;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:RootsDetectionStep.java
示例10: addSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Override
public void addSteps(StepSequence sequence, WizardContext context, String id) {
CreateModuleFromSourcesMode mode = new CreateModuleFromSourcesMode() {
@Override
public ProjectBuilder getModuleBuilder() {
return myProjectBuilder;
}
};
mode.addSteps(context, DefaultModulesProvider.createForProject(context.getProject()), sequence, getName());
myBuilder = (ProjectImportBuilder)mode.getModuleBuilder();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:ImportFromSourcesProvider.java
示例11: getSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nullable
public StepSequence getSteps(final WizardContext context, @Nonnull final ModulesProvider modulesProvider) {
if (myStepSequence == null) {
myStepSequence = createSteps(context, modulesProvider);
}
return myStepSequence;
}
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:WizardMode.java
示例12: getSequence
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Override
public StepSequence getSequence() {
return mySequence;
}
开发者ID:medvector,项目名称:educational-plugin,代码行数:5,代码来源:EduSelectCourseProjectWizard.java
示例13: getDirectoryProjectGenerator
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@NotNull
@Override
public DirectoryProjectGenerator getDirectoryProjectGenerator() {
return new DirectoryProjectGenerator() {
@Nls
@NotNull
@Override
public String getName() {
return "Kotlin Koans generator";
}
@Nullable
@Override
public Icon getLogo() {
return KotlinIcons.SMALL_LOGO;
}
@Override
public void generateProject(@NotNull Project project, @NotNull VirtualFile baseDir, @Nullable Object settings, @NotNull Module module) {
new NewModuleAction().createModuleFromWizard(project, null, new AbstractProjectWizard("", project, baseDir.getPath()) {
@Override
public StepSequence getSequence() {
return null;
}
@Override
public ProjectBuilder getProjectBuilder() {
return new EduKotlinKoansModuleBuilder(myCourse);
}
});
setJdk(project);
setCompilerOutput(project);
}
@NotNull
@Override
public ValidationResult validate(@NotNull String baseDirPath) {
return ValidationResult.OK;
}
};
}
开发者ID:medvector,项目名称:educational-plugin,代码行数:44,代码来源:EduKotlinCourseProjectGenerator.java
示例14: addSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
public void addSteps(StepSequence sequence, WizardContext context, String id) {
ModuleWizardStep[] steps = createSteps(context);
for (ModuleWizardStep step : steps) {
sequence.addSpecificStep(id, step);
}
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:ProjectImportProvider.java
示例15: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nullable
protected StepSequence createSteps(@NotNull final WizardContext context, @NotNull final ModulesProvider modulesProvider) {
final StepSequence sequence = new StepSequence();
addSteps(context, modulesProvider, sequence, null);
return sequence;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:CreateFromSourcesMode.java
示例16: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nullable
protected StepSequence createSteps(@NotNull final WizardContext context, @NotNull final ModulesProvider modulesProvider) {
return null;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ImportImlMode.java
示例17: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nullable
protected abstract StepSequence createSteps(@NotNull WizardContext context, @NotNull ModulesProvider modulesProvider);
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:WizardMode.java
示例18: getSequence
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Override
public StepSequence getSequence() {
return mySequence;
}
开发者ID:kristianmandrup,项目名称:emberjs-plugin,代码行数:5,代码来源:NewEmberProjectWizard.java
示例19: addSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
default void addSteps(StepSequence sequence, WizardContext context, @Nonnull C moduleImportContext, String id) {
ModuleWizardStep[] steps = createSteps(context, moduleImportContext);
for (ModuleWizardStep step : steps) {
sequence.addSpecificStep(id, step);
}
}
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:ModuleImportProvider.java
示例20: getSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Nullable
public StepSequence getSteps() {
assert myStepSequence != null;
return myStepSequence;
}
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:ImportMode.java
注:本文中的com.intellij.ide.util.newProjectWizard.StepSequence类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论