|
|
Re: How to create a MultipageEditor with a GEF page? [message #182836 is a reply to message #182814] |
Sun, 29 May 2005 09:57 |
Eclipse User |
|
|
|
Originally posted by: christian.sell.netcologne.de
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 #182860 is a reply to message #182836] |
Sun, 29 May 2005 23:21 |
Tim Williams Messages: 21 Registered: July 2009 |
Junior Member |
|
|
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.
> >
> >
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03598 seconds