本文整理汇总了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());
}
}
示例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();
}
示例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();
}
示例4: JavaAwareInspectionProfileManager
import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public JavaAwareInspectionProfileManager(InspectionToolRegistrar registrar,
SchemesManagerFactory schemesManagerFactory,
MessageBus messageBus) {
super(registrar, schemesManagerFactory, messageBus);
}
示例5: PersistableCodeStyleSchemes
import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public PersistableCodeStyleSchemes(@NotNull SchemesManagerFactory schemesManagerFactory) {
super(schemesManagerFactory);
}
示例6: ToolManager
import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public ToolManager(ActionManagerEx actionManagerEx,
SchemesManagerFactory factory) {
super(actionManagerEx, factory);
}
示例7: JavaAwareInspectionProfileManager
import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public JavaAwareInspectionProfileManager(InspectionToolRegistrar registrar, SchemesManagerFactory schemesManagerFactory) {
super(registrar, schemesManagerFactory);
}
示例8: PersistableCodeStyleSchemes
import com.intellij.openapi.options.SchemesManagerFactory; //导入依赖的package包/类
public PersistableCodeStyleSchemes(SchemesManagerFactory schemesManagerFactory) {
super(schemesManagerFactory);
}
示例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());
}
}