Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to deactivate creating a figure by draging a rectangle in the diagram editor?
How to deactivate creating a figure by draging a rectangle in the diagram editor? [message #521463] Wed, 17 March 2010 16:32
Marco is currently offline MarcoFriend
Messages: 27
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------060009040703000800070406
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hello GMF-Experts,

I would like to forbid the user of my application, creating a particular
node figure by the following way:

1. The User clicks at that particular figure in the tool palette to
select it
2. The User moves the mouse to a position on the diagram, where he is
allowed to create that particular figure
3. The User presses and holds the mouse button, dragging a rectangle, to
mark the bounds, where that particular figure should be created
4. The User releases the mouse button

Please also see 'drag_example.gif' in the attatchment to see the
behaviour of the application, when the user applies this method.

But the following way to create the particular node figure should be
allowed:

1. The User clicks at that particular figure in the tool palette to
select it
2. The User moves the mouse to a position on the diagram, where he is
allowed to create that particular figure
3. The User clicks on that position

All other figures except for that particular figure should still be
creatable with both described methods.

How can I reach that special behaviour for my particular figure?

Thank you for your replys!

Regards,
Marco

--------------060009040703000800070406
Content-Type: image/gif;
name="drag_example.gif"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="drag_example.gif"

iVBORw0KGgoAAAANSUhEUgAAANoAAADKCAIAAABMqckXAAAAAXNSR0IArs4c 6QAAAARnQU1B
AACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgA ABdwnLpRPAAA
B29JREFUeF7tm1Fu3DAMRNNjFejtC+QY7VHaJP4x4tqVGJkcD99iPxaJJGqH T0NL9n779fvX
Cy8UEFHgDUfeKCCiwIvIPJgGCrwXalRAAR0FwJFrFSEFwFEoGTouVTUTcARH IQXAUSgZVZ6k
ExccwVFIAXAUSoaOS1XNBBzBUUgBcBRKRpUn6cQFR3AUUgAchZKh41JVMwFH cBRSAByFklHl
STpxwRE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7N4Md2UemXJlZwVHkBJS AByFkqHsWzlz
A0dwFFIgdng++DAb96yFMp1jb1+MAo4QI6QAOAol44vWYtAdHMFRSIGzuy/j f+eJHqF0Pt0g
x7E7awmO4PgMBdhZPyNPT/fUwfmDIzgKKQCOQskYtBDjZuAIjkIKgKNQMoxt b/CrgSM4CikA
jkLJGLQQ42bgCI5CCvwFpKrOpslpHw0AAAAASUVORK5CYII=
--------------060009040703000800070406--
Previous Topic:Element copy paste
Next Topic:Customized line-break behaviour
Goto Forum:
  


Current Time: Sun Sep 20 08:03:00 GMT 2020

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

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

Back to the top