Theme Editor: changed main class to com.formdev.flatlaf.themeeditor.FlatThemeEditor

This commit is contained in:
Karl Tauber
2021-08-28 17:38:51 +02:00
parent 77f33467d2
commit 97943fcd38
3 changed files with 32 additions and 3 deletions

View File

@@ -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" )

View File

@@ -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 );
}
}

View File

@@ -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;