Author: mes
Date: 2011-03-07 13:36:01 -0800 (Mon, 07 Mar 2011)
New Revision: 24320

Added:
   
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/StartupMostlyFinished.java
Modified:
   core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml
Log:
added a startup mostly finished trigger

Added: 
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/StartupMostlyFinished.java
===================================================================
--- 
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/StartupMostlyFinished.java
                              (rev 0)
+++ 
core3/plugin-impl/trunk/src/main/java/org/cytoscape/plugin/internal/StartupMostlyFinished.java
      2011-03-07 21:36:01 UTC (rev 24320)
@@ -0,0 +1,21 @@
+package org.cytoscape.plugin.internal;
+
+import org.cytoscape.application.swing.CySwingApplication; 
+
+/**
+ * A simple class whose instantiation indicates that startup is
+ * largely (but not necessarily 100 percent) complete for Cytoscape.
+ * This class should only exist once in the application and the reason it
+ * exists here is that the plugin-impl has dependencies on nearly every
+ * aspect of the system, so once those dependencies are fulfilled, we 
+ * we can assume that the application is ready for use, and thus the
+ * splash screen can be closed.
+ */
+class StartupMostlyFinished {
+       public StartupMostlyFinished(CySwingApplication app) {
+               // Make the main desktop visible, which
+               // will also close the splash screen.
+               app.getJFrame().setVisible(true);
+               app.getJFrame().toFront();
+       }
+}

Modified: 
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml
===================================================================
--- 
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml   
    2011-03-07 20:21:08 UTC (rev 24319)
+++ 
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml   
    2011-03-07 21:36:01 UTC (rev 24320)
@@ -67,5 +67,8 @@
                <constructor-arg ref="cyPropertyRef" />
                <constructor-arg ref="cyPluginAdapter" />
        </bean>
-       
+
+       <bean id="startupMostlyFinished" 
class="org.cytoscape.plugin.internal.StartupMostlyFinished">   
+               <constructor-arg ref="cySwingApplicationRef" />
+       </bean>
 </beans>

-- 
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.

Reply via email to