Author: pwang
Date: 2013-02-22 11:52:30 -0800 (Fri, 22 Feb 2013)
New Revision: 31135
Modified:
csplugins/trunk/ucsd/kono/bingo-impl/src/main/java/bingo/internal/BiNGOplugin.java
Log:
This is for Simple App
Modified:
csplugins/trunk/ucsd/kono/bingo-impl/src/main/java/bingo/internal/BiNGOplugin.java
===================================================================
---
csplugins/trunk/ucsd/kono/bingo-impl/src/main/java/bingo/internal/BiNGOplugin.java
2013-02-22 19:45:09 UTC (rev 31134)
+++
csplugins/trunk/ucsd/kono/bingo-impl/src/main/java/bingo/internal/BiNGOplugin.java
2013-02-22 19:52:30 UTC (rev 31135)
@@ -56,6 +56,8 @@
*
* Updated by Keiichiro Ono for Cytoscape 3
*
+ * Note: this class is NOT used, it was used as simple App only.
+ *
* ******************************************************************
*/
@@ -73,39 +75,8 @@
public BiNGOplugin(final CySwingAppAdapter adapter) {
super(adapter);
- adapter.getCySwingApplication().addAction(new
bingopluginAction(adapter));
+ adapter.getCySwingApplication().addAction(new
BingoPluginAction(adapter));
String cwd = System.getProperty(CURRENT_WORKING_DIRECTORY);
- bingoDir = new File(cwd, "plugins").toString();
+ bingoDir = new File(cwd, "plugins").toString();
}
-
- private final class bingopluginAction extends AbstractCyAction {
-
- private static final long serialVersionUID =
4190390703299860130L;
-
- // The constructor sets the text that should appear on the menu
item.
- public bingopluginAction(final CySwingAppAdapter adapter) {
- super(MENU_NAME);//, adapter.getCyApplicationManager());
- setPreferredMenu(MENU_CATEGORY);
- }
-
- /**
- * This method opens the bingo settingspanel upon selection of
the menu
- * item and opens the settingspanel for bingo.
- *
- * @param event
- * event triggered when bingo menu item clicked.
- */
- public void actionPerformed(ActionEvent event) {
- final JFrame window = new JFrame(WINDOW_TITLE);
- final SettingsPanel settingsPanel = new
SettingsPanel(bingoDir, (CySwingAppAdapter)adapter);
- window.getContentPane().add(settingsPanel);
-
window.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
- window.pack();
-
- // Cytoscape Main Window
- final JFrame desktop =
((CySwingAppAdapter)adapter).getCySwingApplication().getJFrame();
- window.setLocationRelativeTo(desktop);
- window.setVisible(true);
- }
- }
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cytoscape-cvs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.