-
Notifications
You must be signed in to change notification settings - Fork 210
Avoid implementations of ImageDescriptor.getImageData() #2907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,12 +130,6 @@ | |
return ((URLImageDescriptor) o).url.equals(this.url); | ||
} | ||
|
||
@Deprecated | ||
@Override | ||
public ImageData getImageData() { | ||
return getImageData(getURL(url), 100, 100); | ||
} | ||
Comment on lines
-133
to
-137
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Michael5601 FYI as this was a relevant point in our discussion at #2593. As before that change this implementation now just behaves as if |
||
|
||
@Override | ||
public ImageData getImageData(int zoom) { | ||
return getImageData(url, zoom); | ||
|
@@ -187,7 +181,7 @@ | |
return result; | ||
} | ||
|
||
@SuppressWarnings("restriction") | ||
Check warning on line 184 in bundles/org.eclipse.jface/src/org/eclipse/jface/resource/URLImageDescriptor.java
|
||
private static ImageData loadImageFromStream(InputStream stream, int fileZoom, int targetZoom) { | ||
return NativeImageLoader.load(new ElementAtZoom<>(stream, fileZoom), new ImageLoader(), targetZoom).get(0) | ||
.element(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow API-tools considers the removal of the (deprecated) overriden method from
CompositeImageDescriptor
as API addition and demands to minor version bump.