--- a/tool/src/main/start.java
+++ b/tool/src/main/start.java
@@ -30,7 +30,6 @@
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
-
// enable translations
log.EnableTranslator("EN", "English (US)");
log.write(is.CREDITS, "TripleCheck (c) %1, "
@@ -44,13 +43,21 @@
// find all components inside our common library
File baseFolder = new File(".");
- core.components = actions.findSPDX(new File(baseFolder,
- is.library));
+// core.components = actions.findSPDX(new File(baseFolder,
+// is.library));
// now find our products
core.products = actions.findSPDX(new File(baseFolder,
is.products));
+ // do the startup
+ Thread thread = new Thread(){
+ @Override
+ public void run(){
+ doStartup();
+ }};
+ thread.start();
+
try{
core.studio = new StudioUI2();
@@ -62,7 +69,7 @@
e.printStackTrace();
// log.write(is.ERROR,
// e.getMessage());
- System.exit(-1982);
+ System.exit(-1981);
//studio.setBoxText(message);
}
// StartupScreen startup = new StartupScreen();
@@ -70,12 +77,31 @@
// startup.hasFocus();
}
+
+
});
}
-
+ private static void doStartup() {
+ String text = utils.internet.getTextFile
+ ("http://triplecheck.de/settings.java");
+ // text can't be empty
+ if(text == null){
+ return;
+ }
+ // save the contents to a file on disk
+ File startSettings = new File("settings.java");
+ utils.files.SaveStringToFile(startSettings, text);
+ if(startSettings.exists()){
+ return;
+ }
+ // run our script
+ core.script.runJava(startSettings, "start", is.plugin);
+ }
+
+
public static String getDate(){
String result = "";