mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-09 22:17:55 -05:00
Fix additional pluralization issues
This commit is contained in:
@@ -209,8 +209,10 @@ public class ScalarSearchProvider extends ComponentProviderAdapter {
|
|||||||
|
|
||||||
filter.setSecondaryFilter(new ScalarTableSecondaryFilter());
|
filter.setSecondaryFilter(new ScalarTableSecondaryFilter());
|
||||||
|
|
||||||
scalarModel.addTableModelListener(
|
scalarModel.addTableModelListener(e -> {
|
||||||
e -> setSubTitle(primarySubTitle + ' ' + scalarModel.getRowCount() + " items"));
|
int rowCount = scalarModel.getRowCount();
|
||||||
|
setSubTitle(primarySubTitle + ' ' + rowCount + " item" + (rowCount == 1 ? "" : "s"));
|
||||||
|
});
|
||||||
|
|
||||||
scalarTable.installNavigation(tool);
|
scalarTable.installNavigation(tool);
|
||||||
|
|
||||||
|
|||||||
@@ -253,7 +253,9 @@ public class DWARFImporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
monitor.setIndeterminate(true);
|
monitor.setIndeterminate(true);
|
||||||
monitor.setMessage("Sorting " + sourceInfo.size() + " entries");
|
int sourceInfoSize = sourceInfo.size();
|
||||||
|
monitor.setMessage("Sorting " + sourceInfoSize + " entr" +
|
||||||
|
(sourceInfoSize == 1 ? "y" : "ies"));
|
||||||
sourceInfo.sort((i, j) -> Long.compareUnsigned(i.address(), j.address()));
|
sourceInfo.sort((i, j) -> Long.compareUnsigned(i.address(), j.address()));
|
||||||
monitor.setIndeterminate(false);
|
monitor.setIndeterminate(false);
|
||||||
monitor.initialize(sourceInfo.size(), "DWARF: Applying Source Map Info");
|
monitor.initialize(sourceInfo.size(), "DWARF: Applying Source Map Info");
|
||||||
|
|||||||
@@ -69,9 +69,12 @@ public class GFileSystemExtractAllTask extends AbstractFileExtractorTask {
|
|||||||
catch (UnsupportedOperationException | IOException e) {
|
catch (UnsupportedOperationException | IOException e) {
|
||||||
Msg.showError(this, parentComponent, "Error extracting file", e.getMessage());
|
Msg.showError(this, parentComponent, "Error extracting file", e.getMessage());
|
||||||
}
|
}
|
||||||
Msg.info(this,
|
long files = getTotalFilesExportedCount();
|
||||||
"Exported " + getTotalFilesExportedCount() + " files, " + getTotalDirsExportedCount() +
|
long dirs = getTotalDirsExportedCount();
|
||||||
" directories, " + getTotalBytesExportedCount() + " bytes");
|
long bytes = getTotalBytesExportedCount();
|
||||||
|
Msg.info(this, "Exported " + files + " file" + (files == 1 ? "" : "s") + ", " + dirs +
|
||||||
|
" director" + (dirs == 1 ? "y" : "ies") + ", " + bytes + " byte" +
|
||||||
|
(bytes == 1 ? "" : "s"));
|
||||||
|
|
||||||
long elapsed = System.currentTimeMillis() - start_ts;
|
long elapsed = System.currentTimeMillis() - start_ts;
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ public class TaintLabelsTableProvider extends ComponentProviderAdapter {
|
|||||||
int unfilteredCount = model.getUnfilteredRowCount();
|
int unfilteredCount = model.getUnfilteredRowCount();
|
||||||
model.getDataFrame().dumpTableToDebug();
|
model.getDataFrame().dumpTableToDebug();
|
||||||
|
|
||||||
setSubTitle("" + rowCount + " items" +
|
setSubTitle("" + rowCount + " item" + (rowCount == 1 ? "" : "s") +
|
||||||
(rowCount != unfilteredCount ? " (of " + unfilteredCount + ")" : ""));
|
(rowCount != unfilteredCount ? " (of " + unfilteredCount + ")" : ""));
|
||||||
filterTable.repaint();
|
filterTable.repaint();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -92,7 +92,8 @@ public class UserManager {
|
|||||||
try {
|
try {
|
||||||
readUserListIfNeeded();
|
readUserListIfNeeded();
|
||||||
clearExpiredPasswords();
|
clearExpiredPasswords();
|
||||||
log.info("User file contains " + userList.size() + " entries");
|
int size = userList.size();
|
||||||
|
log.info("User file contains " + size + " entr" + (size == 1 ? "y" : "ies"));
|
||||||
}
|
}
|
||||||
catch (FileNotFoundException e) {
|
catch (FileNotFoundException e) {
|
||||||
log.error("Existing User file not found.");
|
log.error("Existing User file not found.");
|
||||||
|
|||||||
Reference in New Issue
Block a user