| Add a GEF figures to the Multi page editor [message #243285] |
Fri, 30 May 2008 13:12  |
|
Originally posted by: npchala.yahoo.com
Hi,
I am new to GEF and i'm using GEF 3.3 and Eclipse 3.3.
According to a model i managed to draw a set of figures. Now i need to
show that figures on the first page of a multi page Editor. The GEF model
seperately work fine and it initialy calls the,
public class Digraph1GraphicalEditor extends GraphicalEditor {
....................
}
class,
For the multi page editor i used 'plugin with a multi-page editor' example
available under eclipse. This initialy calls the,
public class MultiPageEditor extends MultiPageEditorPart implements
IResourceChangeListener{
........................
}
class.
I need to show the figures that i drew by using the GEF in the first page
of the multi page editor. But i found that simply creating an object of
the Digraph1GraphicalEditor and calls the configureGraphicalViewer()
method of that class wont work fine.
So if anybody could please let me know how to proceed with this?
The first page in the multi-page example is a normal text editor, and the
page was simply added by using,
int index = addPage(editor, getEditorInput());
So how to add the above GEF figures to the Editor is my second question?
Thanks in Advance,
Chalani
|
|
|