|
|
|
Re: How to let Edge end hook up to a border of a Node [message #1818452 is a reply to message #1818434] |
Mon, 16 December 2019 09:43  |
Eclipse User |
|
|
|
Hi,
Qiran Cong wrote on Mon, 16 December 2019 09:28
"provide your own set of EditPart/EditPolicy (and maybe even locator, anchor, figure..) "
can you tell me how to achieve this? any extension point?
The extension point to use is GMF's editPartProvider mechanism. You can find a relatively simple example in Ecore Tools:
* https://github.com/pcdavid/org.eclipse.emf.ecoretools/blob/master/org.eclipse.emf.ecoretools.design.ui/plugin.xml#L6
* https://github.com/pcdavid/org.eclipse.emf.ecoretools/blob/master/org.eclipse.emf.ecoretools.design.ui/src/org/eclipse/emf/ecoretools/design/ui/parts/EcoreToolsSpecificEditPartProvider.java
The basic idea is to override the EditPart implementation of your specific elements (and only them!) with alternative implementations, that override the ones from Sirius (that would be used otherwise). Once you control the EditPart class used, you can install different edit policies on it, create diffferent Draw2D figures, etc.
Regards,
Pierre-Charles
|
|
|
Powered by
FUDForum. Page generated in 0.39912 seconds