当前位置: 首页>>代码示例>>Java>>正文


Java ModuleServiceManager.getService方法代码示例

本文整理汇总了Java中com.intellij.openapi.module.ModuleServiceManager.getService方法的典型用法代码示例。如果您正苦于以下问题:Java ModuleServiceManager.getService方法的具体用法?Java ModuleServiceManager.getService怎么用?Java ModuleServiceManager.getService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.openapi.module.ModuleServiceManager的用法示例。


在下文中一共展示了ModuleServiceManager.getService方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DWUpdateFileTask

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public DWUpdateFileTask(Project project,
                        Module module,
                        final String title,
                        final boolean canBeCancelled,
                        final PerformInBackgroundOption backgroundOption,
                        String sourceRootPath,
                        String localFilePath) {
    super(project, title, canBeCancelled, backgroundOption);
    DWServerConnection serverConnection = ModuleServiceManager.getService(module, DWServerConnection.class);
    this.project = project;
    this.localFilePath = localFilePath;
    this.httpClient = serverConnection.getClient();
    this.context = serverConnection.getContext();
    this.remoteDirPaths = serverConnection.getRemoteDirPaths(sourceRootPath, localFilePath);
    this.remoteFilePath = serverConnection.getRemoteFilePath(sourceRootPath, localFilePath);
}
 
开发者ID:nek4life,项目名称:intellij-demandware,代码行数:17,代码来源:DWUpdateFileTask.java

示例2: actionPerformed

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public void actionPerformed(AnActionEvent e) {
    Project project = e.getProject();

    if (project != null) {
        for (Module module : ModuleManager.getInstance(project).getModules()) {
            if (ModuleType.get(module) instanceof DWModuleType) {
                ModuleServiceManager.getService(module, DWServerConnection.class);
                ProgressManager.getInstance().run(
                        new DWCleanTask(project, module, "Cleaning cartridges...", true, PerformInBackgroundOption.ALWAYS_BACKGROUND)
                );

            }
        }
    }

}
 
开发者ID:nek4life,项目名称:intellij-demandware,代码行数:17,代码来源:DWCleanAction.java

示例3: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static StringDescriptorManager getInstance(Module module) {
  StringDescriptorManager service = ModuleServiceManager.getService(module, StringDescriptorManager.class);
  if (service != null) {
    service.myModule = module;
  }
  return service;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:StringDescriptorManager.java

示例4: addSupport

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
@Override
public void addSupport(@NotNull Module module, @NotNull ModifiableRootModel modifiableRootModel, @Nullable Library library) {
    final FacetManager facetManager = FacetManager.getInstance(module);
    ModifiableFacetModel facetModel = facetManager.createModifiableModel();
    DWSettingsProvider dwSettingsProvider = ModuleServiceManager.getService(module, DWSettingsProvider.class);
    dwSettingsProvider.setPasswordKey(UUID.randomUUID().toString());
    dwSettingsProvider.setHostname(dwFrameworkSupportConfigurablePanel.getHostname());
    dwSettingsProvider.setUsername(dwFrameworkSupportConfigurablePanel.getUsername());
    dwSettingsProvider.setPassword(dwFrameworkSupportConfigurablePanel.getPassword());
    dwSettingsProvider.setVersion(dwFrameworkSupportConfigurablePanel.getVersion());
    dwSettingsProvider.setAutoUploadEnabled(dwFrameworkSupportConfigurablePanel.getAutoUploadEnabled());
    Facet facet = FacetManager.getInstance(modifiableRootModel.getModule()).addFacet(DWFacetType.INSTANCE, "Demandware", null);
    facetModel.addFacet(facet);
    facetModel.commit();
}
 
开发者ID:nek4life,项目名称:intellij-demandware,代码行数:16,代码来源:DWFrameworkSupportConfigurable.java

示例5: RoutesViewPane

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
/**
 * Creates a separate panel for Rails module.
 *
 * @param railsApp Rails module that will be represented by this pane.
 * @param toolWindow Parent tool window
 */
public RoutesViewPane(RailsApp railsApp, ToolWindow toolWindow, Content content) {
    myModule = railsApp.getModule();
    myContent = content;

    myRoutesManager =  ModuleServiceManager.getService(myModule, RoutesManager.class);
    myRoutesManager.initRouteList();

    myRoutesChangeListener = new MyPsiTreeChangeListener(
            railsApp.getRoutesFile(), toolWindow);

    PsiManager.getInstance(myModule.getProject())
            .addPsiTreeChangeListener(myRoutesChangeListener);
}
 
开发者ID:basgren,项目名称:railways,代码行数:20,代码来源:RoutesViewPane.java

示例6: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static ModulePackageIndex getInstance(Module module) {
  return ModuleServiceManager.getService(module, ModulePackageIndex.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ModulePackageIndex.java

示例7: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static FacetModificationTrackingService getInstance(@NotNull Module module) {
  return ModuleServiceManager.getService(module, FacetModificationTrackingService.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FacetModificationTrackingService.java

示例8: getOptionManager

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
@NotNull
private DeprecatedModuleOptionManager getOptionManager() {
  //noinspection ConstantConditions
  return ModuleServiceManager.getService(this, DeprecatedModuleOptionManager.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ModuleImpl.java

示例9: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static TemplatesService getInstance(Module module) {
  return ModuleServiceManager.getService(module, TemplatesService.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:TemplatesService.java

示例10: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static PyDocumentationSettings getInstance(@NotNull Module module) {
  return ModuleServiceManager.getService(module, PyDocumentationSettings.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:PyDocumentationSettings.java

示例11: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static PythonPathCache getInstance(Module module) {
  return ModuleServiceManager.getService(module, PythonPathCache.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:PythonModulePathCache.java

示例12: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
@NotNull
public static PyPackageRequirementsSettings getInstance(@NotNull Module module) {
  return ModuleServiceManager.getService(module, PyPackageRequirementsSettings.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:PyPackageRequirementsSettings.java

示例13: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static TestRunnerService getInstance(@NotNull Module module) {
  return ModuleServiceManager.getService(module, TestRunnerService.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:TestRunnerService.java

示例14: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static ReSTService getInstance(@NotNull Module module) {
  return ModuleServiceManager.getService(module, ReSTService.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ReSTService.java

示例15: getInstance

import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static EclipseModuleManagerImpl getInstance(Module module) {
  return ModuleServiceManager.getService(module, EclipseModuleManagerImpl.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:EclipseModuleManagerImpl.java


注:本文中的com.intellij.openapi.module.ModuleServiceManager.getService方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。