本文整理汇总了Java中com.intellij.ide.util.projectWizard.WizardContext.getProjectBuilder方法的典型用法代码示例。如果您正苦于以下问题:Java WizardContext.getProjectBuilder方法的具体用法?Java WizardContext.getProjectBuilder怎么用?Java WizardContext.getProjectBuilder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.ide.util.projectWizard.WizardContext
的用法示例。
在下文中一共展示了WizardContext.getProjectBuilder方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMostRecentSuitableSdk
import com.intellij.ide.util.projectWizard.WizardContext; //导入方法依赖的package包/类
@Nullable
public static Sdk getMostRecentSuitableSdk(final WizardContext context) {
if (context.getProject() == null) {
@Nullable final ProjectBuilder projectBuilder = context.getProjectBuilder();
return ProjectJdkTable.getInstance().findMostRecentSdk(new Condition<Sdk>() {
public boolean value(Sdk sdk) {
return projectBuilder == null || projectBuilder.isSuitableSdkType(sdk.getSdkType());
}
});
}
return null;
}
示例2: getBuilder
import com.intellij.ide.util.projectWizard.WizardContext; //导入方法依赖的package包/类
@Nullable
public static AdtImportBuilder getBuilder(@Nullable WizardContext context) {
if (context != null) {
return (AdtImportBuilder)context.getProjectBuilder();
}
return null;
}
示例3: getImporter
import com.intellij.ide.util.projectWizard.WizardContext; //导入方法依赖的package包/类
@Nullable
static GradleImport getImporter(@Nullable WizardContext context) {
if (context != null) {
AdtImportBuilder builder = (AdtImportBuilder)context.getProjectBuilder();
if (builder != null) {
return builder.getImporter();
}
}
return null;
}
示例4: updateDataModel
import com.intellij.ide.util.projectWizard.WizardContext; //导入方法依赖的package包/类
@Override
public void updateDataModel() {
WizardContext context = getWizardContext();
context.setProjectFileDirectory(getProjectFileDirectory());
AdtImportBuilder builder = (AdtImportBuilder)context.getProjectBuilder();
if (builder != null) {
builder.setSelectedProject(mySourceProject);
}
}