private void attachStatusListener() {
try {
final FileObject fileObject = getFile();
FileSystem fs = fileObject.getFileSystem();
FileStatusListener l = FileUtil.weakFileStatusListener(new FileStatusListener() {
public void annotationChanged(FileStatusEvent ev) {
if (ev.hasChanged(fileObject)) {
if (ev.isNameChange()) {
fireDisplayNameChange(null, null);
}