Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » MultiPageEditorPart equivalence in GEF?
MultiPageEditorPart equivalence in GEF? [message #166117] Fri, 28 January 2005 19:22 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>> >
>> >
>>
>>
>
>
Previous Topic:Code generation with GEF
Next Topic:labelled connections
Goto Forum:
  


Current Time: Fri Apr 19 10:36:06 GMT 2024

Powered by FUDForum. Page generated in 0.01968 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top