mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-1981 - Theming - Base Module
This commit is contained in:
parent
dd31ff47a2
commit
0971c0088c
228 changed files with 1848 additions and 1694 deletions
|
@ -21,7 +21,7 @@ import java.util.*;
|
|||
import java.util.concurrent.locks.Lock;
|
||||
import java.util.concurrent.locks.ReadWriteLock;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.Icon;
|
||||
|
||||
import db.DBHandle;
|
||||
import ghidra.program.model.address.*;
|
||||
|
@ -236,7 +236,7 @@ public class DBTraceBookmarkManager extends AbstractDBTraceSpaceBasedManager<DBT
|
|||
}
|
||||
|
||||
@Override
|
||||
public synchronized DBTraceBookmarkType defineBookmarkType(String typeName, ImageIcon icon,
|
||||
public synchronized DBTraceBookmarkType defineBookmarkType(String typeName, Icon icon,
|
||||
Color color, int priority) {
|
||||
DBTraceBookmarkType type;
|
||||
synchronized (this) {
|
||||
|
|
|
@ -18,6 +18,7 @@ package ghidra.trace.database.bookmark;
|
|||
import java.awt.Color;
|
||||
import java.util.*;
|
||||
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
import ghidra.trace.model.bookmark.TraceBookmark;
|
||||
|
@ -33,14 +34,14 @@ public class DBTraceBookmarkType implements TraceBookmarkType {
|
|||
|
||||
protected final DBTraceBookmarkManager manager;
|
||||
protected final String name;
|
||||
protected ImageIcon icon;
|
||||
protected Icon icon;
|
||||
protected Color color;
|
||||
protected int priority;
|
||||
|
||||
protected final int id = nextId();
|
||||
protected final Collection<TraceBookmark> bookmarkView;
|
||||
|
||||
public DBTraceBookmarkType(DBTraceBookmarkManager manager, String name, ImageIcon icon,
|
||||
public DBTraceBookmarkType(DBTraceBookmarkManager manager, String name, Icon icon,
|
||||
Color color, int priority) {
|
||||
this.manager = manager;
|
||||
this.name = name;
|
||||
|
@ -62,7 +63,7 @@ public class DBTraceBookmarkType implements TraceBookmarkType {
|
|||
}
|
||||
|
||||
@Override
|
||||
public ImageIcon getIcon() {
|
||||
public Icon getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ import java.awt.Color;
|
|||
import java.util.*;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.Icon;
|
||||
|
||||
import org.apache.commons.collections4.IteratorUtils;
|
||||
|
||||
|
@ -52,7 +52,7 @@ public class DBTraceProgramViewBookmarkManager implements TraceProgramViewBookma
|
|||
}
|
||||
|
||||
@Override
|
||||
public BookmarkType defineType(String type, ImageIcon icon, Color color, int priority) {
|
||||
public BookmarkType defineType(String type, Icon icon, Color color, int priority) {
|
||||
return bookmarkManager.defineBookmarkType(type, icon, color, priority);
|
||||
}
|
||||
|
||||
|
@ -284,11 +284,11 @@ public class DBTraceProgramViewBookmarkManager implements TraceProgramViewBookma
|
|||
* {@link IteratorUtils#filteredIterator(Iterator, org.apache.commons.collections4.Predicate)}.
|
||||
*
|
||||
* This one understands that the predicate will be testing things of the (possibly
|
||||
* more-specific) type of elements in the original iterator, not thatof the returned iterator.
|
||||
* more-specific) type of elements in the original iterator, not that of the returned iterator.
|
||||
*
|
||||
* @param it
|
||||
* @param predicate
|
||||
* @return
|
||||
* @param it the iterator
|
||||
* @param predicate the predicate
|
||||
* @return the iterator
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
protected static <T, U extends T> Iterator<T> filteredIterator(Iterator<U> it,
|
||||
|
|
|
@ -18,7 +18,7 @@ package ghidra.trace.model.bookmark;
|
|||
import java.awt.Color;
|
||||
import java.util.Collection;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.Icon;
|
||||
|
||||
import ghidra.program.model.address.AddressSpace;
|
||||
import ghidra.trace.model.stack.TraceStackFrame;
|
||||
|
@ -45,7 +45,7 @@ public interface TraceBookmarkManager extends TraceBookmarkOperations {
|
|||
* the same location
|
||||
* @return the newly-defined type
|
||||
*/
|
||||
TraceBookmarkType defineBookmarkType(String name, ImageIcon icon, Color color, int priority);
|
||||
TraceBookmarkType defineBookmarkType(String name, Icon icon, Color color, int priority);
|
||||
|
||||
/**
|
||||
* Get the defined bookmark types.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue