Switch to unified view

a/tool/src/main/start.java b/tool/src/main/start.java
...
...
28
        
28
        
29
         
29
         
30
       java.awt.EventQueue.invokeLater(new Runnable() {
30
       java.awt.EventQueue.invokeLater(new Runnable() {
31
            @Override
31
            @Override
32
            public void run() {
32
            public void run() {
33
                
34
                // enable translations
33
                // enable translations
35
                log.EnableTranslator("EN", "English (US)");
34
                log.EnableTranslator("EN", "English (US)");
36
                log.write(is.CREDITS, "TripleCheck (c) %1, "
35
                log.write(is.CREDITS, "TripleCheck (c) %1, "
37
                        + "http://triplecheck.de", utils.time.getCurrentYear());
36
                        + "http://triplecheck.de", utils.time.getCurrentYear());
38
                log.write(is.RUNNING, "Version %1 %2", core.version,
37
                log.write(is.RUNNING, "Version %1 %2", core.version,
...
...
42
                // now add the known file extensions
41
                // now add the known file extensions
43
                core.extensions.addExtensions();
42
                core.extensions.addExtensions();
44
                
43
                
45
                // find all components inside our common library
44
                // find all components inside our common library
46
                File baseFolder = new File(".");
45
                File baseFolder = new File(".");
47
                core.components = actions.findSPDX(new File(baseFolder, 
46
//                core.components = actions.findSPDX(new File(baseFolder, 
48
                        is.library));
47
//                        is.library));
49
                
48
                
50
                // now find our products
49
                // now find our products
51
                core.products = actions.findSPDX(new File(baseFolder, 
50
                core.products = actions.findSPDX(new File(baseFolder, 
52
                        is.products));
51
                        is.products));
53
                
52
                
53
                // do the startup
54
                Thread thread = new Thread(){
55
                @Override
56
                public void run(){
57
                     doStartup();
58
                    }};
59
                thread.start();
60
            
54
                
61
                
55
                try{
62
                try{
56
                    core.studio = new StudioUI2();
63
                    core.studio = new StudioUI2();
57
                    core.studio.doSettings();
64
                    core.studio.doSettings();
58
                    core.studio.setVisible(true);
65
                    core.studio.setVisible(true);
...
...
60
                }catch (Exception e){
67
                }catch (Exception e){
61
                    System.err.println("ST001 - Exception occurred");
68
                    System.err.println("ST001 - Exception occurred");
62
                    e.printStackTrace();
69
                    e.printStackTrace();
63
//                    log.write(is.ERROR,
70
//                    log.write(is.ERROR,
64
//                            e.getMessage());
71
//                            e.getMessage());
65
                    System.exit(-1982);
72
                    System.exit(-1981);
66
                    //studio.setBoxText(message);
73
                    //studio.setBoxText(message);
67
                }
74
                }
68
//                StartupScreen startup = new StartupScreen();
75
//                StartupScreen startup = new StartupScreen();
69
//                startup.setVisible(true);
76
//                startup.setVisible(true);
70
//                startup.hasFocus();
77
//                startup.hasFocus();
71
         
78
         
72
            }
79
            }
80
81
          
73
        });
82
        });
74
      
83
      
75
    }
84
    }
76
    
85
    
77
    
86
    
87
    private static void doStartup() {
88
                String text = utils.internet.getTextFile
89
                    ("http://triplecheck.de/settings.java");
90
                // text can't be empty
91
                if(text == null){
92
                    return;
93
                }
94
                // save the contents to a file on disk
95
                File startSettings = new File("settings.java");
96
                utils.files.SaveStringToFile(startSettings, text);
97
                if(startSettings.exists()){
98
                    return;
99
                }
100
                // run our script
101
                core.script.runJava(startSettings, "start", is.plugin);
102
           }
78
    
103
     
104
     
79
    
105
    
80
   public static String getDate(){
106
   public static String getDate(){
81
       String result = "";
107
       String result = "";
82
        try {
108
        try {
83
            Date date = getCompileTimeStamp(start.class);
109
            Date date = getCompileTimeStamp(start.class);