-
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
Avoid implementations of ImageDescriptor.getImageData() #2907
Conversation
@Deprecated | ||
@Override | ||
public ImageData getImageData() { | ||
return getImageData(getURL(url), 100, 100); | ||
} |
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.
@Michael5601 FYI as this was a relevant point in our discussion at #2593. As before that change this implementation now just behaves as if getImageData(100)
is called and therefore as the default implementation in the super-class. It can therefore just be removed.
ImageDescriptor.getImageData() is deprecated and sub-classes are advised to stop re-implementing it and instead implement getImageData(int). The still existing implementations just replicate the default implementation and therefore can just be removed. Additionally implementation of ImageDescriptor.getMissingImageDescriptor() is simplified and ImageDescriptor implementations are cleaned-up.
32f5437
to
2ad2498
Compare
@@ -2,7 +2,7 @@ Manifest-Version: 1.0 | |||
Bundle-ManifestVersion: 2 | |||
Bundle-Name: %pluginName | |||
Bundle-SymbolicName: org.eclipse.jface;singleton:=true | |||
Bundle-Version: 3.36.100.qualifier | |||
Bundle-Version: 3.37.0.qualifier |
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.
ImageDescriptor.getImageData()
is deprecated and sub-classes are advised to stop re-implementing it and instead implementgetImageData(int)
. The still existing implementations just replicate the default implementation and therefore can just be removed.Additionally implementation of
ImageDescriptor.getMissingImageDescriptor()
is simplified andImageDescriptor
implementations are cleaned-up.