need help [message #91918] |
Sun, 31 August 2003 21:33 |
Eclipse User |
|
|
|
Originally posted by: rajujacob_c.yahoo.com
Hi,
I am very new to GEF and I got few problems, hope somebody can help
me to solve this,
1.) I am trying to modify the Logic example by adding two tabs in the
design area (View).
basically what I did was modify LogicEditor to extends from
MultiPageEditor and add two pages on it, both pages(DesignPage,
PreviewPage) extends from GraphicalEditorWithPalette and it working fine.
now the problem comes while saving the design diagram,
I put following debug statements in the LogicEditor.doSave()
seems it can get the active editor "getActiveEditor() = DesignPage".
but when I tried to access the "getActiveEditor().getEditorInput()" which
returns null for me.
but it can work with TextEditor, meaning if I use a
TextEditor as a page in the LogicEditor I can get the EditorInput using
"getActiveEditor().getEditorInput()".
any idea about this problem, anything wrong in my implementation.
2.) Is it possible to place SWT widgets on the GraphicalEditor
and add drag-and-drop functionality, something like a SWT GUI builder
(I required only standard controls like Text, Label, Combo & Button) using
GEF, any sample codes available that I can refer.
thanks in advance for any help
thanks
Raju Jacob
|
|
|
Powered by
FUDForum. Page generated in 0.02677 seconds