Unable to select editpart by clicking [message #244187] |
Tue, 08 July 2008 19:31 |
Eclipse User |
|
|
|
Originally posted by: darpan.cmu.edu
Hi,
I am unable to select an editpart by clicking. When I click on it the
selection seems to fall through the editpart. However, when I use the
Marquee tool the editpart is selected.
Any help appreciated.
Thanks,
-darpan
|
|
|
Re: Unable to select editpart by clicking [message #244191 is a reply to message #244187] |
Tue, 08 July 2008 20:08 |
Eclipse User |
|
|
|
Originally posted by: darpan.cmu.edu
Hi,
I found the solution. I was retuning MarqueeTracker in the getDragTracker
method. Now that I return DragEditPartsTracker, things work just fine.
However, I have another problem. I need the editpart that I just created
to be selected and thats not happening. I am not sure what the default
behavior in GEF is.
Any help appreciated.
Thanks,
-darpan
|
|
|
Re: Unable to select editpart by clicking [message #244256 is a reply to message #244191] |
Sat, 12 July 2008 06:30 |
Eclipse User |
|
|
|
Originally posted by: annamalai.ancitconsulting.com
After you create a new model object .. u can do
getViewer().setSelection(editPart) that you just created. It would select
the model object that you created.
If you dont kno the editPart related to the model object. Then you can use
getViewer().getEditPartRegistry().get(modelObject) and this woudl return the
editPart for that model object and then pass the editPart to the
setSelection method.
Regards
Malai
"Darpan Saini" <darpan@cmu.edu> wrote in message
news:3f95f7997f8f274929f55507e01882b5$1@www.eclipse.org...
> Hi,
>
> I found the solution. I was retuning MarqueeTracker in the getDragTracker
> method. Now that I return DragEditPartsTracker, things work just fine.
>
> However, I have another problem. I need the editpart that I just created
> to be selected and thats not happening. I am not sure what the default
> behavior in GEF is.
>
> Any help appreciated.
>
> Thanks,
> -darpan
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03578 seconds