Converting from EditorPart to ViewPart [message #224219] |
Thu, 12 October 2006 10:02 |
Eclipse User |
|
|
|
Originally posted by: dstamkokeng.gmail.com
Hi,
Is there a way to convert the gef editor into a viewpart? Or is there a
way to embed the editor into a viewpart? Is there a more appropriate forum
to post this question? Thanks
|
|
|
Re: Converting from EditorPart to ViewPart [message #224484 is a reply to message #224219] |
Mon, 16 October 2006 15:51 |
Eclipse User |
|
|
|
Originally posted by: ingo.koch[nospam].sap.com
"Meo Kok Eng" <dstamkokeng@gmail.com> wrote in message
news:714dd77d6ec4f87ec44adbffb76792cf$1@www.eclipse.org...
> Hi,
>
> Is there a way to convert the gef editor into a viewpart?
Yes I have tried this before:
you must create a copy of graphical editor (and its subclasses) which
extends
ViewPart instead of EditorPart...
.... and workaround everything which is underlined red in your coding /
implement missing methods :-)
alternatively you could use plain draw2d.
regards
Ingo
Or is there a
> way to embed the editor into a viewpart? Is there a more appropriate forum
> to post this question? Thanks
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02899 seconds