• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ModuleServiceManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



ModuleServiceManager类属于com.intellij.openapi.module包,在下文中一共展示了ModuleServiceManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: getInstance

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


示例17: getInstance

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


示例18: getSettings

import com.intellij.openapi.module.ModuleServiceManager; //导入依赖的package包/类
private RoutesManager.State getSettings() {
    RoutesManager mgr = ModuleServiceManager.getService(myModule, RoutesManager.class);
    return mgr.getState();
}
 
开发者ID:basgren,项目名称:railways,代码行数:5,代码来源:RailwaysSettingsForm.java


示例19: getInstance

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


示例20: getInstance

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ITileInfo类代码示例发布时间:2022-05-22
下一篇:
Java StrSubstitutor类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap