Skip to content

Commit 34f1fb0

Browse files
committed
[structural view] show project name as default label for the application node
1 parent 945430c commit 34f1fb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/commands/ApplicationModulesLabelProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public ApplicationModulesLabelProvider(StereotypeCatalog catalog, IJavaProject p
3939

4040
@Override
4141
public String getApplicationLabel(ApplicationModules application) {
42-
return modules.getSystemName().orElse("Application");
42+
return modules.getSystemName().orElse(project.getElementName());
4343
}
4444

4545
@Override

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/commands/JMoleculesStructureView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Node createTree(IJavaProject project) {
4747
.withTypeLabel(it -> StructureViewUtil.abbreviate(mainApplicationPackage, it))
4848
.withMethodLabel((m, c) -> StructureViewUtil.getMethodLabel(project, springIndex, m, c))
4949
.withPackageLabel((p) -> StructureViewUtil.getPackageLabel(p))
50-
.withApplicationLabel((p) -> StructureViewUtil.getPackageLabel(p));
50+
.withApplicationLabel((p) -> project.getElementName());
5151

5252
var structureProvider = new ToolsStructureProvider(springIndex, project);
5353

0 commit comments

Comments
 (0)