Re: [Cytoscape-discuss] hook up into actions

22 views
Skip to first unread message

Jason Montojo

unread,
May 23, 2013, 11:26:02 AM5/23/13
to cytoscap...@googlegroups.com
Hi Ning,

We currently don't support this in our API.  It's something we could add in the future as a new feature, though.

Thanks,
Jason


On Fri, May 17, 2013 at 3:41 PM, Ning Jiang <nji...@systemsbiology.org> wrote:
Dear All,

I want to record some of the actions user performed in my plugin. For example, we want to record the "SelectFirstNeighbors" action. I'm wondering if there is a way I can hook into the actions from a plugin?

Thanks!

--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-disc...@googlegroups.com.
To post to this group, send email to cytoscap...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mike Smoot

unread,
May 23, 2013, 11:51:29 AM5/23/13
to cytoscap...@googlegroups.com
Actually, I think TunableRecorder could do this.  Even if your task doesn't have tunables, you could use a recorder to note that a particular task has executed.


Mike

Jason Montojo

unread,
May 23, 2013, 12:01:18 PM5/23/13
to cytoscap...@googlegroups.com
It's possible to use TunableRecorder but that won't be very robust.  That class gets notified of Tasks that get executed, but it's not always possible to trace that task to a particular action/Task Factory because a task can be used by multiple factories.  Since our Task implementations are hidden by OSGi, all you can do is use reflection to figure out what Task you're dealing with.
Reply all
Reply to author
Forward
0 new messages