本文整理汇总了Java中com.intellij.ide.util.newProjectWizard.StepSequence类的典型用法代码示例。如果您正苦于以下问题:Java StepSequence类的具体用法?Java StepSequence怎么用?Java StepSequence使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StepSequence类属于com.intellij.ide.util.newProjectWizard包,在下文中一共展示了StepSequence类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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());
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例12: getSequence
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入依赖的package包/类
@Override
public StepSequence getSequence() {
return mySequence;
}
示例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;
}
};
}
示例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);
}
}
示例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;
}