Skip to content
Browse files

The display name of the subprojects is the name of their containing d…

…irectory.
  • Loading branch information...
1 parent 02dd4b6 commit 073d82f499898ecfbecc1bfc816302b156536718 @kelemen committed Nov 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/org/netbeans/gradle/project/view/GradleDependenciesNode.java
View
5 src/org/netbeans/gradle/project/view/GradleDependenciesNode.java
@@ -215,6 +215,7 @@ private void addModuleDependency(
List<SingleNodeFactory> toPopulate) throws DataObjectNotFoundException {
FileObject moduleRoot = FileUtil.toFileObject(dependency.getModule().getModuleDir());
+ final String displayName = dependency.getModule().getModuleDir().getName();
if (moduleRoot != null) {
final DataObject fileObject = DataObject.find(moduleRoot);
@@ -234,7 +235,7 @@ public Image getOpenedIcon(int type) {
@Override
public String getDisplayName() {
- return dependency.getModule().getName();
+ return displayName;
}
};
}
@@ -257,7 +258,7 @@ public Image getOpenedIcon(int type) {
@Override
public String getDisplayName() {
- return dependency.getModule().getName();
+ return displayName;
}
};
}

0 comments on commit 073d82f

Please sign in to comment.
Something went wrong with that request. Please try again.