mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-6033 - Version Tracking - Fixed filter icon that was not updating
correctly
This commit is contained in:
parent
7b50970725
commit
e8c7f70cbd
4 changed files with 6 additions and 15 deletions
|
@ -89,7 +89,6 @@ icon.version.tracking.markup.status.dont.know = unknown.gif
|
|||
icon.version.tracking.markup.status.failed = edit-delete.png
|
||||
icon.version.tracking.markup.status.conflict = cache.png
|
||||
|
||||
icon.version.tracking.filter = view-filter.png
|
||||
icon.version.tracking.empty = EmptyIcon16.gif
|
||||
|
||||
icon.version.tracking.function.filter.all = function.png
|
||||
|
|
|
@ -734,7 +734,7 @@
|
|||
</P>
|
||||
|
||||
<P>
|
||||
The <img src="images/view-filter.png" border="1"/> button to the right of the
|
||||
The <img src="icon.version.tracking.unfiltered" border="1"/> button to the right of the
|
||||
primary text filter will show the ancillary filters that are
|
||||
available. You can apply an ancillary filter by removing the check mark from its
|
||||
box and pressing the <B>Apply</B> or <B>OK</b> button.
|
||||
|
|
|
@ -35,8 +35,6 @@ public abstract class AncillaryFilterDialogComponentProvider<T>
|
|||
protected final VTController controller;
|
||||
private final FilterDialogModel<T> dialogModel;
|
||||
|
||||
private Boolean isFiltered;
|
||||
|
||||
protected AncillaryFilterDialogComponentProvider(VTController controller, String title,
|
||||
FilterDialogModel<T> dialogModel) {
|
||||
super(title);
|
||||
|
@ -58,14 +56,10 @@ public abstract class AncillaryFilterDialogComponentProvider<T>
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns true if any of the filters managed by this dialog are not in their default state.
|
||||
* {@return true if any of the filters managed by this dialog are not in their default state}
|
||||
*/
|
||||
public boolean isFiltered() {
|
||||
if (isFiltered != null) {
|
||||
return isFiltered;
|
||||
}
|
||||
|
||||
isFiltered = Boolean.FALSE;
|
||||
boolean isFiltered = false;
|
||||
for (Filter<T> filter : ancillaryFilters) {
|
||||
FilterShortcutState state = filter.getFilterShortcutState();
|
||||
if (state != FilterShortcutState.ALWAYS_PASSES) {
|
||||
|
@ -88,7 +82,6 @@ public abstract class AncillaryFilterDialogComponentProvider<T>
|
|||
protected void dialogShown() {
|
||||
dialogModel.dialogVisibilityChanged(true);
|
||||
originalState = getCurrentState();
|
||||
isFiltered = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -78,7 +78,6 @@ public class VTMarkupItemsTableProvider extends ComponentProviderAdapter
|
|||
private static final Icon SHOW_LISTINGS_ICON =
|
||||
new GIcon("icon.version.tracking.action.show.listings");
|
||||
|
||||
private static final Icon FILTER_ICON = new GIcon("icon.version.tracking.filter");
|
||||
private static final String SHOW_COMPARE_ACTION_GROUP = "A9_ShowCompare"; // "A9_" forces to right of other dual view actions in toolbar.
|
||||
|
||||
private final VTController controller;
|
||||
|
@ -420,7 +419,7 @@ public class VTMarkupItemsTableProvider extends ComponentProviderAdapter
|
|||
nameFilterPanel.getAccessibleContext().setAccessibleName("Name Filter");
|
||||
parentPanel.add(nameFilterPanel, BorderLayout.CENTER);
|
||||
|
||||
ancillaryFilterButton = new JButton(FILTER_ICON);
|
||||
ancillaryFilterButton = new JButton(UNFILTERED_ICON);
|
||||
ancillaryFilterButton.getAccessibleContext().setAccessibleName("Ancillary");
|
||||
ancillaryFilterButton
|
||||
.addActionListener(e -> tool.showDialog(ancillaryFilterDialog, component));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue