* <code>TextDocument</code> (if the transformation's source/target is a text document).
*
*/
@Override
public List<? extends EntityLink> getLinks(IntegrationEntityLookup lookup) {
TransformationLinkCollector collector = new TransformationLinkCollector(this, lookup);
// We need to keep this for backwards compatibility, when opening a project that was
// saved in a version < 2.0.0.5:
if (inputStructure == null) {
inputStructure = collector.getInputStructure();
}
if (outputStructure == null) {
outputStructure = collector.getOutputStructure();
}
List<EntityLink> links = collector.getLinks();
if (scriptedLinks == null) {
updateScriptedLinks(lookup);
}
links.addAll(scriptedLinks);
return links;