MultiPageEditorPart equivalence in GEF? [message #166117] |
Fri, 28 January 2005 19:22 |
Eclipse User |
|
|
|
Originally posted by: kevinlouisnospam.hotmail.com
The GraphicEditor in GEF extends from the EditorPart. But I need a multiple
page editor. Should I use MultiPageEditorPart and call addPage to add each
GraphicEditor to it?
How is the EditDomain shared by these different page of editor? Should the
main page keep the editDomain and pass it to the new page when they are
created?
Thanks.
Kevin.
|
|
|
Re: MultiPageEditorPart equivalence in GEF? [message #166125 is a reply to message #166117] |
Fri, 28 January 2005 21:42 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
I think it depends on what your other pages are going to contain. If every
page is a GEF viewer, I wouldn't use multiple editors. Maybe someone else
has first-hand experience with MPE and GEF.
"Kevin" <kevinlouisnospam@hotmail.com> escreveu na mensagem
news:cte3d6$b0g$1@www.eclipse.org...
> The GraphicEditor in GEF extends from the EditorPart. But I need a
> multiple
> page editor. Should I use MultiPageEditorPart and call addPage to add
> each
> GraphicEditor to it?
>
> How is the EditDomain shared by these different page of editor? Should
> the
> main page keep the editDomain and pass it to the new page when they are
> created?
>
> Thanks.
>
> Kevin.
>
>
|
|
|
Re: MultiPageEditorPart equivalence in GEF? [message #166133 is a reply to message #166125] |
Fri, 28 January 2005 22:40 |
Eclipse User |
|
|
|
Originally posted by: kevinlouisnospam.hotmail.com
My different pages are showing different parts and/or different view of the
same resource file. That's why I want them to share the same command stack
and use the same EditDomain.
Take the Logic sample as an example. If I double click on a LED figure, it
will pop up another editor for the user to change the internal circuit of
that LED. Its change will be shown in the logic editor and will modify the
..logic file. Switch back to the logic editor and undo it will undo what has
been changed in the LED editor.
By switching from one editor to another, does the framework take care of the
current state? e.g. does the Palette tool will be updated? Could you tell
me where are the codes handling this state change? I remember I have seen
some activate and deactivate codes, but I am not sure it they take care of
the state.
Thanks,
Kevin.
"Randy Hudson" <none@us.ibm.com> wrote in message
news:ctebkf$714$1@www.eclipse.org...
> I think it depends on what your other pages are going to contain. If
every
> page is a GEF viewer, I wouldn't use multiple editors. Maybe someone else
> has first-hand experience with MPE and GEF.
>
> "Kevin" <kevinlouisnospam@hotmail.com> escreveu na mensagem
> news:cte3d6$b0g$1@www.eclipse.org...
> > The GraphicEditor in GEF extends from the EditorPart. But I need a
> > multiple
> > page editor. Should I use MultiPageEditorPart and call addPage to add
> > each
> > GraphicEditor to it?
> >
> > How is the EditDomain shared by these different page of editor? Should
> > the
> > main page keep the editDomain and pass it to the new page when they are
> > created?
> >
> > Thanks.
> >
> > Kevin.
> >
> >
>
>
|
|
|
Re: MultiPageEditorPart equivalence in GEF? [message #166241 is a reply to message #166133] |
Sun, 30 January 2005 01:16 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
There is no provided help for what you are trying to do. We focused on
making GEF about viewers so that you could use them however you want,
whether that's multi-paged, split, or something else.
"Kevin" <kevinlouisnospam@hotmail.com> escreveu na mensagem
news:ctef0u$r0v$1@www.eclipse.org...
> My different pages are showing different parts and/or different view of
> the
> same resource file. That's why I want them to share the same command
> stack
> and use the same EditDomain.
>
> Take the Logic sample as an example. If I double click on a LED figure,
> it
> will pop up another editor for the user to change the internal circuit of
> that LED. Its change will be shown in the logic editor and will modify
> the
> .logic file. Switch back to the logic editor and undo it will undo what
> has
> been changed in the LED editor.
>
> By switching from one editor to another, does the framework take care of
> the
> current state? e.g. does the Palette tool will be updated? Could you
> tell
> me where are the codes handling this state change? I remember I have seen
> some activate and deactivate codes, but I am not sure it they take care of
> the state.
>
> Thanks,
>
> Kevin.
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:ctebkf$714$1@www.eclipse.org...
>> I think it depends on what your other pages are going to contain. If
> every
>> page is a GEF viewer, I wouldn't use multiple editors. Maybe someone
>> else
>> has first-hand experience with MPE and GEF.
>>
>> "Kevin" <kevinlouisnospam@hotmail.com> escreveu na mensagem
>> news:cte3d6$b0g$1@www.eclipse.org...
>> > The GraphicEditor in GEF extends from the EditorPart. But I need a
>> > multiple
>> > page editor. Should I use MultiPageEditorPart and call addPage to add
>> > each
>> > GraphicEditor to it?
>> >
>> > How is the EditDomain shared by these different page of editor? Should
>> > the
>> > main page keep the editDomain and pass it to the new page when they are
>> > created?
>> >
>> > Thanks.
>> >
>> > Kevin.
>> >
>> >
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.01968 seconds