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


Java SchemesManagerFactory类代码示例

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


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

示例1: ShelveChangesManager

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public ShelveChangesManager(final Project project, final MessageBus bus) {
  super(project);
  myPathMacroSubstitutor = PathMacroManager.getInstance(myProject).createTrackingSubstitutor();
  myBus = bus;
  mySchemeManager =
    SchemesManagerFactory.getInstance(project).create(SHELVE_MANAGER_DIR_PATH, new SchemeProcessor<ShelvedChangeList>() {
      @Nullable
      @Override
      public ShelvedChangeList readScheme(@NotNull Element element) throws InvalidDataException {
        return readOneShelvedChangeList(element);
      }

      @Override
      public Parent writeScheme(@NotNull ShelvedChangeList scheme) throws WriteExternalException {
        Element child = new Element(ELEMENT_CHANGELIST);
        scheme.writeExternal(child);
        myPathMacroSubstitutor.collapsePaths(child);
        return child;
      }
    });
  File shelfDirectory = mySchemeManager.getRootDirectory();
  myFileProcessor = new CompoundShelfFileProcessor(shelfDirectory);
  // do not try to ignore when new project created,
  // because it may lead to predefined ignore creation conflict; see ConvertExcludedToIgnoredTest etc
  if (shelfDirectory.exists()) {
    ChangeListManager.getInstance(project).addDirectoryToIgnoreImplicitly(shelfDirectory.getAbsolutePath());
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:29,代码来源:ShelveChangesManager.java

示例2: BaseToolManager

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public BaseToolManager(@NotNull ActionManagerEx actionManagerEx, SchemesManagerFactory factory) {
  myActionManager = actionManagerEx;

  mySchemesManager = factory.create(getSchemesPath(), createProcessor());
  mySchemesManager.loadSchemes();
  registerActions();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:BaseToolManager.java

示例3: BaseToolManager

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public BaseToolManager(ActionManagerEx actionManagerEx, SchemesManagerFactory factory) {
  myActionManager = actionManagerEx;

  mySchemesManager = factory.createSchemesManager(
    getSchemesPath(), createProcessor(), RoamingType.PER_USER);

  mySchemesManager.loadSchemes();
  registerActions();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:10,代码来源:BaseToolManager.java

示例4: JavaAwareInspectionProfileManager

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public JavaAwareInspectionProfileManager(InspectionToolRegistrar registrar,
                                         SchemesManagerFactory schemesManagerFactory,
                                         MessageBus messageBus) {
  super(registrar, schemesManagerFactory, messageBus);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:JavaAwareInspectionProfileManager.java

示例5: PersistableCodeStyleSchemes

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public PersistableCodeStyleSchemes(@NotNull SchemesManagerFactory schemesManagerFactory) {
  super(schemesManagerFactory);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:PersistableCodeStyleSchemes.java

示例6: ToolManager

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public ToolManager(ActionManagerEx actionManagerEx,
                   SchemesManagerFactory factory) {
  super(actionManagerEx, factory);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ToolManager.java

示例7: JavaAwareInspectionProfileManager

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public JavaAwareInspectionProfileManager(InspectionToolRegistrar registrar, SchemesManagerFactory schemesManagerFactory) {
  super(registrar, schemesManagerFactory);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:JavaAwareInspectionProfileManager.java

示例8: PersistableCodeStyleSchemes

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public PersistableCodeStyleSchemes(SchemesManagerFactory schemesManagerFactory) {
  super(schemesManagerFactory);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:PersistableCodeStyleSchemes.java

示例9: ShelveChangesManager

import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public ShelveChangesManager(final Project project, final MessageBus bus) {
  super(project);
  myPathMacroSubstitutor = PathMacroManager.getInstance(myProject).createTrackingSubstitutor();
  myBus = bus;
  mySchemeManager = SchemesManagerFactory.getInstance().createSchemesManager(SHELVE_MANAGER_DIR_PATH, new BaseSchemeProcessor<ShelvedChangeList>() {
    @Nullable
    @Override
    public ShelvedChangeList readScheme(@Nonnull Element element, boolean duringLoad) throws InvalidDataException {
      return readOneShelvedChangeList(element);
    }

    @Nonnull
    @Override
    public Parent writeScheme(@Nonnull ShelvedChangeList scheme) throws WriteExternalException {
      Element child = new Element(ELEMENT_CHANGELIST);
      scheme.writeExternal(child);
      myPathMacroSubstitutor.collapsePaths(child);
      return child;
    }
  }, RoamingType.PER_USER);

  myCleaningFuture = JobScheduler.getScheduler().scheduleWithFixedDelay(new Runnable() {
    @Override
    public void run() {
      cleanSystemUnshelvedOlderOneWeek();
    }
  }, 1, 1, TimeUnit.DAYS);
  Disposer.register(project, new Disposable() {
    @Override
    public void dispose() {
      stopCleanScheduler();
    }
  });

  File shelfDirectory = mySchemeManager.getRootDirectory();
  myFileProcessor = new CompoundShelfFileProcessor(shelfDirectory);
  // do not try to ignore when new project created,
  // because it may lead to predefined ignore creation conflict; see ConvertExcludedToIgnoredTest etc
  if (shelfDirectory.exists()) {
    ChangeListManager.getInstance(project).addDirectoryToIgnoreImplicitly(shelfDirectory.getAbsolutePath());
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:43,代码来源:ShelveChangesManager.java


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