mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-4296 - Fixed screen reader support of tooltips using html
This commit is contained in:
parent
dffb5fd859
commit
0b0356528d
43 changed files with 349 additions and 342 deletions
|
@ -54,9 +54,9 @@ public class ProjectDataTablePanel extends JPanel {
|
|||
public Set<DomainFile> filesPendingSelection;
|
||||
|
||||
private GHtmlLabel capacityExceededText =
|
||||
new GHtmlLabel("<HTML><CENTER><I>Table view disabled for very large projects, or<BR>" +
|
||||
new GHtmlLabel("<html><CENTER><I>Table view disabled for very large projects, or<BR>" +
|
||||
"if an older project/repository filesystem is in use.<BR>" +
|
||||
"View will remain disabled until project is closed.</I></CENTER></HTML>");
|
||||
"View will remain disabled until project is closed.</I></CENTER></html>");
|
||||
|
||||
private GGlassPanePainter painter = new TableGlassPanePainter();
|
||||
|
||||
|
@ -95,8 +95,9 @@ public class ProjectDataTablePanel extends JPanel {
|
|||
checkOpen(e);
|
||||
}
|
||||
});
|
||||
gTable.getSelectionModel().addListSelectionListener(
|
||||
e -> plugin.getTool().contextChanged(null));
|
||||
gTable.getSelectionModel()
|
||||
.addListSelectionListener(
|
||||
e -> plugin.getTool().contextChanged(null));
|
||||
gTable.setDefaultRenderer(Date.class, new DateCellRenderer());
|
||||
gTable.setDefaultRenderer(DomainFileType.class, new TypeCellRenderer());
|
||||
|
||||
|
@ -275,7 +276,7 @@ public class ProjectDataTablePanel extends JPanel {
|
|||
|
||||
//==================================================================================================
|
||||
// Inner Classes
|
||||
//==================================================================================================
|
||||
//==================================================================================================
|
||||
|
||||
private class ProjectDataTableDomainFolderChangeListener implements DomainFolderChangeListener {
|
||||
|
||||
|
|
|
@ -89,17 +89,17 @@ public class ProjectDataDeleteAction extends FrontendProjectTreeAction {
|
|||
if (fileCount == 1) {
|
||||
if (!selectedFiles.isEmpty()) {
|
||||
DomainFile file = CollectionUtils.any(selectedFiles);
|
||||
return "<HTML>Are you sure you want to <B><U>permanently</U></B> delete \"" +
|
||||
return "<html>Are you sure you want to <B><U>permanently</U></B> delete \"" +
|
||||
HTMLUtilities.escapeHTML(file.getName()) + "\"?";
|
||||
}
|
||||
|
||||
// only folders are selected, but they contain files
|
||||
return "<HTML>Are you sure you want to <B><U>permanently</U></B> delete the " +
|
||||
return "<html>Are you sure you want to <B><U>permanently</U></B> delete the " +
|
||||
" selected files and folders?";
|
||||
}
|
||||
|
||||
// multiple files selected
|
||||
return "<HTML>Are you sure you want to <B><U>permanently</U></B> delete the " + fileCount +
|
||||
return "<html>Are you sure you want to <B><U>permanently</U></B> delete the " + fileCount +
|
||||
" selected files?";
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ class PluginDetailsPanel extends AbstractDetailsPanel {
|
|||
List<PluginDescription> dependencies = model.getDependencies(descriptor);
|
||||
Collections.sort(dependencies, (pd1, pd2) -> pd1.getName().compareTo(pd2.getName()));
|
||||
|
||||
StringBuilder buffer = new StringBuilder("<HTML>");
|
||||
StringBuilder buffer = new StringBuilder("<html>");
|
||||
|
||||
buffer.append("<TABLE cellpadding=2>");
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ class ExtensionDetailsPanel extends AbstractDetailsPanel {
|
|||
createFieldAttributes();
|
||||
createMainPanel();
|
||||
|
||||
// Any time the table is reloaded or a new selection is made, we want to reload this
|
||||
// Any time the table is reloaded or a new selection is made, we want to reload this
|
||||
// panel. This ensures we are always viewing data for the currently-selected item.
|
||||
tablePanel.getTableModel().addThreadedTableModelListener(new ThreadedTableModelListener() {
|
||||
|
||||
|
@ -94,7 +94,7 @@ class ExtensionDetailsPanel extends AbstractDetailsPanel {
|
|||
return;
|
||||
}
|
||||
|
||||
StringBuilder buffer = new StringBuilder("<HTML>");
|
||||
StringBuilder buffer = new StringBuilder("<html>");
|
||||
buffer.append("<TABLE cellpadding=2>");
|
||||
|
||||
insertRowTitle(buffer, "Name");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue