mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 04:35:33 +08:00
GP-6692 - Added an option to limit the number of symbols displayed at an address
This commit is contained in:
+2
-18
@@ -21,8 +21,8 @@ import javax.swing.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import docking.widgets.combobox.GhidraComboBox;
|
||||
import ghidra.app.plugin.core.label.*;
|
||||
import ghidra.app.plugin.core.label.LabelHistoryDialog;
|
||||
import ghidra.app.plugin.core.label.LabelHistoryInputDialog;
|
||||
import ghidra.app.util.*;
|
||||
import ghidra.program.model.address.*;
|
||||
import ghidra.program.model.symbol.LabelHistory;
|
||||
@@ -85,22 +85,6 @@ public class LabelMgrPluginScreenShots extends GhidraScreenShotGenerator {
|
||||
captureDialog();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetLabel() {
|
||||
LabelMgrPlugin plugin = getPlugin(tool, LabelMgrPlugin.class);
|
||||
final OperandLabelDialog dialog = new OperandLabelDialog(plugin);
|
||||
final GhidraComboBox<?> combo = (GhidraComboBox<?>) getInstanceField("myChoice", dialog);
|
||||
runSwing(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
dialog.setTitle("Set Label at 004a671");
|
||||
combo.setSelectedItem("LAB_0040a671");
|
||||
}
|
||||
});
|
||||
showDialogWithoutBlocking(tool, dialog);
|
||||
captureDialog(350, 116);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShowLabelHistory() {
|
||||
AddressSpace space = new GenericAddressSpace("Test", 32, AddressSpace.TYPE_RAM, 0);
|
||||
|
||||
Reference in New Issue
Block a user