This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/master by this push:
new 84f9b2a19 Modeler cleanup - "name" property is no longer in use
84f9b2a19 is described below
commit 84f9b2a19e19c97b3934c46a2eb511b25347e933
Author: Andrus Adamchik <[email protected]>
AuthorDate: Sun May 17 12:43:35 2026 -0400
Modeler cleanup - "name" property is no longer in use
---
.../java/org/apache/cayenne/modeler/Application.java | 18 +-----------------
1 file changed, 1 insertion(+), 17 deletions(-)
diff --git
a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/Application.java
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/Application.java
index 9cccf99db..30fa5faba 100644
---
a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/Application.java
+++
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/Application.java
@@ -52,20 +52,11 @@ import java.util.List;
import java.util.stream.Collectors;
/**
- * A main modeler application class that provides a number of services to the
Modeler
- * components. Configuration properties:
- * <ul>
- * <li>cayenne.modeler.application.name - name of the application,
'CayenneModeler' is
- * default. Used to locate preferences domain among other things.</li>
- * </ul>
+ * A main modeler application class that manages the main app frame and
everything below it.
*/
public class Application {
- private static final String APPLICATION_NAME_PROPERTY =
"cayenne.modeler.application.name";
- private static final String DEFAULT_APPLICATION_NAME = "CayenneModeler";
-
private final Injector injector;
- private final String name;
private final ModelerClassLoader classLoader;
private final PreferencesRepository preferencesRepository;
private final GlobalActions actionManager;
@@ -78,9 +69,6 @@ public class Application {
public Application(Injector injector) {
this.injector = injector;
- String configuredName = System.getProperty(APPLICATION_NAME_PROPERTY);
- this.name = (configuredName != null) ? configuredName :
DEFAULT_APPLICATION_NAME;
-
this.classLoader = new ModelerClassLoader();
this.preferencesRepository = new
PreferencesRepository(injector.getInstance(ConfigurationNameMapper.class));
this.actionManager = new GlobalActions(
@@ -90,10 +78,6 @@ public class Application {
this.projectValidator = new ConfigurableProjectValidator(this);
}
- public String getName() {
- return name;
- }
-
public ModelerClassLoader getClassLoader() {
return classLoader;
}