Home » Eclipse Projects » GEF » making editpart individually selectable, but not through marquee
making editpart individually selectable, but not through marquee [message #189890] |
Sun, 31 July 2005 17:39 |
Eclipse User |
|
|
|
Originally posted by: christian.sell.netcologne.de
hello,
Certain of my edit parts are wholly owned by resp. contained in other
edit parts. I would like to make these parts individually selectable (if
the user directly clicks on one), but not selectable through marquee
selection. Can this be done, and how?
thanks,
christian
|
|
|
Re: making editpart individually selectable, but not through marquee [message #189975 is a reply to message #189890] |
Mon, 01 August 2005 07:13 |
Eclipse User |
|
|
|
Originally posted by: smoreno.business-innovations.biz
Christian Sell wrote:
> hello,
>
> Certain of my edit parts are wholly owned by resp. contained in other
> edit parts. I would like to make these parts individually selectable (if
> the user directly clicks on one), but not selectable through marquee
> selection. Can this be done, and how?
>
> thanks,
> christian
Check the Ediagram example (org.eclipse.gef.examples.ediagram) look at the
classes LabelSelectionEditPolicy and SelectableLabel (using
SELECTION_FEEDBACK_ROLE policy), I just solved the same issue with that
example as a guide
--
Sergio Moreno
|
|
|
Re: making editpart individually selectable, but not through marquee [message #190031 is a reply to message #189975] |
Mon, 01 August 2005 18:43 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
I don't think the ediagram example does what he wants. Christian, you can
do this by overriding the MarqueeSelectionTool (and MarqueeDragTracker).
However, I suspect that the methods you'd want to change in
MarqueeSelectionTool are probably private. Open a bug report for those to
be exposed.
"Sergio Moreno" <smoreno@business-innovations.biz> wrote in message
news:dcl76c$n5q$1@news.eclipse.org...
> Christian Sell wrote:
>
> > hello,
> >
> > Certain of my edit parts are wholly owned by resp. contained in other
> > edit parts. I would like to make these parts individually selectable (if
> > the user directly clicks on one), but not selectable through marquee
> > selection. Can this be done, and how?
> >
> > thanks,
> > christian
>
> Check the Ediagram example (org.eclipse.gef.examples.ediagram) look at the
> classes LabelSelectionEditPolicy and SelectableLabel (using
> SELECTION_FEEDBACK_ROLE policy), I just solved the same issue with that
> example as a guide
> --
> Sergio Moreno
|
|
|
Re: making editpart individually selectable, but not through marquee [message #190060 is a reply to message #190031] |
Mon, 01 August 2005 19:22 |
Eclipse User |
|
|
|
Originally posted by: christian.sell.netcologne.de
Pratik,
thanks for you comment. However, looking into this, it seems to me that
the best solution would be to distinguish MARQUEE_REQUEST from
REQ_SELECTION (currently defined as
MARQUEE_REQUEST = new Request(RequestConstants.REQ_SELECTION);
) so that each editPart could decide through the
getTargetEditPart(MARQUEE_REQUEST) call in line 171 whether it wants to
participate in the selection or not. Otherwise I see no way how
MarqueeSelectionTool should decide which parts to include.
Anyway, it seems that all these solutions are beyond my reach for now..
Pratik Shah schrieb:
> I don't think the ediagram example does what he wants. Christian, you can
> do this by overriding the MarqueeSelectionTool (and MarqueeDragTracker).
> However, I suspect that the methods you'd want to change in
> MarqueeSelectionTool are probably private. Open a bug report for those to
> be exposed.
>
> "Sergio Moreno" <smoreno@business-innovations.biz> wrote in message
> news:dcl76c$n5q$1@news.eclipse.org...
>
>>Christian Sell wrote:
>>
>>
>>>hello,
>>>
>>>Certain of my edit parts are wholly owned by resp. contained in other
>>>edit parts. I would like to make these parts individually selectable (if
>>>the user directly clicks on one), but not selectable through marquee
>>>selection. Can this be done, and how?
>>>
>>>thanks,
>>>christian
>>
>>Check the Ediagram example (org.eclipse.gef.examples.ediagram) look at the
>>classes LabelSelectionEditPolicy and SelectableLabel (using
>>SELECTION_FEEDBACK_ROLE policy), I just solved the same issue with that
>>example as a guide
>>--
>>Sergio Moreno
>
>
>
|
|
|
Re: making editpart individually selectable, but not through marquee [message #211334 is a reply to message #190060] |
Thu, 09 March 2006 18:38 |
drew frantz Messages: 340 Registered: July 2009 |
Senior Member |
|
|
Was this ever solved? Or a defect opened?
"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:dclsrg$jv7$1@news.eclipse.org...
> Pratik,
>
> thanks for you comment. However, looking into this, it seems to me that
> the best solution would be to distinguish MARQUEE_REQUEST from
> REQ_SELECTION (currently defined as
>
> MARQUEE_REQUEST = new Request(RequestConstants.REQ_SELECTION);
>
> ) so that each editPart could decide through the
> getTargetEditPart(MARQUEE_REQUEST) call in line 171 whether it wants to
> participate in the selection or not. Otherwise I see no way how
> MarqueeSelectionTool should decide which parts to include.
>
> Anyway, it seems that all these solutions are beyond my reach for now..
>
> Pratik Shah schrieb:
> > I don't think the ediagram example does what he wants. Christian, you
can
> > do this by overriding the MarqueeSelectionTool (and MarqueeDragTracker).
> > However, I suspect that the methods you'd want to change in
> > MarqueeSelectionTool are probably private. Open a bug report for those
to
> > be exposed.
> >
> > "Sergio Moreno" <smoreno@business-innovations.biz> wrote in message
> > news:dcl76c$n5q$1@news.eclipse.org...
> >
> >>Christian Sell wrote:
> >>
> >>
> >>>hello,
> >>>
> >>>Certain of my edit parts are wholly owned by resp. contained in other
> >>>edit parts. I would like to make these parts individually selectable
(if
> >>>the user directly clicks on one), but not selectable through marquee
> >>>selection. Can this be done, and how?
> >>>
> >>>thanks,
> >>>christian
> >>
> >>Check the Ediagram example (org.eclipse.gef.examples.ediagram) look at
the
> >>classes LabelSelectionEditPolicy and SelectableLabel (using
> >>SELECTION_FEEDBACK_ROLE policy), I just solved the same issue with that
> >>example as a guide
> >>--
> >>Sergio Moreno
> >
> >
> >
|
|
|
Goto Forum:
Current Time: Mon Jan 20 16:04:19 GMT 2025
Powered by FUDForum. Page generated in 0.03840 seconds
|