IFolder[] designs = currentRuntime.getDesignsAsFolder(false);
for (IFolder folder : designs) {
if (WGADesignStructureHelper.isDirlinkFolder(folder)) {
File target = WGUtils.resolveDirLink(folder.getLocation().toFile());
IPath targetPath;
targetPath = new Path(target.getCanonicalPath());
// check if targetpath is effected by change
if (container.getLocation().isPrefixOf(targetPath)) {
DirlinkRefactoringInformation info = new DirlinkRefactoringInformation(container, arguments);
info.setFile(folder.getFile(WGUtils.DIRLINK_FILE));
links.add(info);
}
}
}
IFolder[] plugins = currentRuntime.getPluginsAsFolder(false);
for (IFolder folder : plugins) {
if (WGADesignStructureHelper.isDirlinkFolder(folder)) {
File target = WGUtils.resolveDirLink(folder.getLocation().toFile());
IPath targetPath;
targetPath = new Path(target.getCanonicalPath());
// check if targetpath is effected by change
if (container.getLocation().isPrefixOf(targetPath)) {
DirlinkRefactoringInformation info = new DirlinkRefactoringInformation(container, arguments);
info.setFile(folder.getFile(WGUtils.DIRLINK_FILE));
links.add(info);