Figure selection in a ViewPart [message #171961] |
Tue, 15 March 2005 21:17 |
Eclipse User |
|
|
|
Originally posted by: florin_florea.hotmail.com
I have a ViewPart and have to display a diagram in it. If it was a EditPart
instead of a ViewPart the selection bounds would have been shown when a
Figure was selected. It does not show though if I put my figures (in a
FigureCanvas) in a ViewPart. I can identify the figure that is selected in
the ViewPart but the selection bounds don't show up. How can I make them
appear? Do I have to paint them manualy?
Please help.
FF
|
|
|
Re: Figure selection in a ViewPart [message #171969 is a reply to message #171961] |
Tue, 15 March 2005 21:30 |
Eclipse User |
|
|
|
Originally posted by: florin_florea.hotmail.com
To get a better idea what I want, please consider the Shapes example from
Eclipse 3.1.0. In this example, the ShapesEditor extends an EditorPart. In
my case, my ShapesEditor needs to extend a ViewPart. Any ideas how to show
the selection bounds in this case?
FF
"Florin" <florin_florea@hotmail.com> wrote in message
news:d17jcn$m2m$1@www.eclipse.org...
> I have a ViewPart and have to display a diagram in it. If it was a
EditPart
> instead of a ViewPart the selection bounds would have been shown when a
> Figure was selected. It does not show though if I put my figures (in a
> FigureCanvas) in a ViewPart. I can identify the figure that is selected in
> the ViewPart but the selection bounds don't show up. How can I make them
> appear? Do I have to paint them manualy?
>
> Please help.
>
> FF
>
>
|
|
|
|
Re: Figure selection in a ViewPart [message #172107 is a reply to message #172023] |
Wed, 16 March 2005 15:29 |
Eclipse User |
|
|
|
Originally posted by: florin_florea.hotmail.com
No, I don't intend to use a GraphicalViewer in my ViewPart. It's basicaly a
diagram with the ability to show the selection on MousePressed event that I
need in my application. Combined maybe with a change of color, but that's
all.
If selection is not implemented for ViewPart than I'm on my way of doing
that my self.
Thanks for helping out.
FF
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d17udp$mjo$1@www.eclipse.org...
> Using GEF in a ViewPart is no different from using GEF in an EditorPart.
> The only thing is that we have a GraphicalEditor, which handles a lot of
> bridging between the workbench and GEF (specifically, the GraphicalViewer)
> behind the scenes, and have no such corresponding GraphicalView. You'd
have
> to do all that on your own in the ViewPart.
>
> Are you creating a GraphicalViewer in your ViewPart?
>
> "Florin" <florin_florea@hotmail.com> wrote in message
> news:d17jcn$m2m$1@www.eclipse.org...
> > I have a ViewPart and have to display a diagram in it. If it was a
> EditPart
> > instead of a ViewPart the selection bounds would have been shown when a
> > Figure was selected. It does not show though if I put my figures (in a
> > FigureCanvas) in a ViewPart. I can identify the figure that is selected
in
> > the ViewPart but the selection bounds don't show up. How can I make them
> > appear? Do I have to paint them manualy?
> >
> > Please help.
> >
> > FF
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.01359 seconds