|Re: Create graphic elements programmatically [message #1400588 is a reply to message #1400526]
||Mon, 14 July 2014 12:29
|| Christian W. Damus
Registered: July 2009
Are you looking for the same result as a drag-and-drop operation with
the Control modifier key (on Windows; on Mac it's the Option key)? If
so, then I think you just need to add the value of DND.DROP_COPY to the
drop request's extended data. Something like
The "EVENT_DETAIL" string is available as a constant in the
CustomizableDropEditPolicy class, but I don't know whether that's a
supported public API.
On 2014-07-14 10:23:00 +0000, Natalia B. said:
> Thanks a lot for your reply.
> I created a simple example in my diagram with 2 classes linked by an
> association and each class with one attribute. I was be able to draw
> the classes and association using DropObjectRequest but not the
> attributes inside the classes, but I can see them in the model explorer.
> What did I miss? Do I have to do something special for elements inside
> the classes (attributes, operations)?
> Thanks in advance.
Powered by FUDForum
. Page generated in 0.03368 seconds