Merge remote-tracking branch 'origin/GP-4779_ghidragon_fixed_reference_dialog_resets_address_space_combo' into patch

This commit is contained in:
Ryan Kurtz 2024-07-18 14:51:24 -04:00
commit a9d2515610
5 changed files with 16 additions and 16 deletions

View File

@ -235,7 +235,7 @@ public abstract class AbstractEditFunctionSignatureDialog extends DialogComponen
private void installInlineWidget(JPanel parentPanel) {
inlineCheckBox = new GCheckBox("Inline");
inlineCheckBox.addChangeListener(e -> {
inlineCheckBox.addItemListener(e -> {
if (inlineCheckBox.isSelected() && callFixupComboBox != null) {
callFixupComboBox.setSelectedItem(NONE_CHOICE);
}

View File

@ -103,7 +103,7 @@ class EditMemoryReferencePanel extends EditReferencePanel {
.setAccessibleDescription(
"Selecting this checkbox allows entering a refernce offset");
offsetCheckbox.setHorizontalAlignment(SwingConstants.RIGHT);
offsetCheckbox.addChangeListener(e -> enableOffsetField(offsetCheckbox.isSelected()));
offsetCheckbox.addItemListener(e -> enableOffsetField(offsetCheckbox.isSelected()));
offsetField = new JTextField();
offsetField.getAccessibleContext().setAccessibleName("Enter Offset");
@ -123,7 +123,7 @@ class EditMemoryReferencePanel extends EditReferencePanel {
includeOtherOverlaysCheckbox = new JCheckBox("Include OTHER overlay spaces",
Boolean.getBoolean(Preferences.getProperty(INCLUDE_OTHER_OVERLAY_PREFERENCE, "false")));
includeOtherOverlaysCheckbox.addChangeListener(e -> refreshToAddressField());
includeOtherOverlaysCheckbox.addItemListener(e -> refreshToAddressField());
refTypes = new GhidraComboBox<>(MEM_REF_TYPES);
refTypes.getAccessibleContext().setAccessibleName("Memory Ref Types");

View File

@ -416,7 +416,7 @@ public class AddressInput extends JPanel implements FocusableEditor {
remove(combo);
comboAdded = false;
}
invalidate();
revalidate();
}
@Override

View File

@ -838,7 +838,7 @@ public class ApplyMarkupPropertyEditor implements OptionsEditor {
private JCheckBox createCheckBox(String optionName) {
JCheckBox applyCheckBox = new GCheckBox(optionName);
applyCheckBox.addChangeListener(e -> changesMade(true));
applyCheckBox.addItemListener(e -> changesMade(true));
return applyCheckBox;
}

View File

@ -376,7 +376,7 @@ public class ConditionTestPanel extends JPanel {
label = new GDLabel(test.getName());
add(label);
label.setToolTipText(test.getDescription());
checkbox.addChangeListener(e -> {
checkbox.addItemListener(e -> {
conditionTestModel.setEnabled(test, checkbox.isSelected());
label.setEnabled(checkbox.isSelected());
});