Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Unable to select editpart by clicking
Unable to select editpart by clicking [message #244187] Tue, 08 July 2008 19:31 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: Unable to select editpart by clicking [message #244265 is a reply to message #244256] Sun, 13 July 2008 12:42 Go to previous message
Eclipse UserFriend
Originally posted by: darpan.cmu.edu

Thanks,

That works.

-darpan
Previous Topic:how to deal with model event efficiently
Next Topic:Who handles SelectionRequest which is created by Targeting Tool?
Goto Forum:
  


Current Time: Fri Mar 29 00:46:26 GMT 2024

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

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

Back to the top