Package com.intellij.openapi.module

Examples of com.intellij.openapi.module.ModuleType


    public Module getModule() {
        return module;
    }

    public Icon getIcon(int flags) {
        ModuleType moduleType = CompatibilityUtil.getModuleType(module);
        return module == null ? null : moduleType.getNodeIcon(false);
    }
View Full Code Here


public class GoModuleEditorsProvider implements ModuleConfigurationEditorProvider {

    public ModuleConfigurationEditor[] createEditors(ModuleConfigurationState state) {
        final Module module = state.getRootModel().getModule();

        final ModuleType moduleType = ModuleType.get(module);

        if (!(moduleType instanceof GoModuleType) &&
                !(moduleType instanceof GoAppEngineModuleType)) {
              return ModuleConfigurationEditor.EMPTY;
        }
View Full Code Here

    return ClojureFileType.CLOJURE_LANGUAGE.is(file.getLanguage());
  }

  public static boolean isSuitableModule(Module module) {
    if (module == null) return false;
    ModuleType type = ModuleType.get(module);
    return type instanceof JavaModuleType || "PLUGIN_MODULE".equals(type.getId());
  }
View Full Code Here

public class RustModuleEditorsProvider implements ModuleConfigurationEditorProvider {
    public ModuleConfigurationEditor[] createEditors(ModuleConfigurationState state) {
        final Module module = state.getRootModel().getModule();

        final ModuleType moduleType = ModuleType.get(module);

        if (!(moduleType instanceof RustModuleType)) {
              return ModuleConfigurationEditor.EMPTY;
        }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.module.ModuleType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.