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


Java ProjectImportBuilder类代码示例

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


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

示例1: SearchHybrisDistributionDirectoryTaskModalWindow

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
public SearchHybrisDistributionDirectoryTaskModalWindow(
    @NotNull final File rootProjectDirectory,
    @NotNull final Processor<String> resultProcessor
) {
    super(
        ProjectImportBuilder.getCurrentProject(),
        HybrisI18NBundleUtils.message("hybris.project.import.searching.hybris.distribution"),
        true
    );

    Validate.notNull(rootProjectDirectory);
    Validate.notNull(resultProcessor);

    this.rootProjectDirectory = rootProjectDirectory;
    this.resultProcessor = resultProcessor;
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:17,代码来源:SearchHybrisDistributionDirectoryTaskModalWindow.java

示例2: SearchModulesRootsTaskModalWindow

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
public SearchModulesRootsTaskModalWindow(
    @NotNull final File rootProjectDirectory,
    @NotNull final HybrisProjectDescriptor projectImportParameters
) {
    super(
        ProjectImportBuilder.getCurrentProject(),
        HybrisI18NBundleUtils.message("hybris.project.import.scanning"),
        true
    );

    Validate.notNull(rootProjectDirectory);
    Validate.notNull(projectImportParameters);

    this.rootProjectDirectory = rootProjectDirectory;
    this.projectImportParameters = projectImportParameters;
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:17,代码来源:SearchModulesRootsTaskModalWindow.java

示例3: onWizardFinished

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
public void onWizardFinished() throws CommitStepException {
    // This method is called even non-hybris builder is used for importing and the step
    // hasn't been even shown to a user, so we can't use getContext() here.
    final ProjectImportBuilder builder = getBuilder();

    if (builder instanceof AbstractHybrisProjectImportBuilder) {
        ((AbstractHybrisProjectImportBuilder) builder).resetExternalStepName();
    }
    super.onWizardFinished();
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:11,代码来源:SelectOtherModulesToImportStep.java

示例4: addModule

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
@Nullable
public List<Module> addModule(Component parent, boolean anImport) {
  if (myProject.isDefault()) return null;
  final ProjectBuilder builder = runModuleWizard(parent, anImport);
  if (builder != null ) {
    final List<Module> modules = new ArrayList<Module>();
    DumbService.allowStartingDumbModeInside(DumbModePermission.MAY_START_BACKGROUND, new Runnable() {
      @Override
      public void run() {
        final List<Module> committedModules;
        if (builder instanceof ProjectImportBuilder<?>) {
          final ModifiableArtifactModel artifactModel =
            ProjectStructureConfigurable.getInstance(myProject).getArtifactsStructureConfigurable().getModifiableArtifactModel();
          committedModules = ((ProjectImportBuilder<?>)builder).commit(myProject, myModuleModel, ModulesConfigurator.this, artifactModel);
        }
        else {
          committedModules = builder.commit(myProject, myModuleModel, ModulesConfigurator.this);
        }
        if (committedModules != null) {
          modules.addAll(committedModules);
        }
        ApplicationManager.getApplication().runWriteAction(new Runnable() {
          @Override
          public void run() {
            for (Module module : modules) {
              getOrCreateModuleEditor(module);
            }
          }
        });
      }
    });
    return modules;
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:36,代码来源:ModulesConfigurator.java

示例5: addSteps

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的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

示例6: addModule

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
@Nullable
public List<Module> addModule(Component parent, boolean anImport) {
  if (myProject.isDefault()) return null;
  final ProjectBuilder builder = runModuleWizard(parent, anImport);
  if (builder != null ) {
    final List<Module> modules = new ArrayList<Module>();
    final List<Module> commitedModules;
    if (builder instanceof ProjectImportBuilder<?>) {
      final ModifiableArtifactModel artifactModel =
          ProjectStructureConfigurable.getInstance(myProject).getArtifactsStructureConfigurable().getModifiableArtifactModel();
      commitedModules = ((ProjectImportBuilder<?>)builder).commit(myProject, myModuleModel, this, artifactModel);
    }
    else {
      commitedModules = builder.commit(myProject, myModuleModel, this);
    }
    if (commitedModules != null) {
      modules.addAll(commitedModules);
    }
    ApplicationManager.getApplication().runWriteAction(new Runnable() {
       @Override
       public void run() {
         for (Module module : modules) {
           getOrCreateModuleEditor(module);
         }
       }
     });
    return modules;
  }
  return null;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:31,代码来源:ModulesConfigurator.java

示例7: commit

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
@Nonnull
@Override
public List<Module> commit(@Nonnull ModuleImportContext context,
                           @Nonnull Project project,
                           ModifiableModuleModel model,
                           @Nonnull ModulesProvider modulesProvider,
                           ModifiableArtifactModel artifactModel) {
  ProjectImportBuilder<?> builder = myProvider.getBuilder();
  List<Module> list = builder.commit(project, model, modulesProvider);
  return list == null ? Collections.<Module>emptyList() : list;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:LegacyModuleImportProvider.java

示例8: AbstractExternalProjectImportProvider

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
public AbstractExternalProjectImportProvider(ProjectImportBuilder builder, @NotNull ProjectSystemId externalSystemId) {
  super(builder);
  myExternalSystemId = externalSystemId;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AbstractExternalProjectImportProvider.java

示例9: AbstractExternalProjectImportProvider

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
public AbstractExternalProjectImportProvider(ProjectImportBuilder builder, @Nonnull ProjectSystemId externalSystemId) {
  super(builder);
  myExternalSystemId = externalSystemId;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:AbstractExternalProjectImportProvider.java

示例10: setProjectBuilder

import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
@Deprecated
public void setProjectBuilder(@Nullable final ProjectImportBuilder projectBuilder) {
  myImportProvider = new LegacyModuleImportProvider(projectBuilder.getProvider());
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:WizardContext.java


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