Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Open request eaten problem
Open request eaten problem [message #166639] Thu, 03 January 2008 08:31 Go to next message
Eclipse UserFriend
Originally posted by: zzhangh.cn.ibm.com

Hi,
I added an editpolicy with OPEN_ROLE to open a dialog when the node is
double clicked, the node has a label on top of it, which is generated by
"Feature Label Mapping".

I found if I double click on the label, the dialog won't open, instead
the label got selected. If click elsewhere on the node, it works fine.

So is there any way to prevent the label eating the request? Because if
the label takes up the node area, there is nowhere I can open the dialog.
Re: Open request eaten problem [message #166680 is a reply to message #166639] Thu, 03 January 2008 10:41 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Hao Zhang,

You may add an edit policy to the label edit part which will simply
delegate OPEN_ROLE requests to its parent. I guess you will also need a
similar delegation in the performRequest() method.

Best regards,
Boris


Hao Zhang wrote:
> Hi,
> I added an editpolicy with OPEN_ROLE to open a dialog when the node is
> double clicked, the node has a label on top of it, which is generated by
> "Feature Label Mapping".
>
> I found if I double click on the label, the dialog won't open, instead
> the label got selected. If click elsewhere on the node, it works fine.
>
> So is there any way to prevent the label eating the request? Because if
> the label takes up the node area, there is nowhere I can open the dialog.
Previous Topic:Link to Link Connection - Problems
Next Topic:Connection perpendicular to the shape
Goto Forum:
  


Current Time: Thu Apr 25 14:01:27 GMT 2024

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

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

Back to the top