Skip to main content



      Home
Home » Eclipse Projects » GEF » Change the Select Behaviour in GEF
Change the Select Behaviour in GEF [message #63185] Fri, 07 February 2003 15:40 Go to next message
Eclipse UserFriend
How can I control the select behaviour in GEF?
For example, when I click on a label, the label is selected and
high-lighted. How can I change that so that it selectes the container of the
label instead?

Thanks
Re: Change the Select Behaviour in GEF [message #63212 is a reply to message #63185] Fri, 07 February 2003 16:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Please give more context to your questions. I'm going to guess that you
have a label as a child of a connection editpart.

There is new API to make an EditPart not selectable. Override
isSelectable(), but you'll have to wait until the next build to be able to
do this.

"yinglcs" <yinglcs@netscape.com> wrote in message
news:b2146q$7sr$1@rogue.oti.com...
> How can I control the select behaviour in GEF?
> For example, when I click on a label, the label is selected and
> high-lighted. How can I change that so that it selectes the container of
the
> label instead?
>
> Thanks
>
>
Re: Change the Select Behaviour in GEF [message #63645 is a reply to message #63212] Sat, 08 February 2003 16:20 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your help.

Take Logic Editor as an example.
I put an And Gate inside a Circuit.
I would like to change the select behaviour of And Gate so that whenever
users select that And Gate, the Parent Container (in this case the Circuit)
is selected instead.

thank you.



"Randy Hudson" <none@us.ibm.com> wrote in message
news:b217b8$a34$1@rogue.oti.com...
> Please give more context to your questions. I'm going to guess that you
> have a label as a child of a connection editpart.
>
> There is new API to make an EditPart not selectable. Override
> isSelectable(), but you'll have to wait until the next build to be able to
> do this.
>
> "yinglcs" <yinglcs@netscape.com> wrote in message
> news:b2146q$7sr$1@rogue.oti.com...
> > How can I control the select behaviour in GEF?
> > For example, when I click on a label, the label is selected and
> > high-lighted. How can I change that so that it selectes the container of
> the
> > label instead?
> >
> > Thanks
> >
> >
>
>
Re: Change the Select Behaviour in GEF [message #63666 is a reply to message #63645] Sat, 08 February 2003 17:02 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

If the User cannot interact with the label, I'm confused about why there is
an EditPart associated with the label. Why doesn't the Circuit just create a
Label figure and add it to its figure.

Anyway, the answer is still override isSelectable() to return false.

"yinglcs" <yinglcs@netscape.com> wrote in message
news:b23qui$gh2$1@rogue.oti.com...
> Thanks for your help.
>
> Take Logic Editor as an example.
> I put an And Gate inside a Circuit.
> I would like to change the select behaviour of And Gate so that whenever
> users select that And Gate, the Parent Container (in this case the
Circuit)
> is selected instead.
>
> thank you.
>
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:b217b8$a34$1@rogue.oti.com...
> > Please give more context to your questions. I'm going to guess that you
> > have a label as a child of a connection editpart.
> >
> > There is new API to make an EditPart not selectable. Override
> > isSelectable(), but you'll have to wait until the next build to be able
to
> > do this.
> >
> > "yinglcs" <yinglcs@netscape.com> wrote in message
> > news:b2146q$7sr$1@rogue.oti.com...
> > > How can I control the select behaviour in GEF?
> > > For example, when I click on a label, the label is selected and
> > > high-lighted. How can I change that so that it selectes the container
of
> > the
> > > label instead?
> > >
> > > Thanks
> > >
> > >
> >
> >
>
>
Previous Topic:Place a SWT figure inside Draw2D figure
Next Topic:How to draw Transparent Figure has a shadow?
Goto Forum:
  


Current Time: Fri Apr 25 21:32:21 EDT 2025

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

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

Back to the top