tool for working on ui updates (probably temporary)

This commit is contained in:
Ben Fry
2021-07-02 10:32:24 -04:00
parent ebe8985160
commit c79f8fa64c
4 changed files with 79 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<project name="Theme Engine" default="build">
<property name="jar.path" location="tool/ThemeEngine.jar" />
<property name="app.bin.path" location="../../../../app/bin" />
<property name="core.bin.path" location="../../../../core/bin" />
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="${jar.path}" />
</target>
<target name="compile" description="Compile sources">
<mkdir dir="bin" />
<javac target="11"
source="11"
srcdir="src"
destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
nowarn="true">
<classpath>
<pathelement location="${app.bin.path}" />
<pathelement location="${core.bin.path}" />
</classpath>
</javac>
</target>
<target name="build" depends="compile" description="Build Movie Maker Tool">
<mkdir dir="tool" />
<jar basedir="bin" destfile="${jar.path}" />
</target>
<target name="run" depends="build" description="Run standalone for development">
<java classname="processing.app.tools.ThemeEngine" fork="true">
<classpath>
<pathelement location="${jar.path}" />
<pathelement location="${app.bin.path}" />
<pathelement location="${core.bin.path}" />
</classpath>
</java>
</target>
</project>
@@ -0,0 +1,36 @@
package processing.app.tools;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.Arrays;
import java.util.prefs.Preferences;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.filechooser.FileSystemView;
import processing.app.Base;
import processing.app.Language;
import processing.app.Platform;
public class ThemeEngine implements Tool {
Base base;
public String getMenuTitle() {
//return Language.text("theme_engine");
return "Theme Engine";
}
public void init(Base base) {
this.base = base;
}
public void run() {
//setVisible(true);
}
}
Binary file not shown.