--- a/tool/src/main/core.java
+++ b/tool/src/main/core.java
@@ -24,6 +24,7 @@
import java.util.HashMap;
import script.License;
import script.RunningTask;
+import script.log;
import spdxlib.SPDXfile;
import utils.Settings;
@@ -46,6 +47,7 @@
public static HashMap
temp = new HashMap<String, Object>();
+ public static StudioUI2 studio2 = null;
public static StudioUI3 studio = null;
public static utils.KeyStroke key =
@@ -95,24 +97,35 @@
* @return
*/
public static File getPluginsFolder(){
- return new File(getWorkFolder(), "plugins");
+ return new File(getWorkFolder(), "plugins");
}
public static File getLibraryFolder(){
- return new File(getWorkFolder(), "library");
+ return new File(getWorkFolder(), "library");
}
public static File getProductsFolder(){
- return new File(getWorkFolder(), "products");
+ return new File(getWorkFolder(), "products");
}
public static File getExtensionsFolder(){
- return new File(getWorkFolder(), "extensions");
+ return new File(getWorkFolder(), "extensions");
}
public static File getExtensionsUnknown(){
- return new File(getExtensionsFolder(), "unknown");
+ return new File(getExtensionsFolder(), "unknown");
}
+ /**
+ * Send out a warning that our SPDX's have been modified somehow
+ */
+ public static void refreshSPDX(){
+ // find all SPDX files inside our archive
+ File baseFolder = new File(".");
+ core.products = actions.findSPDX(new File(baseFolder, is.products));
+ // send a message to the world, warning that things changed
+ log.write(is.INFO, Messages.RefreshSPDX);
+ }
+
}