How to Create an EditPolicy which handles the RequestConstants.REQ_OPEN request? [message #214380] |
Mon, 17 April 2006 04:04  |
Eclipse User |
|
|
|
Originally posted by: shruthi.cn.in.bosch.com
Hello all,
How to Create an EditPolicy which handles the RequestConstants.REQ_OPEN
request? This is the request that gets sent for a double-click event on a
target edit part.
I came to know that GEF doesn't currently handle this request by default .
So i need to create a new role for this. How can i go about it.
Some code, links would definitely help me.
Thanks a lot,
Best Regards
Shruthi
|
|
|
|
Re: GEF Experts, i need your help on this [message #214513 is a reply to message #214505] |
Tue, 18 April 2006 03:02  |
Eclipse User |
|
|
|
Shruthi wrote:
> Hello together,
>
> I need your help in this problem which i have described in my previous
> post.
>
> Thanks,
> Shruthi
>
>
>
I am no expert, but this is how I do it: when the user double clicks my
connection, I overload performRequest in my adaption of Phil Zoio's
public class RelationshipPart extends PropertyAwareConnectionPart
{
Editpart:
public void performRequest(Request request) {
if (request.getType() == RequestConstants.REQ_OPEN) {
// show our dialog
RelationshipDialog sd = new RelationshipDialog(PlatformUI
.getWorkbench().getActiveWorkbenchWindow()
.getShell(), ImageStore.RELATIONSHIPSON);
and show a dialog.
|
|
|
Powered by
FUDForum. Page generated in 0.02929 seconds