Skip to content

Commit

Permalink
IDEA-229432 - now gradle.build and pom.xml are allways shown with par…
Browse files Browse the repository at this point in the history
…ent dir

GitOrigin-RevId: 0ab58f6e3591a6ec8728919660ad2dba8524fbc0
  • Loading branch information
zulkar authored and intellij-monorepo-bot committed Dec 20, 2019
1 parent 0403a61 commit 8dbb39d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package org.jetbrains.plugins.gradle.util

import com.intellij.openapi.externalSystem.ExternalSystemModulePropertyManager
import com.intellij.openapi.fileEditor.UniqueVFilePathBuilder
import com.intellij.openapi.fileEditor.impl.EditorTabTitleProvider
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ProjectFileIndex
Expand All @@ -32,8 +31,6 @@ class GradleEditorTabTitleProvider : EditorTabTitleProvider {

val fileParent = file.parent ?: return null

if (!UniqueVFilePathBuilder.getInstance().hasFilesWithSameName(project, file)) return null

val module = ProjectFileIndex.SERVICE.getInstance(project).getModuleForFile(file) ?: return null
val manager = ExternalSystemModulePropertyManager.getInstance(module)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package org.jetbrains.idea.maven.utils;

import com.intellij.openapi.fileEditor.UniqueVFilePathBuilder;
import com.intellij.openapi.fileEditor.impl.EditorTabTitleProvider;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
Expand All @@ -29,8 +28,6 @@ public String getEditorTabTitle(@NotNull Project project, @NotNull VirtualFile f
MavenProjectsManager projectsManager = MavenProjectsManager.getInstance(project);
if (!projectsManager.isMavenizedProject()) return null;

if (!UniqueVFilePathBuilder.getInstance().hasFilesWithSameName(project, file)) return null;

MavenProject mavenProject = projectsManager.findProject(file);
if (mavenProject != null) {
return file.getName() + " (" + mavenProject.getMavenId().getArtifactId() + ")";
Expand Down

0 comments on commit 8dbb39d

Please sign in to comment.