mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 12:00:04 +02:00
Help - Added a task to find unused help images; fixed showing in-memory
images in help
This commit is contained in:
parent
e8dcb3d0c4
commit
49436c44a9
12 changed files with 275 additions and 131 deletions
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package docking.help;
|
||||
|
||||
import java.awt.Image;
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.io.*;
|
||||
|
@ -25,7 +24,6 @@ import java.util.List;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JEditorPane;
|
||||
import javax.swing.event.HyperlinkEvent;
|
||||
import javax.swing.event.HyperlinkListener;
|
||||
|
@ -380,20 +378,10 @@ public class GHelpHTMLEditorKit extends HTMLEditorKit {
|
|||
*/
|
||||
private class GHelpImageView extends ImageView {
|
||||
|
||||
private Image myImage;
|
||||
|
||||
public GHelpImageView(Element elem) {
|
||||
super(elem);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Image getImage() {
|
||||
if (myImage != null) {
|
||||
return myImage;
|
||||
}
|
||||
return super.getImage();
|
||||
}
|
||||
|
||||
@Override
|
||||
public URL getImageURL() {
|
||||
|
||||
|
@ -419,10 +407,7 @@ public class GHelpHTMLEditorKit extends HTMLEditorKit {
|
|||
return null;
|
||||
}
|
||||
|
||||
ImageIcon icon = iconProvider.getIcon();
|
||||
myImage = icon.getImage();
|
||||
|
||||
URL url = iconProvider.getUrl();
|
||||
URL url = iconProvider.getOrCreateUrl();
|
||||
return url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue