--- a/tool/run/plugins/spdx/show.java
+++ b/tool/run/plugins/spdx/show.java
@@ -22,8 +22,6 @@
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
-import java.util.logging.Level;
-import java.util.logging.Logger;
import main.core;
import main.param;
import script.Plugin;
@@ -433,7 +431,8 @@
html.br
+ html.link("Open folder in Windows explorer",
"?x=openFolder&"
- + param.file + "=" + file.getAbsolutePath())
+ + param.file + "=" + file.getAbsolutePath()
+ + param.spdx + "=" + spdxTarget)
+ html.br
;
// try {
@@ -505,20 +504,32 @@
* @param request
*/
public void openFolder(WebRequest request) {
- String param = request.getParameter("file");
- File file = new File(param);
+ String paramString = request.getParameter("file");
+ File file = new File(paramString);
try {
Desktop.getDesktop().open(file.getParentFile());
} catch (IOException ex) {
}
- String output = "A window showing the folder where the SPDX documents"
- + "are placed should now be visible. "
- + html.br
- + "Press the back button "
- + "to return on the previous page.";
-
- request.setAnswer(output);
+// String output = "A window showing the folder where the SPDX documents"
+// + "are placed should now be visible. "
+// + html.br
+// + "Press the back button "
+// + "to return on the previous page.";
+
+ request.setAnswer(utils.html.redirect("/spdx/show"
+ + "?x=summary&"
+ + param.spdx + "="
+ + request.getParameter(param.spdx)
+ , 0, ""));
+
+//
+// "?x=openFolder&"
+// + paramString.file + "=" + file.getAbsolutePath()
+// + paramString.spdx + "=" + spdxTarget)
+
+
+// request.setAnswer(output);
}
/**