NetBeans 8.2 Annotations
Andreas Stefik <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CABiHOJnTwFT24HBqF-Z6N22gZ-derhtfXjF22FNEYozsus3mng@mail.gmail.com> |
Folks,
I'm porting an application from NetBeans 8.0.2 to 8.2 (finally) and am
trying to manage a few of the changes that broke backward compatibility. In
8.0.2, if you had an icon (e.g., like in a logical view provider), you
could annotate it with git annotations or something else like so:
@Override
public Image getIcon(int type) {
Image icon =
ImageUtilities.loadImage(QuorumProject.QUORUM_PROJECT_ICON);
if(fileObject != null) {
try {
icon =
fileObject.getFileSystem().getStatus().annotateIcon(icon, type,
Collections.singleton(fileObject));
} catch (FileStateInvalidException e) {
// no fs, do nothing
}
}
return icon;
}
However, in 8.2, getStatus is a compiler error, it appears. I've dug around
and am aware the methods were removed, but I can't seem to find any
documentation on what the new way to tackle these things is. Does anyone
know?
Stefik