Author: pwang
Date: 2010-11-22 11:37:43 -0800 (Mon, 22 Nov 2010)
New Revision: 22974
Modified:
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/ui/PluginManageDialog.java
Log:
Clean up
Modified:
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/ui/PluginManageDialog.java
===================================================================
---
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/ui/PluginManageDialog.java
2010-11-22 19:35:37 UTC (rev 22973)
+++
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/ui/PluginManageDialog.java
2010-11-22 19:37:43 UTC (rev 22974)
@@ -28,7 +28,6 @@
*/
package org.cytoscape.plugin.internal.ui;
-import org.cytoscape.plugin.CyPluginAdapter;
import org.cytoscape.plugin.internal.util.CytoscapeVersion;
import org.cytoscape.property.CyProperty;
import org.cytoscape.property.bookmark.Bookmarks;
@@ -56,8 +55,8 @@
//import cytoscape.util.OpenBrowser;
import org.cytoscape.work.Task;
import org.cytoscape.work.TaskIterator;
-import org.cytoscape.work.TaskManager;
-import org.cytoscape.work.TaskMonitor;
+//import org.cytoscape.work.TaskManager;
+//import org.cytoscape.work.TaskMonitor;
import org.cytoscape.work.swing.GUITaskManager;
import java.awt.Component;
@@ -109,7 +108,6 @@
//private final TaskManager taskManager;
private GUITaskManager guiTaskManagerServiceRef;
- private CyPluginAdapter adapter;
public enum PluginInstallStatus {
INSTALLED(CURRENTLY_INSTALLED),
AVAILABLE(AVAILABLE_FOR_INSTALL);
@@ -160,7 +158,7 @@
}
*/
public PluginManageDialog(JFrame owner, Bookmarks bookmarks,
BookmarksUtil bookmarksUtil,
- GUITaskManager guiTaskManagerServiceRef,
CyPluginAdapter adapter) {
+ GUITaskManager guiTaskManagerServiceRef) {
super(owner, "Manage Plugins");
this.desktop = owner;
@@ -168,7 +166,6 @@
this.theBookmarks = bookmarks;
this.bookmarksUtil = bookmarksUtil;
this.guiTaskManagerServiceRef = guiTaskManagerServiceRef;
- this.adapter = adapter;
setLocationRelativeTo(owner);
initComponents();
@@ -190,7 +187,7 @@
loadBookmarkCMBox(false);
//Select the Cytoscape download site by default
- this.lstDownloadSites.setSelectedIndex(0);
+ //this.lstDownloadSites.setSelectedIndex(0);
//this.lbSiteURL.setText(((DataSource)this.cmbDownloadSites.getSelectedItem()).getHref());
this.jTabbedPane1.setSelectedIndex(0);
@@ -1279,10 +1276,6 @@
PluginManager Mgr = PluginManager.getPluginManager();
- if (Mgr.getCyPluginAdapter() == null){
- Mgr.setCyPluginAdapter(adapter);
- }
-
Installable ins = infoObj.getInstallable();
try {
infoObj = Mgr.download(infoObj, taskMonitor);
--
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.