Merge branch 'GP-3551_ghidra1_InternalProjectLinks'

This commit is contained in:
ghidra1 2025-07-09 13:34:56 -04:00
commit 53552616ec
209 changed files with 10096 additions and 3050 deletions

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -15,32 +15,16 @@
*/
package ghidra.program.database;
import java.io.IOException;
import javax.swing.Icon;
import ghidra.framework.data.LinkHandler;
import ghidra.framework.data.URLLinkObject;
import ghidra.framework.model.DomainObject;
import ghidra.framework.store.FileSystem;
import ghidra.util.InvalidNameException;
import ghidra.util.exception.CancelledException;
import ghidra.util.task.TaskMonitor;
public class DataTypeArchiveLinkContentHandler extends LinkHandler<DataTypeArchiveDB> {
public static final String ARCHIVE_LINK_CONTENT_TYPE = "ArchiveLink";
public static DataTypeArchiveLinkContentHandler INSTANCE =
new DataTypeArchiveLinkContentHandler();
@Override
public long createFile(FileSystem fs, FileSystem userfs, String path, String name,
DomainObject obj, TaskMonitor monitor)
throws IOException, InvalidNameException, CancelledException {
if (!(obj instanceof URLLinkObject)) {
throw new IOException("Unsupported domain object: " + obj.getClass().getName());
}
return createFile((URLLinkObject) obj, ARCHIVE_LINK_CONTENT_TYPE, fs, path, name,
monitor);
}
public static final String ARCHIVE_LINK_CONTENT_TYPE = "ArchiveLink";
@Override
public String getContentType() {

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -15,32 +15,15 @@
*/
package ghidra.program.database;
import java.io.IOException;
import javax.swing.Icon;
import ghidra.framework.data.LinkHandler;
import ghidra.framework.data.URLLinkObject;
import ghidra.framework.model.DomainObject;
import ghidra.framework.store.FileSystem;
import ghidra.util.InvalidNameException;
import ghidra.util.exception.CancelledException;
import ghidra.util.task.TaskMonitor;
public class ProgramLinkContentHandler extends LinkHandler<ProgramDB> {
public static final String PROGRAM_LINK_CONTENT_TYPE = "ProgramLink";
public static ProgramLinkContentHandler INSTANCE = new ProgramLinkContentHandler();
@Override
public long createFile(FileSystem fs, FileSystem userfs, String path, String name,
DomainObject obj, TaskMonitor monitor)
throws IOException, InvalidNameException, CancelledException {
if (!(obj instanceof URLLinkObject)) {
throw new IOException("Unsupported domain object: " + obj.getClass().getName());
}
return createFile((URLLinkObject) obj, PROGRAM_LINK_CONTENT_TYPE, fs, path, name,
monitor);
}
public static final String PROGRAM_LINK_CONTENT_TYPE = "ProgramLink";
@Override
public String getContentType() {

View file

@ -1160,7 +1160,7 @@ public class CodeManager implements ErrorHandler, ManagerDB {
* Get an iterator that contains the code units which have the specified property type defined.
* Only code units starting within the address set specified will be returned by the iterator.
* If the address set is null then check the entire program.
* <br>
* <P>
* Standard property types are defined in the CodeUnit class. The property types are:
* <ul>
* <li>REFERENCE_PROPERTY</li>