Lines 43-48
Link Here
|
43 |
import org.openide.filesystems.FileStateInvalidException; |
43 |
import org.openide.filesystems.FileStateInvalidException; |
44 |
import org.openide.filesystems.FileSystem; |
44 |
import org.openide.filesystems.FileSystem; |
45 |
import org.openide.filesystems.FileUtil; |
45 |
import org.openide.filesystems.FileUtil; |
|
|
46 |
import org.openide.filesystems.StatusDecorator; |
46 |
import org.openide.loaders.DataObject; |
47 |
import org.openide.loaders.DataObject; |
47 |
import org.openide.loaders.DataObjectNotFoundException; |
48 |
import org.openide.loaders.DataObjectNotFoundException; |
48 |
import org.openide.nodes.AbstractNode; |
49 |
import org.openide.nodes.AbstractNode; |
Lines 526-541
Link Here
|
526 |
if (files != null && files.iterator().hasNext()) { |
527 |
if (files != null && files.iterator().hasNext()) { |
527 |
try { |
528 |
try { |
528 |
FileObject fo = (FileObject) files.iterator().next(); |
529 |
FileObject fo = (FileObject) files.iterator().next(); |
529 |
FileSystem.Status stat = fo.getFileSystem().getStatus(); |
530 |
StatusDecorator stat = fo.getFileSystem().getDecorator(); |
530 |
if (stat instanceof FileSystem.HtmlStatus) { |
531 |
String annotated = stat.annotateNameHtml(htmlDisplayName, files); |
531 |
FileSystem.HtmlStatus hstat = (FileSystem.HtmlStatus) stat; |
|
|
532 |
|
532 |
|
533 |
String annotated = hstat.annotateNameHtml(htmlDisplayName, files); |
533 |
// Make sure the super string was really modified (XXX why?) |
534 |
|
534 |
if (!htmlDisplayName.equals(annotated)) { |
535 |
// Make sure the super string was really modified (XXX why?) |
535 |
result = annotated; |
536 |
if (!htmlDisplayName.equals(annotated)) { |
|
|
537 |
result = annotated; |
538 |
} |
539 |
} |
536 |
} |
540 |
} catch (FileStateInvalidException e) { |
537 |
} catch (FileStateInvalidException e) { |
541 |
ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e); |
538 |
ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e); |