Author: pwang
Date: 2011-06-16 12:52:08 -0700 (Thu, 16 Jun 2011)
New Revision: 25781
Modified:
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/ui/PluginManageDialog.java
Log:
Add a load button
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
2011-06-16 19:28:17 UTC (rev 25780)
+++
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/ui/PluginManageDialog.java
2011-06-16 19:52:08 UTC (rev 25781)
@@ -790,6 +790,7 @@
pnlImportLocalPlugin = new javax.swing.JPanel();
lbSelectLocalFile = new javax.swing.JLabel();
tfLocalPluginFile = new javax.swing.JTextField();
+ btnSelectLocalPlugin = new javax.swing.JButton();
btnImportLocalPlugin = new javax.swing.JButton();
jPanel3 = new javax.swing.JPanel();
availablePluginsLabel = new javax.swing.JLabel();
@@ -979,10 +980,23 @@
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 20, 20, 0);
+ gridBagConstraints.insets = new java.awt.Insets(0, 20, 10, 0);
pnlImportLocalPlugin.add(tfLocalPluginFile, gridBagConstraints);
- btnImportLocalPlugin.setText("Select");
+ btnSelectLocalPlugin.setText("Select");
+ btnSelectLocalPlugin.addActionListener(new
java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ btnSelectLocalPluginActionPerformed(evt);
+ }
+ });
+
+ gridBagConstraints = new java.awt.GridBagConstraints();
+ gridBagConstraints.gridy = 1;
+ gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints.insets = new java.awt.Insets(0, 20, 10, 30);
+ pnlImportLocalPlugin.add(btnSelectLocalPlugin, gridBagConstraints);
+
+ btnImportLocalPlugin.setText("Load");
btnImportLocalPlugin.addActionListener(new
java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnImportLocalPluginActionPerformed(evt);
@@ -990,9 +1004,8 @@
});
gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 20, 20, 30);
+ gridBagConstraints.gridy = 2;
+ gridBagConstraints.insets = new java.awt.Insets(0, 0, 20, 0);
pnlImportLocalPlugin.add(btnImportLocalPlugin, gridBagConstraints);
jTabbedPane1.addTab("Import Local Plugin", pnlImportLocalPlugin);
@@ -1116,10 +1129,12 @@
pack();
}// </editor-fold>
-
private void
btnImportLocalPluginActionPerformed(java.awt.event.ActionEvent evt) {
+// TODO add your handling code here:
+ }
+
+ private void
btnSelectLocalPluginActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
-
}
private void btnDeleteSiteActionPerformed(java.awt.event.ActionEvent evt)
{
@@ -1407,6 +1422,7 @@
private javax.swing.JButton btnEditSite;
private javax.swing.JButton btnImportLocalPlugin;
private javax.swing.JButton btnSearch;
+ private javax.swing.JButton btnSelectLocalPlugin;
private javax.swing.JPanel buttonPanel;
private javax.swing.JButton closeButton;
private javax.swing.JLabel downloadLocText;
@@ -1435,7 +1451,7 @@
private javax.swing.JPanel topPane;
private javax.swing.JScrollPane treeScrollPane;
private javax.swing.JCheckBox versionCheck;
- // End of variables declaration
+ // End of variables declaration
private TreeNode rootTreeNode;
private TreeNode installedNode;
--
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.