Author: pwang
Date: 2010-11-17 17:45:20 -0800 (Wed, 17 Nov 2010)
New Revision: 22894
Modified:
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context-osgi.xml
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml
Log:
Add plugin manager
Modified:
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context-osgi.xml
===================================================================
---
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2010-11-18 01:09:03 UTC (rev 22893)
+++
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2010-11-18 01:45:20 UTC (rev 22894)
@@ -36,7 +36,7 @@
interface="org.cytoscape.view.model.CyNetworkViewManager">
</osgi:reference>
- <osgi:reference id="cyApplicationManagerRef"
+ <osgi:reference id="cyApplicationManagerRef"
interface="org.cytoscape.session.CyApplicationManager">
</osgi:reference>
@@ -68,10 +68,37 @@
<osgi:service id="pluginLoaderTaskFactoryService"
ref="pluginLoaderTaskFactory"
interface="org.cytoscape.work.TaskFactory">
<osgi:service-properties>
- <entry key="title" value="Load Plugin..." />
+ <entry key="title" value="Load Plugin...XXX" />
<entry key="preferredMenu" value="File.Import" />
</osgi:service-properties>
</osgi:service>
+
+
+ <!-- Plugin manager -->
+ <osgi:reference id="cytoscapeDesktopService"
+ interface="org.cytoscape.application.swing.CySwingApplication"
/>
+
+ <osgi:reference id="cytoscapeVersionService"
+ interface="org.cytoscape.application.swing.CytoscapeVersion" />
+
+ <osgi:service id="pluginManagerActionService" ref="pluginManagerAction"
+ interface="org.cytoscape.application.swing.CyAction" />
+
+<!-- Bookmark -->
+
+ <osgi:reference id="bookmarkServiceRef"
interface="org.cytoscape.property.CyProperty"
+ filter="(cyPropertyName=bookmarks)" />
+ <osgi:reference id="bookmarksUtilServiceRef"
+ interface="org.cytoscape.property.bookmark.BookmarksUtil" />
+
+
+ <osgi:reference id="guiTaskManagerServiceRef"
interface="org.cytoscape.work.swing.GUITaskManager">
+ </osgi:reference>
+
+ <osgi:reference id="cytoscapePropertiesServiceRef"
+ interface="org.cytoscape.property.CyProperty"
+ filter="(cyPropertyName=coreSettings)" />
+
</beans>
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
2010-11-18 01:09:03 UTC (rev 22893)
+++
core3/plugin-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml
2010-11-18 01:45:20 UTC (rev 22894)
@@ -17,6 +17,7 @@
<!-- constructor args are in alphabetical order! -->
+
<bean id="cyPluginAdapter"
class="org.cytoscape.plugin.internal.CyPluginAdapterImpl">
<constructor-arg ref="cyDataTableFactoryRef" />
<constructor-arg ref="cyEventHelperRef" />
@@ -38,4 +39,17 @@
<bean id="pluginLoaderTaskFactory"
class="org.cytoscape.plugin.internal.PluginLoaderTaskFactory">
<constructor-arg ref="cyPluginAdapter" />
</bean>
+
+
+ <bean id="pluginManagerAction"
class="org.cytoscape.plugin.internal.action.PluginManagerAction">
+ <constructor-arg ref="cytoscapeDesktopService" />
+ <constructor-arg ref="cyApplicationManagerRef" />
+ <constructor-arg ref="cytoscapeVersionService" />
+ <constructor-arg ref="bookmarkServiceRef" />
+ <constructor-arg ref="bookmarksUtilServiceRef" />
+
+ <constructor-arg ref="guiTaskManagerServiceRef" />
+ <constructor-arg ref="cytoscapePropertiesServiceRef" />
+ </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.