Revision: 14672
          http://gate.svn.sourceforge.net/gate/?rev=14672&view=rev
Author:   markagreenwood
Date:     2011-12-05 11:43:27 +0000 (Mon, 05 Dec 2011)
Log Message:
-----------
the new creole manager is now the default, although I haven't yet removed the 
old class

Modified Paths:
--------------
    gate/trunk/src/gate/gui/MainFrame.java

Modified: gate/trunk/src/gate/gui/MainFrame.java
===================================================================
--- gate/trunk/src/gate/gui/MainFrame.java      2011-12-05 11:29:40 UTC (rev 
14671)
+++ gate/trunk/src/gate/gui/MainFrame.java      2011-12-05 11:43:27 UTC (rev 
14672)
@@ -52,7 +52,9 @@
 import gate.creole.gazetteer.Gazetteer;
 import gate.creole.annic.Constants;
 import gate.event.*;
+import gate.gui.creole.manager.PluginUpdateManager;
 import gate.persist.PersistenceException;
+import gate.resources.img.svg.AvailableIcon;
 import gate.security.*;
 import gate.swing.*;
 import gate.util.*;
@@ -126,7 +128,8 @@
 
   protected Splash splash;
 
-  protected PluginManagerUI pluginManager;
+  //protected PluginManagerUI pluginManager;
+  protected PluginUpdateManager pluginManager;
 
   protected LogArea logArea;
 
@@ -2745,19 +2748,19 @@
       super("Manage CREOLE Plugins");
       putValue(SHORT_DESCRIPTION,
         "Load, unload, add and remove CREOLE plugins");
-      putValue(SMALL_ICON, getIcon("creole-plugins"));
+      putValue(SMALL_ICON, new AvailableIcon(24,24));
     }
 
+    @Override
     public void actionPerformed(ActionEvent e) {
       if(pluginManager == null) {
-        pluginManager = new PluginManagerUI(MainFrame.this);
+        /*pluginManager = new PluginManagerUI(MainFrame.this);
         // pluginManager.setLocationRelativeTo(MainFrame.this);
         pluginManager.setModal(true);
         getGuiRoots().add(pluginManager);
         pluginManager.pack();
         // size the window so that it doesn't go off-screen
-        Dimension screenSize = /* Toolkit.getDefaultToolkit().getScreenSize(); 
*/
-        getGraphicsConfiguration().getBounds().getSize();
+        Dimension screenSize = 
getGraphicsConfiguration().getBounds().getSize();
         Dimension dialogSize = pluginManager.getPreferredSize();
         int width =
           dialogSize.width > screenSize.width
@@ -2772,12 +2775,14 @@
         // center the window on screen
         int x = (screenSize.width - width) / 2;
         int y = (screenSize.height - height) / 2;
-        pluginManager.setLocation(x, y);
+        pluginManager.setLocation(x, y);*/
+        pluginManager = new PluginUpdateManager(MainFrame.this);
       }
-      fileChooser.setResource(PluginManagerUI.class.getName());
+      /*fileChooser.setResource(PluginManagerUI.class.getName());
       pluginManager.setVisible(true);
       // free resources after the dialog is hidden
-      pluginManager.dispose();
+      pluginManager.dispose();*/
+      pluginManager.setVisible(true);
     }
   }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to