Display graph (net) in a window to visualize it with Eclipse

3 views
Skip to first unread message

Franktwis

unread,
Nov 15, 2009, 5:29:49 AM11/15/09
to cytoscape-discuss
Hi all,
I'm new of this forum and for Cytoscape programming.
I'm developing a plugin that create a net and visualize it using datas
taken from an excel file.
The code open excel files and use functions like:
Cytoscape.getCyNode("yellow", true); cyNetwork.addNode(node0); to
build the net.
Now, I followed instructions to add a Visual Style including in my
project the class MyPluginAction (I use Eclipse):

- I created a new class called MyPluginAction (is the class of the
example Tutorial14)
- I call in my .class:
MyPluginAction action = new MyPluginAction(this);
Cytoscape.getDesktop().getCyMenus().addCytoscapeAction
((CytoscapeAction) action);
is it correct?

This doesn't work on Eclipse. When compiled, the net is created but
nothing more happens. The question is: i'm wrong or Eclipse can't
display this graph because it can be done only by Cytoscape?
thanks for reading

Gang Su

unread,
Nov 15, 2009, 10:03:41 PM11/15/09
to cytoscap...@googlegroups.com
Hi Franktwis,

Eclipse is only an IDE for development. In order to visualize the
graph you need to run the plugin in Cytoscape.

Gang
> --
>
> You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
> To post to this group, send email to cytoscap...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cytoscape-discuss?hl=.
>
>
>

Franktwis

unread,
Nov 16, 2009, 4:14:58 AM11/16/09
to cytoscape-discuss
thanks Gang... I would know also if my coding is correct when I said:

>Now, I followed instructions to add a Visual Style including in my
> project the class MyPluginAction (I use Eclipse):
> - I created a new class called MyPluginAction (is the class of the
> example Tutorial14)
> - I call in my .class:
> MyPluginAction action = new MyPluginAction(this);
> Cytoscape.getDesktop().getCyMenus().addCytoscapeAction
> ((CytoscapeAction) action);
> is it correct?
The only thing I need is to write these two lines in the main of my
class? then it will work?
thanks for your answers
Franktwis
Reply all
Reply to author
Forward
0 new messages