From 28e912e40b79747cff7ac98daf2b027b4f0f1b25 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 30 Apr 2015 19:08:06 +0200 Subject: [PATCH] Cleanup (misc. deprecated API dropped from *-impl modules) --- .../impl/DefaultJavaProgramRunner.java | 10 +- .../highlighter/JavaHighlightingColors.java | 11 +- .../psi/impl/source/tree/SourceUtil.java | 43 ------- .../util/JDOMExternalizableAdapter.java | 59 ---------- .../diff/contents/DocumentContentWrapper.java | 84 ------------- .../EnvironmentVariablesComponent.java | 22 +--- .../AbstractConsoleRunnerWithHistory.java | 26 ++--- .../execution/runners/RunContentBuilder.java | 25 +--- .../com/intellij/ide/CopyPasteManagerEx.java | 8 +- .../src/com/intellij/idea/StartupUtil.java | 9 +- .../fileTypes/impl/FileTypeRenderer.java | 14 +-- .../src/com/intellij/ui/AppUIUtil.java | 11 +- .../VcsManagerPerModuleConfiguration.java | 110 ------------------ 13 files changed, 18 insertions(+), 414 deletions(-) delete mode 100644 java/java-psi-impl/src/com/intellij/psi/impl/source/tree/SourceUtil.java delete mode 100644 platform/core-impl/src/com/intellij/openapi/util/JDOMExternalizableAdapter.java delete mode 100644 platform/diff-impl/src/com/intellij/diff/contents/DocumentContentWrapper.java delete mode 100644 platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsManagerPerModuleConfiguration.java diff --git a/java/execution/impl/src/com/intellij/execution/impl/DefaultJavaProgramRunner.java b/java/execution/impl/src/com/intellij/execution/impl/DefaultJavaProgramRunner.java index 31d51f8388ea..fe5fe383dcc8 100644 --- a/java/execution/impl/src/com/intellij/execution/impl/DefaultJavaProgramRunner.java +++ b/java/execution/impl/src/com/intellij/execution/impl/DefaultJavaProgramRunner.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,14 +103,6 @@ public class DefaultJavaProgramRunner extends JavaPatchableProgramRunner { return contentBuilder.showRunContent(env.getContentToReuse()); } - @Deprecated - /** - * @deprecated to remove in IDEA 14 - */ - protected AnAction[] createActions(@SuppressWarnings("UnusedParameters") final ExecutionResult executionResult) { - return AnAction.EMPTY_ARRAY; - } - private static void addDefaultActions(@NotNull RunContentBuilder contentBuilder, @NotNull ExecutionResult executionResult) { final ExecutionConsole executionConsole = executionResult.getExecutionConsole(); final JComponent consoleComponent = executionConsole != null ? executionConsole.getComponent() : null; diff --git a/java/java-analysis-impl/src/com/intellij/ide/highlighter/JavaHighlightingColors.java b/java/java-analysis-impl/src/com/intellij/ide/highlighter/JavaHighlightingColors.java index 7ba9c4f876fc..cf309a2811db 100644 --- a/java/java-analysis-impl/src/com/intellij/ide/highlighter/JavaHighlightingColors.java +++ b/java/java-analysis-impl/src/com/intellij/ide/highlighter/JavaHighlightingColors.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import com.intellij.openapi.editor.colors.TextAttributesKey; /** * Highlighting text attributes for Java language. - * + * * @author Rustam Vishnyakov */ @SuppressWarnings("deprecation") @@ -42,12 +42,7 @@ public class JavaHighlightingColors { public static final TextAttributesKey DOC_COMMENT_TAG = SyntaxHighlighterColors.DOC_COMMENT_TAG; public static final TextAttributesKey DOC_COMMENT_MARKUP = SyntaxHighlighterColors.DOC_COMMENT_MARKUP; public static final TextAttributesKey DOC_COMMENT_TAG_VALUE = TextAttributesKey.createTextAttributesKey( - "DOC_COMMENT_TAG_VALUE", - DefaultLanguageHighlighterColors.DOC_COMMENT_TAG_VALUE); + "DOC_COMMENT_TAG_VALUE", DefaultLanguageHighlighterColors.DOC_COMMENT_TAG_VALUE); public static final TextAttributesKey VALID_STRING_ESCAPE = SyntaxHighlighterColors.VALID_STRING_ESCAPE; public static final TextAttributesKey INVALID_STRING_ESCAPE = SyntaxHighlighterColors.INVALID_STRING_ESCAPE; - - /** @deprecated use {@link #PARENTHESES} (to remove in IDEA 14) */ - @SuppressWarnings("SpellCheckingInspection") - public static final TextAttributesKey PARENTHS = PARENTHESES; } diff --git a/java/java-psi-impl/src/com/intellij/psi/impl/source/tree/SourceUtil.java b/java/java-psi-impl/src/com/intellij/psi/impl/source/tree/SourceUtil.java deleted file mode 100644 index 554580828c0b..000000000000 --- a/java/java-psi-impl/src/com/intellij/psi/impl/source/tree/SourceUtil.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.intellij.psi.impl.source.tree; - -import com.intellij.lang.LighterAST; -import com.intellij.lang.LighterASTNode; -import com.intellij.psi.PsiJavaCodeReferenceElement; -import com.intellij.psi.PsiManager; -import com.intellij.psi.tree.IElementType; -import org.jetbrains.annotations.NotNull; - -/** @deprecated use {@link JavaSourceUtil} (to be removed in IDEA 15) */ -@SuppressWarnings("UnusedDeclaration") -public class SourceUtil { - private SourceUtil() { } - - @NotNull - public static String getReferenceText(@NotNull PsiJavaCodeReferenceElement ref) { - return JavaSourceUtil.getReferenceText(ref); - } - - @NotNull - public static String getReferenceText(@NotNull LighterAST tree, @NotNull LighterASTNode node) { - return JavaSourceUtil.getReferenceText(tree, node); - } - - public static TreeElement addParenthToReplacedChild(@NotNull IElementType parenthType, @NotNull TreeElement newChild, @NotNull PsiManager manager) { - return JavaSourceUtil.addParenthToReplacedChild(parenthType, newChild, manager); - } -} diff --git a/platform/core-impl/src/com/intellij/openapi/util/JDOMExternalizableAdapter.java b/platform/core-impl/src/com/intellij/openapi/util/JDOMExternalizableAdapter.java deleted file mode 100644 index 8ba56e77f160..000000000000 --- a/platform/core-impl/src/com/intellij/openapi/util/JDOMExternalizableAdapter.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.intellij.openapi.util; - -import com.intellij.openapi.components.PersistentStateComponent; -import com.intellij.openapi.diagnostic.Logger; -import org.jdom.Element; - -@Deprecated -/** - * @author Dmitry Avdeev - * @deprecated to remove in IDEA 14 - */ -public class JDOMExternalizableAdapter implements PersistentStateComponent { - - private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.util.JDOMExternalizableAdapter"); - - private final JDOMExternalizable myExternalizable; - private final String myName; - - public JDOMExternalizableAdapter(JDOMExternalizable externalizable, String name) { - myExternalizable = externalizable; - myName = name; - } - - public Element getState() { - Element element = new Element(myName); - try { - myExternalizable.writeExternal(element); - } - catch (WriteExternalException e) { - LOG.info(e); - } - return element; - } - - public void loadState(Element state) { - try { - myExternalizable.readExternal(state); - } - catch (InvalidDataException e) { - LOG.info(e); - } - } -} diff --git a/platform/diff-impl/src/com/intellij/diff/contents/DocumentContentWrapper.java b/platform/diff-impl/src/com/intellij/diff/contents/DocumentContentWrapper.java deleted file mode 100644 index 892fb83a2184..000000000000 --- a/platform/diff-impl/src/com/intellij/diff/contents/DocumentContentWrapper.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2000-2015 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.intellij.diff.contents; - -import com.intellij.openapi.editor.Document; -import com.intellij.openapi.fileEditor.OpenFileDescriptor; -import com.intellij.openapi.fileTypes.FileType; -import com.intellij.openapi.vfs.VirtualFile; -import com.intellij.util.LineSeparator; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.nio.charset.Charset; - -@Deprecated -/** @deprecated (to be removed in IDEA 15) */ -public class DocumentContentWrapper implements DocumentContent { - @NotNull private final DocumentContent myBase; - @NotNull private final Document myDocument; - - public DocumentContentWrapper(@NotNull Document document, @NotNull DocumentContent base) { - myDocument = document; - myBase = base; - } - - @NotNull - @Override - public Document getDocument() { - return myDocument; - } - - @Nullable - @Override - public VirtualFile getHighlightFile() { - return myBase.getHighlightFile(); - } - - @Nullable - @Override - public OpenFileDescriptor getOpenFileDescriptor(int offset) { - return myBase.getOpenFileDescriptor(offset); - } - - @Nullable - @Override - public Charset getCharset() { - return null; - } - - @Nullable - @Override - public LineSeparator getLineSeparator() { - return null; - } - - @Nullable - @Override - public FileType getContentType() { - return myBase.getContentType(); - } - - @Nullable - @Override - public OpenFileDescriptor getOpenFileDescriptor() { - return getOpenFileDescriptor(0); - } - - @Override - public void onAssigned(boolean isAssigned) { - } -} diff --git a/platform/lang-impl/src/com/intellij/execution/configuration/EnvironmentVariablesComponent.java b/platform/lang-impl/src/com/intellij/execution/configuration/EnvironmentVariablesComponent.java index fa4630b6124a..098cd4b186ca 100644 --- a/platform/lang-impl/src/com/intellij/execution/configuration/EnvironmentVariablesComponent.java +++ b/platform/lang-impl/src/com/intellij/execution/configuration/EnvironmentVariablesComponent.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,14 +25,11 @@ import com.intellij.openapi.ui.LabeledComponent; import com.intellij.openapi.ui.TextFieldWithBrowseButton; import com.intellij.openapi.util.Comparing; import com.intellij.ui.UserActivityProviderComponent; -import com.intellij.util.ArrayUtil; -import com.intellij.util.EnvironmentUtil; import org.jdom.Element; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import javax.swing.event.ChangeListener; -import java.io.File; import java.util.Map; public class EnvironmentVariablesComponent extends LabeledComponent implements UserActivityProviderComponent { @@ -113,23 +110,6 @@ public class EnvironmentVariablesComponent extends LabeledComponent envs) { - EnvironmentUtil.inlineParentOccurrences(envs); - } - - /** - * To be removed in IDEA 15 - */ - @Deprecated - public static boolean containsEnvKeySubstitution(final String envKey, final String val) { - return ArrayUtil.find(val.split(File.pathSeparator), "$" + envKey + "$") != -1; - } - @Override public void addChangeListener(final ChangeListener changeListener) { myEnvVars.addChangeListener(changeListener); diff --git a/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java b/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java index e9009e3300fa..79cfa4aceaa0 100644 --- a/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java +++ b/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,6 +33,7 @@ import com.intellij.ide.CommonActionsManager; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Computable; +import com.intellij.ui.JBColor; import com.intellij.ui.SideBorder; import com.intellij.util.NotNullFunction; import com.intellij.util.containers.ContainerUtil; @@ -45,9 +46,10 @@ import java.awt.*; import java.util.List; /** + * This class provides basic functionality for running consoles. + * It launches external process and handles line input with history + * * @author oleg - * This class provides basic functionality for running consoles. - * It launches external process and handles line input with history */ public abstract class AbstractConsoleRunnerWithHistory { private final String myConsoleTitle; @@ -88,7 +90,7 @@ public abstract class AbstractConsoleRunnerWithHistory myRunnerActions = new SmartList(); private final ExecutionResult myExecutionResult; - /** - * @deprecated use {@link #RunContentBuilder(com.intellij.execution.ExecutionResult, ExecutionEnvironment)} - * to remove in IDEA 15 - */ - public RunContentBuilder(ProgramRunner runner, - ExecutionResult executionResult, - @NotNull ExecutionEnvironment environment) { - this(executionResult, fix(environment, runner)); - } - public RunContentBuilder(@NotNull ExecutionResult executionResult, @NotNull ExecutionEnvironment environment) { super(environment, getRunnerType(executionResult.getExecutionConsole())); @@ -76,16 +63,6 @@ public class RunContentBuilder extends RunTab { } } - @SuppressWarnings("UnusedDeclaration") - @Deprecated - @NotNull - /** - * @deprecated to remove in IDEA 15 - */ - public static GlobalSearchScope createSearchScope(Project project, RunProfile runProfile) { - return SearchScopeProvider.createSearchScope(project, runProfile); - } - public void addAction(@NotNull final AnAction action) { myRunnerActions.add(action); } diff --git a/platform/platform-impl/src/com/intellij/ide/CopyPasteManagerEx.java b/platform/platform-impl/src/com/intellij/ide/CopyPasteManagerEx.java index 102000eefb91..d850ca37ca97 100644 --- a/platform/platform-impl/src/com/intellij/ide/CopyPasteManagerEx.java +++ b/platform/platform-impl/src/com/intellij/ide/CopyPasteManagerEx.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -276,12 +276,6 @@ public class CopyPasteManagerEx extends CopyPasteManager implements ClipboardOwn } } - /** @deprecated use {@link #moveContentToStackTop(Transferable)} (to remove in IDEA 14) */ - @SuppressWarnings("UnusedDeclaration") - public void moveContentTopStackTop(Transferable t) { - moveContentToStackTop(t); - } - public void moveContentToStackTop(Transferable t) { moveContentToStackTop(t, true); } diff --git a/platform/platform-impl/src/com/intellij/idea/StartupUtil.java b/platform/platform-impl/src/com/intellij/idea/StartupUtil.java index 6e0348d8e0d3..2d40544e1d47 100644 --- a/platform/platform-impl/src/com/intellij/idea/StartupUtil.java +++ b/platform/platform-impl/src/com/intellij/idea/StartupUtil.java @@ -36,7 +36,6 @@ import com.intellij.util.EnvironmentUtil; import com.intellij.util.PlatformUtils; import com.intellij.util.lang.UrlClassLoader; import com.sun.jna.Native; -import org.jetbrains.annotations.NonNls; import javax.swing.*; import java.io.File; @@ -52,7 +51,7 @@ import java.util.Locale; * @author yole */ public class StartupUtil { - @NonNls public static final String NO_SPLASH = "nosplash"; + public static final String NO_SPLASH = "nosplash"; private static SocketLock ourLock; @@ -62,12 +61,6 @@ public class StartupUtil { return !Arrays.asList(args).contains(NO_SPLASH); } - /** @deprecated use {@link Main#isHeadless()} (to remove in IDEA 14) */ - @SuppressWarnings("unused") - public static boolean isHeadless() { - return Main.isHeadless(); - } - public synchronized static void addExternalInstanceListener(Consumer> consumer) { ourLock.setActivateListener(consumer); } diff --git a/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeRenderer.java b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeRenderer.java index 56500a7d24d8..22274cc1605d 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeRenderer.java +++ b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeRenderer.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,18 +45,6 @@ public class FileTypeRenderer extends ListCellRendererWrapper { myFileTypeListProvider = fileTypeListProvider; } - /** @deprecated use {@link #FileTypeRenderer()} (to remove in IDEA 14) */ - @SuppressWarnings("UnusedDeclaration") - public FileTypeRenderer(final ListCellRenderer renderer) { - this(); - } - - /** @deprecated use {@link #FileTypeRenderer(FileTypeListProvider)} (to remove in IDEA 14) */ - @SuppressWarnings("UnusedDeclaration") - public FileTypeRenderer(final ListCellRenderer renderer, final FileTypeListProvider fileTypeListProvider) { - this(fileTypeListProvider); - } - @Override public void customize(JList list, FileType type, int index, boolean selected, boolean hasFocus) { LayeredIcon layeredIcon = new LayeredIcon(2); diff --git a/platform/platform-impl/src/com/intellij/ui/AppUIUtil.java b/platform/platform-impl/src/com/intellij/ui/AppUIUtil.java index f4bf768e92a6..66d8189afbef 100644 --- a/platform/platform-impl/src/com/intellij/ui/AppUIUtil.java +++ b/platform/platform-impl/src/com/intellij/ui/AppUIUtil.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -168,15 +168,6 @@ public class AppUIUtil { }); } - @SuppressWarnings("UnusedDeclaration") - @Deprecated - /** - * to remove in IDEA 14 - */ - public static JTextField createUndoableTextField() { - return GuiUtils.createUndoableTextField(); - } - private static final int MIN_ICON_SIZE = 32; @Nullable diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsManagerPerModuleConfiguration.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsManagerPerModuleConfiguration.java deleted file mode 100644 index d7597921a2f6..000000000000 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsManagerPerModuleConfiguration.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2000-2009 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.intellij.openapi.vcs.impl; - -import com.intellij.openapi.components.PersistentStateComponent; -import com.intellij.openapi.components.State; -import com.intellij.openapi.components.Storage; -import com.intellij.openapi.components.StoragePathMacros; -import com.intellij.openapi.module.Module; -import com.intellij.openapi.module.ModuleComponent; -import com.intellij.openapi.roots.ModuleRootManager; -import com.intellij.openapi.startup.StartupManager; -import com.intellij.openapi.util.DefaultJDOMExternalizer; -import com.intellij.openapi.util.InvalidDataException; -import com.intellij.openapi.vcs.ex.ProjectLevelVcsManagerEx; -import com.intellij.openapi.vfs.VirtualFile; -import org.jdom.Element; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * @deprecated to remove in IDEA 15 - */ -@Deprecated -@SuppressWarnings("UnusedDeclaration") -@State( - name = "VcsManagerConfiguration", - storages = @Storage(file = StoragePathMacros.MODULE_FILE) -) -public class VcsManagerPerModuleConfiguration implements ModuleComponent, PersistentStateComponent { - private final Module myModule; - public String ACTIVE_VCS_NAME = ""; - public boolean USE_PROJECT_VCS = true; - - public static VcsManagerPerModuleConfiguration getInstance(Module module) { - return module.getComponent(VcsManagerPerModuleConfiguration.class); - } - - public VcsManagerPerModuleConfiguration(final Module module) { - myModule = module; - } - - @Override - public void moduleAdded() { - } - - @Override - public void projectClosed() { - } - - @Override - public void projectOpened() { - } - - @Override - public void disposeComponent() { - } - - @Override - public void initComponent() { } - - @Override - @NotNull - public String getComponentName() { - return "VcsManagerConfiguration"; - } - - @Nullable - @Override - public Element getState() { - return null; - } - - @Override - public void loadState(Element state) { - try { - //noinspection deprecation - DefaultJDOMExternalizer.readExternal(this, state); - } - catch (InvalidDataException ignored) { - } - - if (!USE_PROJECT_VCS) { - StartupManager.getInstance(myModule.getProject()).runWhenProjectIsInitialized(new Runnable() { - @Override - public void run() { - ProjectLevelVcsManagerImpl vcsManager = (ProjectLevelVcsManagerImpl)ProjectLevelVcsManagerEx.getInstanceEx(myModule.getProject()); - for(VirtualFile file: ModuleRootManager.getInstance(myModule).getContentRoots()) { - vcsManager.setDirectoryMapping(file.getPath(), ACTIVE_VCS_NAME); - } - vcsManager.cleanupMappings(); - } - }); - } - } -}