Skip to main content



      Home
Home » Eclipse Projects » GEF » Detecting a selection on the connection
Detecting a selection on the connection [message #95189] Wed, 24 September 2003 10:05 Go to next message
Eclipse UserFriend
Originally posted by: selpin.crimsonlogic.com

Hi,
Similar to the logic example, i have drawn a connection between 2
figures. As i am implementing my own property page, i'll need to detect
the figure the user is currently selecting in order to display their
respective properties. I was able to use the selection policy to detect
the user's selection on the individual figures, however since "Wire" is
not a figure, i can't detect the event whereby the user selects it. How
can i overcome the problem?

Thanks in advance!

regards,
Evon
Re: Detecting a selection on the connection [message #95204 is a reply to message #95189] Wed, 24 September 2003 11:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

viewer.getSelectedEditPart(). Am I missing something?
Why aren't you using the existing property sheet support in Eclipse?

"Evon" <selpin@crimsonlogic.com> wrote in message
news:bks8ba$nfd$1@eclipse.org...
> Hi,
> Similar to the logic example, i have drawn a connection between 2
> figures. As i am implementing my own property page, i'll need to detect
> the figure the user is currently selecting in order to display their
> respective properties. I was able to use the selection policy to detect
> the user's selection on the individual figures, however since "Wire" is
> not a figure, i can't detect the event whereby the user selects it. How
> can i overcome the problem?
>
> Thanks in advance!
>
> regards,
> Evon
>
Re: Detecting a selection on the connection [message #95318 is a reply to message #95204] Wed, 24 September 2003 22:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: selpin.crimonlogic.com

Hi,
Thanks for the help! My "property page" is not exactly a property page,
it sorts of display multi-columns of information and might incorporate
buttons that activate wizards and stuff. If i'm not wrong, existing
property sheet cannot be customize to do that right? or am i wrong?

regards,
Evon

Randy Hudson wrote:

> viewer.getSelectedEditPart(). Am I missing something?
> Why aren't you using the existing property sheet support in Eclipse?

> "Evon" <selpin@crimsonlogic.com> wrote in message
> news:bks8ba$nfd$1@eclipse.org...
> > Hi,
> > Similar to the logic example, i have drawn a connection between 2
> > figures. As i am implementing my own property page, i'll need to detect
> > the figure the user is currently selecting in order to display their
> > respective properties. I was able to use the selection policy to detect
> > the user's selection on the individual figures, however since "Wire" is
> > not a figure, i can't detect the event whereby the user selects it. How
> > can i overcome the problem?
> >
> > Thanks in advance!
> >
> > regards,
> > Evon
> >
Re: Detecting a selection on the connection [message #95335 is a reply to message #95318] Wed, 24 September 2003 23:50 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Correct, you cannot do multi-columns. You can however reuse the properties
*view*, and return your own custom control as the page for your editor's
property "table".

"Evon" <selpin@crimonlogic.com> wrote in message
news:bktjmt$1v9$1@eclipse.org...
> Hi,
> Thanks for the help! My "property page" is not exactly a property page,
> it sorts of display multi-columns of information and might incorporate
> buttons that activate wizards and stuff. If i'm not wrong, existing
> property sheet cannot be customize to do that right? or am i wrong?
>
> regards,
> Evon
>
> Randy Hudson wrote:
>
> > viewer.getSelectedEditPart(). Am I missing something?
> > Why aren't you using the existing property sheet support in Eclipse?
>
> > "Evon" <selpin@crimsonlogic.com> wrote in message
> > news:bks8ba$nfd$1@eclipse.org...
> > > Hi,
> > > Similar to the logic example, i have drawn a connection between 2
> > > figures. As i am implementing my own property page, i'll need to
detect
> > > the figure the user is currently selecting in order to display their
> > > respective properties. I was able to use the selection policy to
detect
> > > the user's selection on the individual figures, however since "Wire"
is
> > > not a figure, i can't detect the event whereby the user selects it.
How
> > > can i overcome the problem?
> > >
> > > Thanks in advance!
> > >
> > > regards,
> > > Evon
> > >
>
>
Previous Topic:Exporting to JPEG
Next Topic:Branched Connections - possible Contribution
Goto Forum:
  


Current Time: Wed May 07 22:20:24 EDT 2025

Powered by FUDForum. Page generated in 0.04579 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top