Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to Create an EditPolicy which handles the RequestConstants.REQ_OPEN request?
How to Create an EditPolicy which handles the RequestConstants.REQ_OPEN request? [message #214380] Mon, 17 April 2006 08:04 Go to next message
Eclipse UserFriend
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
GEF Experts, i need your help on this [message #214505 is a reply to message #214380] Tue, 18 April 2006 04:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shruthi.cn.in.bosch.com

Hello together,

I need your help in this problem which i have described in my previous
post.

Thanks,
Shruthi
Re: GEF Experts, i need your help on this [message #214513 is a reply to message #214505] Tue, 18 April 2006 07:02 Go to previous message
Jan van der Ven is currently offline Jan van der VenFriend
Messages: 18
Registered: July 2009
Junior Member
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.
Previous Topic:simple gef example, select figure
Next Topic:Does GEF provide filters ?
Goto Forum:
  


Current Time: Wed Jan 22 12:23:25 GMT 2025

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

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

Back to the top