mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch 'origin/GT-2925-dragonmacher-window-menu-key-bindings'
This commit is contained in:
commit
10372c2e13
200 changed files with 3955 additions and 3195 deletions
|
@ -123,38 +123,36 @@ public abstract class ByteSequenceAnalyzerProvider extends DialogComponentProvid
|
|||
}
|
||||
|
||||
private void addSendSelectedToClipboardAction() {
|
||||
sendSelectedToClipboardAction =
|
||||
new DockingAction("Send Selected to Clipboard", title, false) {
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
List<ByteSequenceRowObject> rows = byteSequenceTable.getLastSelectedObjects();
|
||||
for (ByteSequenceRowObject row : rows) {
|
||||
DittedBitSequence seq = new DittedBitSequence(row.getSequence(), true);
|
||||
PatternInfoRowObject pattern =
|
||||
new PatternInfoRowObject(type, seq, cRegFilter);
|
||||
pattern.setNote(row.getDisassembly());
|
||||
plugin.addPattern(pattern);
|
||||
}
|
||||
plugin.updateClipboard();
|
||||
sendSelectedToClipboardAction = new DockingAction("Send Selected to Clipboard", title) {
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
List<ByteSequenceRowObject> rows = byteSequenceTable.getLastSelectedObjects();
|
||||
for (ByteSequenceRowObject row : rows) {
|
||||
DittedBitSequence seq = new DittedBitSequence(row.getSequence(), true);
|
||||
PatternInfoRowObject pattern = new PatternInfoRowObject(type, seq, cRegFilter);
|
||||
pattern.setNote(row.getDisassembly());
|
||||
plugin.addPattern(pattern);
|
||||
}
|
||||
plugin.updateClipboard();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabledForContext(ActionContext context) {
|
||||
List<ByteSequenceRowObject> rows = byteSequenceTable.getLastSelectedObjects();
|
||||
if (rows == null) {
|
||||
return false;
|
||||
}
|
||||
if (rows.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@Override
|
||||
public boolean isEnabledForContext(ActionContext context) {
|
||||
List<ByteSequenceRowObject> rows = byteSequenceTable.getLastSelectedObjects();
|
||||
if (rows == null) {
|
||||
return false;
|
||||
}
|
||||
if (rows.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAddToPopup(ActionContext context) {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
@Override
|
||||
public boolean isAddToPopup(ActionContext context) {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
ImageIcon icon = ResourceManager.loadImage("images/2rightarrow.png");
|
||||
sendSelectedToClipboardAction.setPopupMenuData(
|
||||
|
@ -168,7 +166,7 @@ public abstract class ByteSequenceAnalyzerProvider extends DialogComponentProvid
|
|||
}
|
||||
|
||||
private void addMergeAction() {
|
||||
mergeAction = new DockingAction("Merge Selected Rows", title, false) {
|
||||
mergeAction = new DockingAction("Merge Selected Rows", title) {
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
merged = byteSequenceTable.mergeSelectedRows();
|
||||
|
@ -203,7 +201,7 @@ public abstract class ByteSequenceAnalyzerProvider extends DialogComponentProvid
|
|||
}
|
||||
|
||||
private void addSendMergedToClipboardAction() {
|
||||
sendMergedToClipboardAction = new DockingAction("Send Merged to Clipboard", title, false) {
|
||||
sendMergedToClipboardAction = new DockingAction("Send Merged to Clipboard", title) {
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
if (merged != null) {
|
||||
|
|
|
@ -78,7 +78,7 @@ public class ClosedPatternTableDialog extends DialogComponentProvider {
|
|||
private JPanel createMainPanel() {
|
||||
JPanel panel = new JPanel(new BorderLayout());
|
||||
GThreadedTablePanel<ClosedPatternRowObject> table =
|
||||
new GThreadedTablePanel<ClosedPatternRowObject>(closedPatternTableModel);
|
||||
new GThreadedTablePanel<>(closedPatternTableModel);
|
||||
panel.add(table, BorderLayout.CENTER);
|
||||
return panel;
|
||||
}
|
||||
|
@ -89,33 +89,31 @@ public class ClosedPatternTableDialog extends DialogComponentProvider {
|
|||
}
|
||||
|
||||
private void addClipboardAction() {
|
||||
sendToClipboardAction =
|
||||
new DockingAction("Send Selected Sequences to Clipboard", TITLE, false) {
|
||||
sendToClipboardAction = new DockingAction("Send Selected Sequences to Clipboard", TITLE) {
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
List<ClosedPatternRowObject> rows =
|
||||
closedPatternTableModel.getLastSelectedObjects();
|
||||
for (ClosedPatternRowObject row : rows) {
|
||||
DittedBitSequence seq = new DittedBitSequence(row.getDittedString(), true);
|
||||
PatternInfoRowObject pattern =
|
||||
new PatternInfoRowObject(type, seq, cRegFilter);
|
||||
plugin.addPattern(pattern);
|
||||
}
|
||||
plugin.updateClipboard();
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
List<ClosedPatternRowObject> rows =
|
||||
closedPatternTableModel.getLastSelectedObjects();
|
||||
for (ClosedPatternRowObject row : rows) {
|
||||
DittedBitSequence seq = new DittedBitSequence(row.getDittedString(), true);
|
||||
PatternInfoRowObject pattern = new PatternInfoRowObject(type, seq, cRegFilter);
|
||||
plugin.addPattern(pattern);
|
||||
}
|
||||
plugin.updateClipboard();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAddToPopup(ActionContext context) {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean isAddToPopup(ActionContext context) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabledForContext(ActionContext context) {
|
||||
return (!closedPatternTableModel.getLastSelectedObjects().isEmpty());
|
||||
}
|
||||
@Override
|
||||
public boolean isEnabledForContext(ActionContext context) {
|
||||
return (!closedPatternTableModel.getLastSelectedObjects().isEmpty());
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
ImageIcon icon = ResourceManager.loadImage("images/2rightarrow.png");
|
||||
sendToClipboardAction.setPopupMenuData(
|
||||
new MenuData(new String[] { "Send Selected Sequences to Clipboard" }, icon));
|
||||
|
|
|
@ -62,7 +62,7 @@ public class PatternMiningAnalyzerProvider extends ByteSequenceAnalyzerProvider
|
|||
}
|
||||
|
||||
private void addMiningAction() {
|
||||
mineClosedPatternsAction = new DockingAction(MINE_PATTERNS_BUTTON_TEXT, title, false) {
|
||||
mineClosedPatternsAction = new DockingAction(MINE_PATTERNS_BUTTON_TEXT, title) {
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
List<ByteSequenceRowObject> lastSelectedObjects =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue