From 97943fcd38e25bd921675294858d15ba86c8a0b4 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 28 Aug 2021 17:38:51 +0200 Subject: [PATCH] Theme Editor: changed main class to `com.formdev.flatlaf.themeeditor.FlatThemeEditor` --- flatlaf-theme-editor/build.gradle.kts | 2 +- .../flatlaf/themeeditor/FlatThemeEditor.java | 29 +++++++++++++++++++ .../themeeditor/FlatThemeFileEditor.java | 4 +-- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditor.java diff --git a/flatlaf-theme-editor/build.gradle.kts b/flatlaf-theme-editor/build.gradle.kts index c035a919..1ceec77c 100644 --- a/flatlaf-theme-editor/build.gradle.kts +++ b/flatlaf-theme-editor/build.gradle.kts @@ -34,7 +34,7 @@ tasks { dependsOn( ":flatlaf-extras:jar" ) manifest { - attributes( "Main-Class" to "com.formdev.flatlaf.themeeditor.FlatThemeFileEditor" ) + attributes( "Main-Class" to "com.formdev.flatlaf.themeeditor.FlatThemeEditor" ) if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) attributes( "Multi-Release" to "true" ) diff --git a/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditor.java b/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditor.java new file mode 100644 index 00000000..5bd9efdb --- /dev/null +++ b/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditor.java @@ -0,0 +1,29 @@ +/* + * Copyright 2021 FormDev Software GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.formdev.flatlaf.themeeditor; + +/** + * FlatLaf Theme Editor + * + * @author Karl Tauber + */ +public class FlatThemeEditor +{ + public static void main( String[] args ) { + FlatThemeFileEditor.main( args ); + } +} diff --git a/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeFileEditor.java b/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeFileEditor.java index 712ff899..081c1e77 100644 --- a/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeFileEditor.java +++ b/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeFileEditor.java @@ -67,7 +67,7 @@ import com.formdev.flatlaf.util.UIScale; * * @author Karl Tauber */ -public class FlatThemeFileEditor +class FlatThemeFileEditor extends JFrame { static final String PREFS_ROOT_PATH = "/flatlaf-theme-editor"; @@ -87,7 +87,7 @@ public class FlatThemeFileEditor private final FlatThemePropertiesBaseManager propertiesBaseManager = new FlatThemePropertiesBaseManager(); - public static void main( String[] args ) { + static void main( String[] args ) { File dir = (args.length > 0) ? new File( args[0] ) : null;