本文整理汇总了Java中com.intellij.framework.FrameworkTypeEx类的典型用法代码示例。如果您正苦于以下问题:Java FrameworkTypeEx类的具体用法?Java FrameworkTypeEx怎么用?Java FrameworkTypeEx使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FrameworkTypeEx类属于com.intellij.framework包,在下文中一共展示了FrameworkTypeEx类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: AddSupportForSingleFrameworkDialog
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public AddSupportForSingleFrameworkDialog(@NotNull Module module,
FrameworkTypeEx frameworkType, @NotNull FrameworkSupportInModuleProvider provider,
@NotNull LibrariesContainer librariesContainer,
ModifiableModelsProvider modifiableModelsProvider) {
super(module.getProject(), true);
VirtualFile[] roots = ModuleRootManager.getInstance(module).getContentRoots();
final VirtualFile baseDir = roots.length > 0 ? roots[0] : module.getProject().getBaseDir();
final String baseDirectoryForLibraries = baseDir != null ? baseDir.getPath() : "";
myFrameworkType = frameworkType;
myModifiableModelsProvider = modifiableModelsProvider;
setTitle(ProjectBundle.message("dialog.title.add.framework.0.support", frameworkType.getPresentableName()));
myModule = module;
myModel = new FrameworkSupportModelImpl(module.getProject(), baseDirectoryForLibraries, librariesContainer);
myConfigurable = provider.createConfigurable(myModel);
myComponent = new FrameworkSupportOptionsComponent(myModel, myModel.getLibrariesContainer(), myDisposable, provider, myConfigurable);
Disposer.register(myDisposable, myConfigurable);
init();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:AddSupportForSingleFrameworkDialog.java
示例2: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType() {
return new FrameworkTypeEx(ID) {
@NotNull
@Override
public FrameworkSupportInModuleProvider createProvider() {
return GradleJavaFrameworkSupportProvider.this;
}
@NotNull
@Override
public String getPresentableName() {
return "Java";
}
@NotNull
@Override
public Icon getIcon() {
return AllIcons.Nodes.Module;
}
};
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:GradleJavaFrameworkSupportProvider.java
示例3: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType() {
return new FrameworkTypeEx(ID) {
@NotNull
@Override
public FrameworkSupportInModuleProvider createProvider() {
return GradleGroovyFrameworkSupportProvider.this;
}
@NotNull
@Override
public String getPresentableName() {
return "Groovy";
}
@NotNull
@Override
public Icon getIcon() {
return JetgroovyIcons.Groovy.Groovy_16x16;
}
};
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:GradleGroovyFrameworkSupportProvider.java
示例4: createAddFrameworkActions
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public static Collection<AnAction> createAddFrameworkActions(FacetEditorFacade editor, Project project) {
SortedMap<String, AnAction> actions = new TreeMap<String, AnAction>();
for (FrameworkTypeEx frameworkType : FrameworkTypeEx.EP_NAME.getExtensions()) {
final AnAction action = new AddFrameworkSupportInProjectStructureAction(frameworkType, frameworkType.createProvider(),
ModuleStructureConfigurable.getInstance(project));
actions.put(frameworkType.getPresentableName(), action);
}
for (FacetType type : FacetTypeRegistry.getInstance().getFacetTypes()) {
actions.put(type.getPresentableName(), new AddFacetToModuleAction(editor, project, type));
}
return actions.values();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:AddFacetToModuleAction.java
示例5: getAllProviders
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public static List<FrameworkSupportInModuleProvider> getAllProviders() {
List<FrameworkSupportInModuleProvider> allTypes = new ArrayList<FrameworkSupportInModuleProvider>();
for (FrameworkSupportProvider provider : FrameworkSupportProvider.EXTENSION_POINT.getExtensions()) {
allTypes.add(new OldFrameworkSupportProviderWrapper(provider));
}
for (FrameworkTypeEx type : FrameworkTypeEx.EP_NAME.getExtensions()) {
allTypes.add(type.createProvider());
}
return allTypes;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:FrameworkSupportUtil.java
示例6: AddFrameworkSupportInProjectStructureAction
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public AddFrameworkSupportInProjectStructureAction(@NotNull FrameworkTypeEx frameworkType, @NotNull FrameworkSupportInModuleProvider provider,
@NotNull ModuleStructureConfigurable moduleStructureConfigurable) {
super(frameworkType.getPresentableName(), "Add " + frameworkType.getPresentableName() + " support", frameworkType.getIcon());
myFrameworkType = frameworkType;
myProvider = provider;
myModuleStructureConfigurable = moduleStructureConfigurable;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:AddFrameworkSupportInProjectStructureAction.java
示例7: computeFrameworkTypeByIdMap
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public static Map<String, FrameworkType> computeFrameworkTypeByIdMap() {
Map<String, FrameworkType> frameworkTypes = new HashMap<String, FrameworkType>();
for (FrameworkTypeEx type : FrameworkTypeEx.EP_NAME.getExtensions()) {
frameworkTypes.put(type.getId(), type);
}
return frameworkTypes;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:FrameworkTypeUtil.java
示例8: createAddFrameworkActions
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public static Collection<AnAction> createAddFrameworkActions(FacetEditorFacade editor, Project project) {
SortedMap<String, AnAction> actions = new TreeMap<String, AnAction>();
for (FacetType type : FacetTypeRegistry.getInstance().getFacetTypes()) {
actions.put(type.getPresentableName(), new AddFacetToModuleAction(editor, project, type));
}
for (FrameworkTypeEx frameworkType : FrameworkTypeEx.EP_NAME.getExtensions()) {
final AnAction action = new AddFrameworkSupportInProjectStructureAction(frameworkType, frameworkType.createProvider(),
ModuleStructureConfigurable.getInstance(project));
actions.put(frameworkType.getPresentableName(), action);
}
return actions.values();
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:13,代码来源:AddFacetToModuleAction.java
示例9: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType()
{
return FrameworkTypeEx.EP_NAME.findExtension( ManFrameworkType.class );
}
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:7,代码来源:ManFrameworkSupportProvider.java
示例10: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType() {
return FrameworkTypeEx.EP_NAME.findExtension(GravFrameworkType.class);
}
开发者ID:PioBeat,项目名称:GravSupport,代码行数:6,代码来源:GravModuleProvider.java
示例11: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType()
{
return FrameworkTypeEx.EP_NAME.findExtension(MuleFrameworkType.class);
}
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:7,代码来源:MuleFrameworkSupportProvider.java
示例12: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType() {
return myType;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:OldFrameworkSupportProviderWrapper.java
示例13: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
public abstract FrameworkTypeEx getFrameworkType();
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:FrameworkSupportInModuleProvider.java
示例14: UnderlyingFrameworkSupportProviderBase
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public UnderlyingFrameworkSupportProviderBase(FrameworkTypeEx frameworkType,
Class<? extends DownloadableLibraryType> libraryTypeClass) {
super(frameworkType, libraryTypeClass);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:UnderlyingFrameworkSupportProviderBase.java
示例15: LibraryBasedFrameworkSupportProvider
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public LibraryBasedFrameworkSupportProvider(FrameworkTypeEx frameworkType, Class<? extends DownloadableLibraryType> libraryTypeClass) {
myFrameworkType = frameworkType;
myLibraryTypeClass = libraryTypeClass;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:LibraryBasedFrameworkSupportProvider.java
示例16: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType() {
return myFrameworkType;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:LibraryBasedFrameworkSupportProvider.java
示例17: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType() {
return AppEngineFrameworkType.getFrameworkType();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:AppEngineSupportProvider.java
示例18: RepositoryLibrarySupportInModuleProvider
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
public RepositoryLibrarySupportInModuleProvider(@NotNull FrameworkTypeEx type,
@NotNull RepositoryLibraryDescription libraryDescription) {
myFrameworkType = type;
this.libraryDescription = libraryDescription;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:RepositoryLibrarySupportInModuleProvider.java
示例19: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType() {
return FrameworkTypeEx.EP_NAME.findExtension(GroovyFrameworkType.class);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:GroovyFrameworkSupportProvider.java
示例20: getFrameworkType
import com.intellij.framework.FrameworkTypeEx; //导入依赖的package包/类
@NotNull
@Override
public FrameworkTypeEx getFrameworkType() {
return AppEngineFlexibleFrameworkType.getFrameworkType();
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:6,代码来源:AppEngineFlexibleSupportProvider.java
注:本文中的com.intellij.framework.FrameworkTypeEx类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论