Author: rodche
Date: 2012-04-11 15:24:20 -0700 (Wed, 11 Apr 2012)
New Revision: 28799
Modified:
core3/support/trunk/archetypes/cyaction-app/src/main/resources/archetype-resources/src/main/java/internal/CyActivator.java
core3/support/trunk/archetypes/cyaction-app/src/main/resources/archetype-resources/src/main/java/internal/MenuAction.java
Log:
Updated and synched with the tutorial
Modified:
core3/support/trunk/archetypes/cyaction-app/src/main/resources/archetype-resources/src/main/java/internal/CyActivator.java
===================================================================
---
core3/support/trunk/archetypes/cyaction-app/src/main/resources/archetype-resources/src/main/java/internal/CyActivator.java
2012-04-11 22:05:19 UTC (rev 28798)
+++
core3/support/trunk/archetypes/cyaction-app/src/main/resources/archetype-resources/src/main/java/internal/CyActivator.java
2012-04-11 22:24:20 UTC (rev 28799)
@@ -2,6 +2,7 @@
import java.util.Properties;
+import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.service.util.AbstractCyActivator;
import org.osgi.framework.BundleContext;
@@ -9,9 +10,13 @@
@Override
public void start(BundleContext context) throws Exception {
- MenuAction action = new MenuAction("Hello World App");
+ CyApplicationManager cyApplicationManager =
getService(bc,CyApplicationManager.class);
+
+ MenuAction action = new MenuAction(cyApplicationManager, "Hello
World App");
+
Properties properties = new Properties();
+
registerAllServices(context, action, properties);
}
Modified:
core3/support/trunk/archetypes/cyaction-app/src/main/resources/archetype-resources/src/main/java/internal/MenuAction.java
===================================================================
---
core3/support/trunk/archetypes/cyaction-app/src/main/resources/archetype-resources/src/main/java/internal/MenuAction.java
2012-04-11 22:05:19 UTC (rev 28798)
+++
core3/support/trunk/archetypes/cyaction-app/src/main/resources/archetype-resources/src/main/java/internal/MenuAction.java
2012-04-11 22:24:20 UTC (rev 28799)
@@ -16,9 +16,11 @@
*/
public class MenuAction extends AbstractCyAction {
- public MenuAction(final String menuTitle) {
- super(menuTitle);
+ public MenuAction(CyApplicationManager cyApplicationManager, final
String menuTitle) {
+
+ super(menuTitle, cyApplicationManager, null, null);
setPreferredMenu("Apps");
+
}
public void actionPerformed(ActionEvent e) {
--
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.