|
|
|
|
Re: Can a view (ViewPart)do the works that GraphicalEditor(EditorPart) does? [message #137385 is a reply to message #137352] |
Wed, 09 June 2004 13:35  |
Eclipse User |
|
|
|
What you want is EditDomain, not DefaultEditDomain.
"Chris Heald" <chris.heald@m.eads.net> wrote in message
news:ca78eq$gk8$1@eclipse.org...
> Got a basic viewer working with no problems. However, I'd now like to make
> the figures/editParts selectable. Even with the correct editPolicies
> installed etc. the mosue events are not received. The viewer routes all
> the events to the EditDomain but as I'm using a ViewPart and not an
> EditPart I can't create a DefaultEditDomain. If i
> setRouteEventstoEditDomain(false), i get a null pointer exception as
> there's no EventDispatcher.
>
> I looked at overriding the Viewer to change the eventDispatcher but the
> relevant methods are deprecated.
>
> What's the recommended way of doing this? I think what I need is a
> "ViewDomain".
>
> Is there an easier way to do this? All i really want is to pick up a
> doubleClick on an editPart (normally performRequest(REQ_OPEN)).
>
> Thanks
> Chris
>
>
>
> Pratik Shah wrote:
>
> > You can create a GEF viewer on any SWT Composite. For creating an
editor,
> > you extend EditorPart, create a GEF viewer and give it the "editor
control"
> > (in the viewer's createControl(...) method). You would do the exact
> > samething for a view. Extend ViewPart (or a subclass thereof), and give
the
> > view's control to the GEF viewer.
>
> > "Bruce" <xietao@sjtu.edu.cn> wrote in message
> > news:c8rmhn$f53$1@eclipse.org...
> > > hi,all!
> > > Can a view (ViewPart)do the works that GraphicalEditor(EditorPart)
does?
> > >
> > > Now I have developed a plugin and I want to add a view that can
display
> > > figures like GraphicalEditor does,how can I make it?
> > >
> > > Any response is appreciated!
> > >
> > >
> > >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.29462 seconds