mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GT-2763 - Tables - Added the ability to turn off sorting on tables
This commit is contained in:
@@ -795,7 +795,7 @@ public class VTFunctionAssociationProvider extends ComponentProviderAdapter
|
||||
private void getTableFilterString(String tableName, ThreadedTableModel<?, ?> model,
|
||||
StringBuffer buffy) {
|
||||
int filteredCount = model.getRowCount();
|
||||
int unfilteredCount = model.getUnfilteredCount();
|
||||
int unfilteredCount = model.getUnfilteredRowCount();
|
||||
|
||||
buffy.append(tableName).append(" - ").append(filteredCount).append(" functions");
|
||||
if (filteredCount != unfilteredCount) {
|
||||
|
||||
@@ -263,7 +263,7 @@ public class VTImpliedMatchesTableProvider extends ComponentProviderAdapter
|
||||
|
||||
impliedMatchTableModel.addTableModelListener(e -> {
|
||||
int filteredCount = impliedMatchTableModel.getRowCount();
|
||||
int unfilteredCount = impliedMatchTableModel.getUnfilteredCount();
|
||||
int unfilteredCount = impliedMatchTableModel.getUnfilteredRowCount();
|
||||
|
||||
String sessionName = controller.getVersionTrackingSessionName();
|
||||
StringBuffer buffy = new StringBuffer();
|
||||
|
||||
@@ -321,14 +321,14 @@ public class VTMarkupItemsTableProvider extends ComponentProviderAdapter
|
||||
markupItemsTableModel = new VTMarkupItemsTableModel(controller);
|
||||
markupItemsTableModel.addTableModelListener(e -> {
|
||||
int filteredCount = markupItemsTableModel.getRowCount();
|
||||
int unfilteredCount = markupItemsTableModel.getUnfilteredCount();
|
||||
int unfilteredCount = markupItemsTableModel.getUnfilteredRowCount();
|
||||
|
||||
String sessionName = controller.getVersionTrackingSessionName();
|
||||
StringBuffer buffy = new StringBuffer();
|
||||
buffy.append("[Session: ").append(sessionName).append("] ");
|
||||
buffy.append('-').append(markupItemsTableModel.getRowCount()).append(" markup items");
|
||||
if (filteredCount != unfilteredCount) {
|
||||
buffy.append(" (of ").append(markupItemsTableModel.getUnfilteredCount()).append(
|
||||
buffy.append(" (of ").append(markupItemsTableModel.getUnfilteredRowCount()).append(
|
||||
')');
|
||||
}
|
||||
|
||||
@@ -848,7 +848,7 @@ public class VTMarkupItemsTableProvider extends ComponentProviderAdapter
|
||||
|
||||
if (filtered) {
|
||||
int filteredCount = markupItemsTableModel.getRowCount();
|
||||
int unfilteredCount = markupItemsTableModel.getUnfilteredCount();
|
||||
int unfilteredCount = markupItemsTableModel.getUnfilteredRowCount();
|
||||
int filteredOutCount = unfilteredCount - filteredCount;
|
||||
ancillaryFilterButton.setToolTipText(
|
||||
"More Filters - " + filteredOutCount + " item(s) hidden");
|
||||
|
||||
@@ -181,7 +181,7 @@ public class VTMatchTableProvider extends ComponentProviderAdapter
|
||||
|
||||
if (filtered) {
|
||||
int filteredCount = matchesTableModel.getRowCount();
|
||||
int unfilteredCount = matchesTableModel.getUnfilteredCount();
|
||||
int unfilteredCount = matchesTableModel.getUnfilteredRowCount();
|
||||
int filteredOutCount = unfilteredCount - filteredCount;
|
||||
ancillaryFilterButton.setToolTipText(
|
||||
"More Filters - " + filteredOutCount + " item(s) hidden");
|
||||
@@ -231,7 +231,7 @@ public class VTMatchTableProvider extends ComponentProviderAdapter
|
||||
matchesTableModel = new VTMatchTableModel(controller);
|
||||
matchesTableModel.addTableModelListener(e -> {
|
||||
int filteredCount = matchesTableModel.getRowCount();
|
||||
int unfilteredCount = matchesTableModel.getUnfilteredCount();
|
||||
int unfilteredCount = matchesTableModel.getUnfilteredRowCount();
|
||||
|
||||
String sessionName = controller.getVersionTrackingSessionName();
|
||||
StringBuffer buffy = new StringBuffer();
|
||||
|
||||
Reference in New Issue
Block a user