Post-processing of copy/pasted diagram element
There is a need to implement custom post-processing steps for selected diagram element types after creating a new copy.
Proposed interface:
public interface CopyFinisher {
/**
* Make an update to a copy of a diagram node after the CopyAdvisor has created the copy
* @param graph A write transaction
* @param source A source diagram node
* @param copy A copy of the source diagram node, created within the ongoing transaction
* @throws DatabaseException
*/
void finishCopy(WriteGraph graph, Resource source, Resource copy) throws DatabaseException;
}
This could then be bound into a diagram element type using a type adapter.
Edited by Reino Ruusu