problem in doSave() while using MultiPageEditor in LogicEditor [message #91760] |
Fri, 29 August 2003 09:23  |
Eclipse User |
|
|
|
Originally posted by: rajujacob_c.yahoo.com
Hi,
I am very new to GEF and I have few queries about usage of GEF ,
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
(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
regards
raju
|
|
|
Re: problem in doSave() while using MultiPageEditor in LogicEditor [message #91998 is a reply to message #91760] |
Mon, 01 September 2003 21:33  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"Raju Jacob" <rajujacob_c@yahoo.com> wrote in message
news:bink3n$mtk$1@eclipse.org...
> Hi,
>
> I am very new to GEF and I have few queries about usage of GEF ,
>
> 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.
Sounds like a problem with multipage editor or improper use of it. Try
asking eclipse.platform newsgroup.
>
> 2.) Is it possible to place SWT widgets on the GraphicalEditor
> and add drag-and-drop functionality, something like a SWT GUI builder
> (required only standard controls like Text, Label, Combo & Button) using
> GEF, any sample codes available that I can refer.
There are multiple SWT GUI builders built on top of GEF. I believe one is
called SWT designer. Some of them may provide source code. This topic has
also been discussed in previous threads. If your newsreader doesn't have
search function, see the GEF homepage.
> thanks in advance for any help
>
> regards
> raju
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03341 seconds