本文整理汇总了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);
}
示例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)
);
}
}
}
}
示例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;
}
示例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();
}
示例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);
}
示例6: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static ModulePackageIndex getInstance(Module module) {
return ModuleServiceManager.getService(module, ModulePackageIndex.class);
}
示例7: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static FacetModificationTrackingService getInstance(@NotNull Module module) {
return ModuleServiceManager.getService(module, FacetModificationTrackingService.class);
}
示例8: getOptionManager
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
@NotNull
private DeprecatedModuleOptionManager getOptionManager() {
//noinspection ConstantConditions
return ModuleServiceManager.getService(this, DeprecatedModuleOptionManager.class);
}
示例9: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static TemplatesService getInstance(Module module) {
return ModuleServiceManager.getService(module, TemplatesService.class);
}
示例10: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static PyDocumentationSettings getInstance(@NotNull Module module) {
return ModuleServiceManager.getService(module, PyDocumentationSettings.class);
}
示例11: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static PythonPathCache getInstance(Module module) {
return ModuleServiceManager.getService(module, PythonPathCache.class);
}
示例12: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
@NotNull
public static PyPackageRequirementsSettings getInstance(@NotNull Module module) {
return ModuleServiceManager.getService(module, PyPackageRequirementsSettings.class);
}
示例13: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static TestRunnerService getInstance(@NotNull Module module) {
return ModuleServiceManager.getService(module, TestRunnerService.class);
}
示例14: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static ReSTService getInstance(@NotNull Module module) {
return ModuleServiceManager.getService(module, ReSTService.class);
}
示例15: getInstance
import com.intellij.openapi.module.ModuleServiceManager; //导入方法依赖的package包/类
public static EclipseModuleManagerImpl getInstance(Module module) {
return ModuleServiceManager.getService(module, EclipseModuleManagerImpl.class);
}