mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-08 21:47:59 -05:00
Fix additional pluralization issues
This commit is contained in:
@@ -209,8 +209,10 @@ public class ScalarSearchProvider extends ComponentProviderAdapter {
|
||||
|
||||
filter.setSecondaryFilter(new ScalarTableSecondaryFilter());
|
||||
|
||||
scalarModel.addTableModelListener(
|
||||
e -> setSubTitle(primarySubTitle + ' ' + scalarModel.getRowCount() + " items"));
|
||||
scalarModel.addTableModelListener(e -> {
|
||||
int rowCount = scalarModel.getRowCount();
|
||||
setSubTitle(primarySubTitle + ' ' + rowCount + " item" + (rowCount == 1 ? "" : "s"));
|
||||
});
|
||||
|
||||
scalarTable.installNavigation(tool);
|
||||
|
||||
|
||||
@@ -253,7 +253,9 @@ public class DWARFImporter {
|
||||
}
|
||||
|
||||
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()));
|
||||
monitor.setIndeterminate(false);
|
||||
monitor.initialize(sourceInfo.size(), "DWARF: Applying Source Map Info");
|
||||
|
||||
@@ -69,9 +69,12 @@ public class GFileSystemExtractAllTask extends AbstractFileExtractorTask {
|
||||
catch (UnsupportedOperationException | IOException e) {
|
||||
Msg.showError(this, parentComponent, "Error extracting file", e.getMessage());
|
||||
}
|
||||
Msg.info(this,
|
||||
"Exported " + getTotalFilesExportedCount() + " files, " + getTotalDirsExportedCount() +
|
||||
" directories, " + getTotalBytesExportedCount() + " bytes");
|
||||
long files = getTotalFilesExportedCount();
|
||||
long dirs = getTotalDirsExportedCount();
|
||||
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;
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ public class TaintLabelsTableProvider extends ComponentProviderAdapter {
|
||||
int unfilteredCount = model.getUnfilteredRowCount();
|
||||
model.getDataFrame().dumpTableToDebug();
|
||||
|
||||
setSubTitle("" + rowCount + " items" +
|
||||
setSubTitle("" + rowCount + " item" + (rowCount == 1 ? "" : "s") +
|
||||
(rowCount != unfilteredCount ? " (of " + unfilteredCount + ")" : ""));
|
||||
filterTable.repaint();
|
||||
});
|
||||
|
||||
@@ -92,7 +92,8 @@ public class UserManager {
|
||||
try {
|
||||
readUserListIfNeeded();
|
||||
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) {
|
||||
log.error("Existing User file not found.");
|
||||
|
||||
Reference in New Issue
Block a user