GP-2897 Allow Diff with another open program within same tool. Modified

OpenVersionedFileDialog to faciltate the program selection.
This commit is contained in:
ghidra1 2022-12-07 17:09:00 -05:00
parent dcf147150e
commit d377b9642b
17 changed files with 536 additions and 281 deletions

View file

@ -135,7 +135,9 @@ public abstract class LinkHandler<T extends DomainObjectAdapterDB> extends DBCon
@Override
public T getImmutableObject(FolderItem item, Object consumer, int version, int minChangeVersion,
TaskMonitor monitor) throws IOException, CancelledException, VersionException {
throw new UnsupportedOperationException("link-file does not support getImmutableObject");
//throw new UnsupportedOperationException("link-file does not support getImmutableObject");
// See GP-2903
return getReadOnlyObject(item, version, true, consumer, monitor);
}
@Override

View file

@ -497,7 +497,8 @@ public class DefaultProject implements Project {
addProjectView(url, true);
}
catch (IOException e) {
Msg.error(this, e.getMessage());
Msg.error(this, "Project view not opended (" + GhidraURL.getDisplayString(url) +
"): " + e.getMessage());
}
}
it = root.getChildren(OPEN_REPOSITORY_VIEW_XML_NAME).iterator();
@ -509,7 +510,8 @@ public class DefaultProject implements Project {
addProjectView(url, true);
}
catch (IOException e) {
Msg.error(this, e.getMessage());
Msg.error(this, "Project view not opended (" + GhidraURL.getDisplayString(url) +
"): " + e.getMessage());
}
}