How to create a MultipageEditor with a GEF page? [message #182814] |
Sat, 28 May 2005 21:43  |
Eclipse User |
|
|
|
I've been writing a MultiPageEditor for an XML configuration file. I'd like
to add a page to it with a graphical editor built with GEF.
The type hierarchy for GraphicalEditor doesn't make this a natural fit,
unless I'm missing something obvious.
Can anybody offer some pointers on how to do this?
Thanks,
Tim.
|
|
|
|
|
Re: How to create a MultipageEditor with a GEF page? [message #182860 is a reply to message #182836] |
Sun, 29 May 2005 19:21   |
Eclipse User |
|
|
|
Ed, Christian,
Thankyou both for replying.
I had overlooked the comments in the GraphicalEditor class, I will see if I
can simply make my own with a bit of copying and changing the hierarchy. I
do agree with Christian that GEF should provide this out of the box as it is
a common paradigm for Eclipse plugin authors.
I also found source code for an IBM redbook that implments a multipage GEF
editor, I am part way through hacking that around so I'll see where it takes
me first..
http://www.redbooks.ibm.com/abstracts/sg246302.html
Source code is downloadable from the URL, follow the link to 'Additional
Material'.
When I have made some progrss I'll drop back and post some findings.
Regards,
Tim.
"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:d7c3u7$let$1@news.eclipse.org...
> Hi,
>
> I have implemented my graphical editor inside a MultiPageEditorPart, and
> did not find any particular problems. However, my starting point was
> that I read the comments in GraphicalEditor (and subclasses) that said
>
> "This class should only be used as a reference for creating your own
> EditorPart implementation. This class will not suit everyone's needs,
> and may change in the future. Clients may copy the implementation"
>
> I decided to implement my own EditorPart and fold all the
> GraphicalEditor(WithFlyoutPalette) stuff in there - helped me with
> understanding, too.
>
> I am not sure that the above is even needed, though. What exact problems
> are you facing?
>
> christian
>
> Tim Williams wrote:
> > I've been writing a MultiPageEditor for an XML configuration file. I'd
like
> > to add a page to it with a graphical editor built with GEF.
> >
> > The type hierarchy for GraphicalEditor doesn't make this a natural fit,
> > unless I'm missing something obvious.
> >
> > Can anybody offer some pointers on how to do this?
> >
> > Thanks,
> >
> > Tim.
> >
> >
|
|
|
|
Re: How to create a MultipageEditor with a GEF page? [message #183009 is a reply to message #182814] |
Mon, 30 May 2005 22:49  |
Eclipse User |
|
|
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=46207
Adding a GEF editor to a MPEP, aside from some minor quirks (if any), is no
different than making any other editor MPEP. At least, ideally it shouldn't
be. To put in Ed's words, there should be no difference between AN editor
and THE editor. Platform is working on this problem. It's not GEF, but
platform that needs to support this out of the box.
"Tim Williams" <harlene_quinn@hotmail.com> wrote in message
news:d7b70c$vr$1@news.eclipse.org...
> I've been writing a MultiPageEditor for an XML configuration file. I'd
like
> to add a page to it with a graphical editor built with GEF.
>
> The type hierarchy for GraphicalEditor doesn't make this a natural fit,
> unless I'm missing something obvious.
>
> Can anybody offer some pointers on how to do this?
>
> Thanks,
>
> Tim.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07366 seconds