Editor like a view [message #238856] |
Thu, 04 October 2007 08:48 |
Eclipse User |
|
|
|
Originally posted by: Sferzah.yandex.ru
Hello.
As i know, editors open in editor area only, but i want to open my
"diagram" like a view. Can i do that?
I need one editor for 2 purposes :
1)only showing the diagram, not edit
2)some edit, without a save..
Help me pls to find a way to realize that.
|
|
|
Re: Editor like a view [message #238988 is a reply to message #238856] |
Tue, 09 October 2007 15:45 |
Eclipse User |
|
|
|
Originally posted by: luis_dediego.yahoo.com
Hi Alexey,
I am not sure if this is a solution. Views are like editors. They have
the "createPartControl" where you can create a GraphicalViewer attached
to a canvas. The you can read your model and connect it to the Viewer
and it will create all the parts and figures as if read from an editor.
I have not checked this for myself but if a previous version of my code
I did it under a standalone application and the viewer was able to
display figures.
I may send you code to show how I create the viewer inside the editor
page that should also work for the View contents.
Best regards
Alexey wrote:
> Hello.
> As i know, editors open in editor area only, but i want to open my
> "diagram" like a view. Can i do that?
>
> I need one editor for 2 purposes :
> 1)only showing the diagram, not edit
> 2)some edit, without a save..
> Help me pls to find a way to realize that.
>
>
|
|
|
|
Re: Editor like a view [message #239014 is a reply to message #239001] |
Wed, 10 October 2007 10:42 |
Eclipse User |
|
|
|
Originally posted by: alexey.asonov.oxs.ru
Hello Cam,
Thanks for advise, but i think the OutlineView - is a view, not editor.
I tried to create ViewPart implements IEditorPart, try to create
EditorPart implements IViewPart - have no results (somewhere deep Eclipse
choose - what kind of part i use : IEditorPart or IViewPart). This two
parts are uncompatible, i think now.
|
|
|
Re: Editor like a view [message #239019 is a reply to message #238988] |
Wed, 10 October 2007 10:50 |
Eclipse User |
|
|
|
Originally posted by: alexey.asonov.oxs.ru
Hi Luis!
Thanks, i think so.
For my first purpose, i realize a view with LightweightSystem and place my
model's figures there.
But second purpose - i want to do some wizard, using gef-editor (on wizard
page). I'm not trying to do it yet, but think i'll take a problem there..
|
|
|
|
Re: Editor like a view [message #239112 is a reply to message #239042] |
Thu, 11 October 2007 11:58 |
Eclipse User |
|
|
|
Originally posted by: alexey.asonov.oxs.ru
Thank you, Anthony!
So, i'm trying to use EditDomain and GraphicalViewer in my view. One more
question - how can i change an input fo my view?
getGraphicalViewer().setContents(..) have no effect..
thanks!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03781 seconds