Skip to content

Commit

Permalink
Refactor names of SVGRasterizer and ISVGRasterizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael5601 committed Dec 11, 2024
1 parent 284f5da commit 4b0ce82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTException;
import org.eclipse.swt.graphics.Device;
import org.eclipse.swt.graphics.ISVGRasterizer;
import org.eclipse.swt.graphics.SVGRasterizer;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.ImageDataProvider;
Expand All @@ -62,7 +62,7 @@ public URLImageFileNameProvider(String url) {
public String getImagePath(int zoom) {
URL tempURL = getURL(url);
if (tempURL != null) {
ISVGRasterizer rasterizer = SVGRasterizerRegistry.getRasterizer();
SVGRasterizer rasterizer = SVGRasterizerRegistry.getRasterizer();
if (rasterizer != null) {
try (InputStream in = getStream(tempURL)) {
if (SVGUtil.isSVGFile(in)) {
Expand Down Expand Up @@ -152,7 +152,7 @@ public ImageData getImageData(int zoom) {
private static ImageData getImageData(String url, int zoom) {
URL tempURL = getURL(url);
if (tempURL != null) {
ISVGRasterizer rasterizer = SVGRasterizerRegistry.getRasterizer();
SVGRasterizer rasterizer = SVGRasterizerRegistry.getRasterizer();
if (rasterizer != null) {
try {
try (InputStream in = getStream(tempURL)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.graphics.Transform;
import org.eclipse.swt.svg.SVGRasterizer;
import org.eclipse.swt.svg.JSVGRasterizer;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Monitor;
Expand Down Expand Up @@ -568,7 +568,7 @@ public static Workbench getInstance() {
*/
public static int createAndRunWorkbench(final Display display, final WorkbenchAdvisor advisor) {
final int[] returnCode = new int[1];
SVGRasterizer.intializeSVGRasterizer();
JSVGRasterizer.intializeJSVGRasterizer();
Realm.runWithDefault(DisplayRealm.getRealm(display), () -> {
boolean showProgress = PrefUtil.getAPIPreferenceStore()
.getBoolean(IWorkbenchPreferenceConstants.SHOW_PROGRESS_ON_STARTUP);
Expand Down

0 comments on commit 4b0ce82

Please sign in to comment.