where are the figures? [message #61690] |
Mon, 03 February 2003 17:49 |
Eclipse User |
|
|
|
Hello World,
i only want make grpahs of my values, but it looks like i need more time to
implement this as i need time for the rest of my plugin. ;-(... Anyways i'm
frustrated but keep on fighting..
Since it looks like implement usage of draw2d and property sheet need much
work that is already done in gef, i want to use gef, but i'm afraid that is
much overscaled for such a simple graph view.
So as a gef newbie i start with the shape sample and try to use that in a
view.
So i add in the method "createPartControl(Composite parent)" of my view -
some code of the HelloGef editor.
GraphicalViewer viewer = new GraphicalViewerImpl();
viewer.setRootEditPart(new FreeformGraphicalRootEditPart());
viewer.setEditPartFactory(new GraphicalPartFactory());
HelloModel model = new HelloModel();
viewer.setContents(model);
No error so far, but i cant see something in my view.
I had read the gef documentation, but i dont need all the policy and command
stuff, since i only wan to show some simple lines.
Can someone give me a hint, a code snippet and link to something to read...
Thanks!!!!!!!!!
Stefan
|
|
|
Powered by
FUDForum. Page generated in 0.02392 seconds