File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/rm/local Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public RMLocalProject(
47
47
super (workspace , sessionContext );
48
48
this .projectPath = projectPath ;
49
49
loadProperties ();
50
- this .rmProject = new RMProject (getName ());
50
+ this .rmProject = new RMProject (getRmProjectName ());
51
51
this .rmProject .setId (RMUtils .makeProjectIdFromPath (projectPath , type ));
52
52
this .rmProject .setDescription (getDescription ());
53
53
this .rmProject .setType (type );
@@ -65,6 +65,12 @@ public String getId() {
65
65
return rmProject .getId ();
66
66
}
67
67
68
+ @ NotNull
69
+ @ Override
70
+ public String getName () {
71
+ return rmProject .getDisplayName ();
72
+ }
73
+
68
74
@ NotNull
69
75
@ Override
70
76
public Path getAbsolutePath () {
@@ -139,4 +145,13 @@ public RMProject getRMProject() {
139
145
protected DBPDataSourceRegistry createDataSourceRegistry () {
140
146
return new DataSourceRegistry <>(this );
141
147
}
148
+
149
+ @ NotNull
150
+ private String getRmProjectName () {
151
+ Object projectName = this .getProjectProperty (PROP_PROJECT_NAME );
152
+ if (projectName != null ) {
153
+ return projectName .toString ();
154
+ }
155
+ return projectPath .getFileName ().toString ();
156
+ }
142
157
}
You can’t perform that action at this time.
0 commit comments