Hi,
I have overridden copyObject() method in JGoLink as follows:
-----------------------------------------------------------------------------------
public JGoObject copyObject(JGoCopyEnvironment env) {
WELink link = (WELink) super.copyObject(env);
link.setRoundedCorners(true);
link.setJumpsOver(true);
link.setExceptionPath(this.isExceptionPath());
// link.setFromPort((JGoPort) env.get(this.getFromPort()));
// link.setToPort((JGoPort) env.get(this.getToPort()));
WETextBox text = (WETextBox) link.getToLabel();
text.setLableledLink(link);
return link;
}
--------------------------------------------------------------- This method gets invoked when I call JGoDocument.copyFromCollection(). But the above method does not copy the "from port" and "to port" of the link.Due to this I am unable to find the parent and child objects of the copied link from its "from port" and "to port" respectively.
Please help me with this. How can I find the parent and child objects of the copied JGoLinks?