Skip to content

Commit

Permalink
Fix build due to missing case changes in classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris2011 committed Dec 26, 2024
1 parent 06b519f commit c637a7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
@NavigatorPanel.Registrations({
@NavigatorPanel.Registration(mimeType = "image/svg+xml", displayName = "#Navigator_DisplayName")
})
public class SvgNavigatorPanel implements NavigatorPanel {
public class SVGNavigatorPanel implements NavigatorPanel {

private static final Logger LOG = Logger.getLogger(SVGViewerElement.class.getName());

/**
* holds UI of this panel
*/
private SvgPreviewPanel panelUI;
private SVGPreviewPanel panelUI;
/**
* template for finding data in given context. Object used as example,
* replace with your own data source, for example JavaDataObject etc
Expand All @@ -71,16 +71,16 @@ public class SvgNavigatorPanel implements NavigatorPanel {
private FileChangeListener fileChangeListener;
private long lastSaveTime = -1;
private DataObject currentDataObject;
private static final RequestProcessor WORKER = new RequestProcessor(SvgNavigatorPanel.class.getName());
private static final RequestProcessor WORKER = new RequestProcessor(SVGNavigatorPanel.class.getName());

@Override
public String getDisplayName() {
return NbBundle.getMessage(SvgNavigatorPanel.class, "Navigator_DisplayName");
return NbBundle.getMessage(SVGNavigatorPanel.class, "Navigator_DisplayName");
}

@Override
public String getDisplayHint() {
return NbBundle.getMessage(SvgNavigatorPanel.class, "Navigator_DisplayHint");
return NbBundle.getMessage(SVGNavigatorPanel.class, "Navigator_DisplayHint");
}

@Override
Expand All @@ -89,7 +89,7 @@ public JComponent getComponent() {
lastSaveTime = System.currentTimeMillis();
}
if (panelUI == null) {
panelUI = new SvgPreviewPanel();
panelUI = new SVGPreviewPanel();
}
return panelUI;
}
Expand Down Expand Up @@ -200,7 +200,7 @@ public void fileChanged(final FileEvent fe) {
currentDataObject = DataObject.find(fe.getFile());
setNewContent(currentDataObject);
} catch (DataObjectNotFoundException ex) {
Logger.getLogger(SvgNavigatorPanel.class.getName()).info(NbBundle.getMessage(SvgNavigatorPanel.class, "ERR_DataObject"));
Logger.getLogger(SVGNavigatorPanel.class.getName()).info(NbBundle.getMessage(SVGNavigatorPanel.class, "ERR_DataObject"));
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*
* @author christian lenz
*/
public class SvgPreviewPanel extends JPanel {
public class SVGPreviewPanel extends JPanel {

private SVGDocument svgDocument;
private final int stringGapSize = 10;
Expand Down Expand Up @@ -86,7 +86,7 @@ protected void paintComponent(Graphics g) {
} else {
g.setColor(Color.RED);
FontMetrics fm = this.getFontMetrics(g.getFont());
String errMessage = NbBundle.getMessage(SvgPreviewPanel.class, "ERR_Thumbnail");
String errMessage = NbBundle.getMessage(SVGPreviewPanel.class, "ERR_Thumbnail");
int stringWidth = fm.stringWidth(errMessage);
g.drawString(errMessage, (this.getWidth() - stringWidth) / 2, this.getHeight() / 2);
}
Expand Down

0 comments on commit c637a7f

Please sign in to comment.