Author: pwang
Date: 2011-11-18 16:16:11 -0800 (Fri, 18 Nov 2011)
New Revision: 27529
Modified:
core3/impl/trunk/plugin-impl/src/main/java/org/cytoscape/plugin/internal/InstallablePlugin.java
Log:
Comment out unused code
Modified:
core3/impl/trunk/plugin-impl/src/main/java/org/cytoscape/plugin/internal/InstallablePlugin.java
===================================================================
---
core3/impl/trunk/plugin-impl/src/main/java/org/cytoscape/plugin/internal/InstallablePlugin.java
2011-11-19 00:13:21 UTC (rev 27528)
+++
core3/impl/trunk/plugin-impl/src/main/java/org/cytoscape/plugin/internal/InstallablePlugin.java
2011-11-19 00:16:11 UTC (rev 27529)
@@ -68,7 +68,6 @@
public boolean installToDir(File dir, TaskMonitor taskMonitor)
throws
java.io.IOException,org.cytoscape.plugin.internal.ManagerException {
-
File PluginDir = dir;
if (PluginDir == null)
PluginDir = infoObj.getPluginDirectory();
@@ -84,27 +83,27 @@
taskMonitor.setStatusMessage(infoObj.toString() + "
loading...");
URLUtil.download(infoObj.getObjectUrl(), Download, taskMonitor);
- try {
- String ClassName =
JarUtil.getPluginClass(Download.getAbsolutePath(),
- infoObj.getFileType());
+// try {
+//
+// String ClassName =
JarUtil.getPluginClass(Download.getAbsolutePath(),
+// infoObj.getFileType());
+// if (ClassName != null) {
+// infoObj.setPluginClassName(ClassName);
+// } else { // no class name so delete the plugin
+// Download.delete();
+// Download.getParentFile().delete();
+// ManagerException E = new ManagerException(
+// infoObj.getName()
+// + " does not
define the attribute 'Cytoscape-Plugin' in the jar manifest file.\n"
+// + "This plugin
cannot be auto-installed. Please install manually or contact the plugin
author.");
+// throw E;
+// }
+// } catch (IOException ioe) {
+// Download.delete();
+// Download.getParentFile().delete();
+// throw ioe;
+// }
- if (ClassName != null) {
- infoObj.setPluginClassName(ClassName);
- } else { // no class name so delete the plugin
- Download.delete();
- Download.getParentFile().delete();
- ManagerException E = new ManagerException(
- infoObj.getName()
- + " does not
define the attribute 'Cytoscape-Plugin' in the jar manifest file.\n"
- + "This plugin
cannot be auto-installed. Please install manually or contact the plugin
author.");
- throw E;
- }
- } catch (IOException ioe) {
- Download.delete();
- Download.getParentFile().delete();
- throw ioe;
- }
-
switch (infoObj.getFileType()) {
case JAR: // do nothing, it's installed
break;
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.