Change the Select Behaviour in GEF [message #63185] |
Fri, 07 February 2003 15:40  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
> > >
> > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03362 seconds