diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserFilePathNode.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserFilePathNode.java index 820fea120835..0e7c8c8f8a9f 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserFilePathNode.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserFilePathNode.java @@ -16,12 +16,15 @@ package com.intellij.openapi.vcs.changes.ui; +import com.intellij.openapi.module.Module; +import com.intellij.openapi.module.ModuleUtilCore; import com.intellij.openapi.util.SystemInfoRt; import com.intellij.openapi.util.io.FileUtil; import com.intellij.openapi.vcs.FilePath; import com.intellij.openapi.vcs.changes.Change; import com.intellij.openapi.vcs.changes.ChangesUtil; import com.intellij.ui.SimpleTextAttributes; +import com.intellij.vcsUtil.VcsUtil; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -87,6 +90,9 @@ public class ChangesBrowserFilePathNode extends ChangesBrowserNode { if (o instanceof Change) { return ChangesUtil.getAfterPath((Change)o); } + if (o instanceof Module) { + return VcsUtil.getFilePath(ModuleUtilCore.getModuleDirPath((Module)o)); + } return null; } diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserModuleNode.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserModuleNode.java index 11e534857da1..30afe5ec0567 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserModuleNode.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserModuleNode.java @@ -18,6 +18,7 @@ package com.intellij.openapi.vcs.changes.ui; import com.intellij.openapi.module.Module; import com.intellij.openapi.module.ModuleType; +import com.intellij.openapi.module.ModuleUtilCore; import com.intellij.ui.SimpleTextAttributes; /** @@ -34,6 +35,9 @@ public class ChangesBrowserModuleNode extends ChangesBrowserNode { renderer.append(module.isDisposed() ? "" : module.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES); appendCount(renderer); + + appendParentPath(renderer, ModuleUtilCore.getModuleDirPath(module)); + if (module.isDisposed()) { renderer.setIcon(ModuleType.EMPTY.getIcon()); } else {