com.intellij.openapi.module.ModuleTypeManager Java Examples

The following examples show how to use com.intellij.openapi.module.ModuleTypeManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BlazeGoSyncPlugin.java    From intellij with Apache License 2.0 5 votes vote down vote up
@Nullable
@Override
public ModuleType getWorkspaceModuleType(WorkspaceType workspaceType) {
  return workspaceType == WorkspaceType.GO
      ? ModuleTypeManager.getInstance().getDefaultModuleType()
      : null;
}
 
Example #2
Source File: FlutterModuleUtils.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
public static ModuleType<?> getFlutterModuleType() {
  return ModuleTypeManager.getInstance().findByID(getModuleTypeIDForFlutter());
}
 
Example #3
Source File: FlutterModuleUtils.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
public static ModuleType<?> getFlutterModuleType() {
  return ModuleTypeManager.getInstance().findByID(getModuleTypeIDForFlutter());
}
 
Example #4
Source File: ArmaModuleType.java    From arma-intellij-plugin with MIT License 4 votes vote down vote up
public static ArmaModuleType getInstance() {
	return (ArmaModuleType) ModuleTypeManager.getInstance().findByID(ID);
}
 
Example #5
Source File: BlazeCppModuleType.java    From intellij with Apache License 2.0 4 votes vote down vote up
public static ModuleType<?> getInstance() {
  return ModuleTypeManager.getInstance().findByID(BLAZE_CPP_MODULE);
}
 
Example #6
Source File: BlazeCppModuleType.java    From intellij with Apache License 2.0 4 votes vote down vote up
@Override
public ModuleType<?> getModuleType() {
  return ModuleTypeManager.getInstance().findByID(BLAZE_CPP_MODULE);
}
 
Example #7
Source File: ArmaModuleType.java    From arma-intellij-plugin with MIT License 4 votes vote down vote up
public static ArmaModuleType getInstance() {
	return (ArmaModuleType) ModuleTypeManager.getInstance().findByID(ID);
}
 
Example #8
Source File: DWModuleType.java    From intellij-demandware with MIT License 4 votes vote down vote up
public static DWModuleType getInstance() {
    return (DWModuleType) ModuleTypeManager.getInstance().findByID(ID);
}
 
Example #9
Source File: DemoModuleType.java    From intellij-sdk-docs with Apache License 2.0 4 votes vote down vote up
public static DemoModuleType getInstance() {
  return (DemoModuleType) ModuleTypeManager.getInstance().findByID(ID);
}
 
Example #10
Source File: GaugeModuleType.java    From Intellij-Plugin with Apache License 2.0 4 votes vote down vote up
public static GaugeModuleType getInstance() {
    return (GaugeModuleType) ModuleTypeManager.getInstance().findByID(MODULE_TYPE_ID);
}
 
Example #11
Source File: HaxeModuleType.java    From intellij-haxe with Apache License 2.0 4 votes vote down vote up
public static HaxeModuleType getInstance() {
  return (HaxeModuleType)ModuleTypeManager.getInstance().findByID(MODULE_TYPE_ID);
}
 
Example #12
Source File: ConfigurationModuleSelector.java    From intellij-xquery with Apache License 2.0 4 votes vote down vote up
public boolean isModuleAccepted(final Module module) {
    return ModuleTypeManager.getInstance().isClasspathProvider(ModuleType.get(module));
}
 
Example #13
Source File: DojoToolkitModuleType.java    From needsmoredojo with Apache License 2.0 4 votes vote down vote up
public static DojoToolkitModuleType getInstance() {
    return (DojoToolkitModuleType) ModuleTypeManager.getInstance().findByID(ID);
}
 
Example #14
Source File: CppModuleType.java    From CppTools with Apache License 2.0 4 votes vote down vote up
public void initComponent() {
  ModuleTypeManager.getInstance().registerModuleType(this);
}