本文整理汇总了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;
}
示例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();
}
示例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;
}
示例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;
}
示例8: AbstractExternalProjectImportProvider
import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
public AbstractExternalProjectImportProvider(ProjectImportBuilder builder, @NotNull ProjectSystemId externalSystemId) {
super(builder);
myExternalSystemId = externalSystemId;
}
示例9: AbstractExternalProjectImportProvider
import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
public AbstractExternalProjectImportProvider(ProjectImportBuilder builder, @Nonnull ProjectSystemId externalSystemId) {
super(builder);
myExternalSystemId = externalSystemId;
}
示例10: setProjectBuilder
import com.intellij.projectImport.ProjectImportBuilder; //导入依赖的package包/类
@Deprecated
public void setProjectBuilder(@Nullable final ProjectImportBuilder projectBuilder) {
myImportProvider = new LegacyModuleImportProvider(projectBuilder.getProvider());
}