This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 248037
Collapse All | Expand All

(-)a/modules/tuxedo.project/src/com/sun/tools/tuxedo/project/ConfigurationFilesNodeFactory.java (-10 / +6 lines)
Lines 28-33 Link Here
28
import org.openide.filesystems.FileStateInvalidException;
28
import org.openide.filesystems.FileStateInvalidException;
29
import org.openide.filesystems.FileSystem;
29
import org.openide.filesystems.FileSystem;
30
import org.openide.filesystems.FileUtil;
30
import org.openide.filesystems.FileUtil;
31
import org.openide.filesystems.StatusDecorator;
31
import org.openide.loaders.DataObject;
32
import org.openide.loaders.DataObject;
32
import org.openide.loaders.DataObjectNotFoundException;
33
import org.openide.loaders.DataObjectNotFoundException;
33
import org.openide.nodes.AbstractNode;
34
import org.openide.nodes.AbstractNode;
Lines 359-374 Link Here
359
        if (files != null && files.iterator().hasNext()) {
360
        if (files != null && files.iterator().hasNext()) {
360
            try {
361
            try {
361
                FileObject fo = (FileObject) files.iterator().next();
362
                FileObject fo = (FileObject) files.iterator().next();
362
                FileSystem.Status stat = fo.getFileSystem().getStatus();
363
                StatusDecorator stat = fo.getFileSystem().getDecorator();
363
                if (stat instanceof FileSystem.HtmlStatus) {
364
                String annotated = stat.annotateNameHtml(htmlDisplayName, files);
364
                    FileSystem.HtmlStatus hstat = (FileSystem.HtmlStatus) stat;
365
                // Make sure the super string was really modified (XXX why?)
365
366
                if (!htmlDisplayName.equals(annotated)) {
366
                    String annotated = hstat.annotateNameHtml(htmlDisplayName, files);
367
                    result = annotated;
367
368
                    // Make sure the super string was really modified (XXX why?)
369
                    if (!htmlDisplayName.equals(annotated)) {
370
                        result = annotated;
371
                    }
372
                }
368
                }
373
            } catch (FileStateInvalidException e) {
369
            } catch (FileStateInvalidException e) {
374
                ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);
370
                ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);
(-)a/modules/tuxedo.project/src/com/sun/tools/tuxedo/project/DataFilesNodeFactory.java (-10 / +6 lines)
Lines 26-31 Link Here
26
import org.openide.filesystems.FileStateInvalidException;
26
import org.openide.filesystems.FileStateInvalidException;
27
import org.openide.filesystems.FileSystem;
27
import org.openide.filesystems.FileSystem;
28
import org.openide.filesystems.FileUtil;
28
import org.openide.filesystems.FileUtil;
29
import org.openide.filesystems.StatusDecorator;
29
import org.openide.loaders.DataObject;
30
import org.openide.loaders.DataObject;
30
import org.openide.loaders.DataObjectNotFoundException;
31
import org.openide.loaders.DataObjectNotFoundException;
31
import org.openide.nodes.AbstractNode;
32
import org.openide.nodes.AbstractNode;
Lines 357-372 Link Here
357
        if (files != null && files.iterator().hasNext()) {
358
        if (files != null && files.iterator().hasNext()) {
358
            try {
359
            try {
359
                FileObject fo = (FileObject) files.iterator().next();
360
                FileObject fo = (FileObject) files.iterator().next();
360
                FileSystem.Status stat = fo.getFileSystem().getStatus();
361
                StatusDecorator stat = fo.getFileSystem().getDecorator();
361
                if (stat instanceof FileSystem.HtmlStatus) {
362
                String annotated = stat.annotateNameHtml(htmlDisplayName, files);
362
                    FileSystem.HtmlStatus hstat = (FileSystem.HtmlStatus) stat;
363
                // Make sure the super string was really modified (XXX why?)
363
364
                if (!htmlDisplayName.equals(annotated)) {
364
                    String annotated = hstat.annotateNameHtml(htmlDisplayName, files);
365
                    result = annotated;
365
366
                    // Make sure the super string was really modified (XXX why?)
367
                    if (!htmlDisplayName.equals(annotated)) {
368
                        result = annotated;
369
                    }
370
                }
366
                }
371
            } catch (FileStateInvalidException e) {
367
            } catch (FileStateInvalidException e) {
372
                ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);
368
                ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);
(-)a/modules/tuxedo.project/src/com/sun/tools/tuxedo/project/MetadataInputFilesNodeFactory.java (-10 / +6 lines)
Lines 29-34 Link Here
29
import org.openide.filesystems.FileStateInvalidException;
29
import org.openide.filesystems.FileStateInvalidException;
30
import org.openide.filesystems.FileSystem;
30
import org.openide.filesystems.FileSystem;
31
import org.openide.filesystems.FileUtil;
31
import org.openide.filesystems.FileUtil;
32
import org.openide.filesystems.StatusDecorator;
32
import org.openide.loaders.DataObject;
33
import org.openide.loaders.DataObject;
33
import org.openide.loaders.DataObjectNotFoundException;
34
import org.openide.loaders.DataObjectNotFoundException;
34
import org.openide.nodes.AbstractNode;
35
import org.openide.nodes.AbstractNode;
Lines 362-377 Link Here
362
        if (files != null && files.iterator().hasNext()) {
363
        if (files != null && files.iterator().hasNext()) {
363
            try {
364
            try {
364
                FileObject fo = (FileObject) files.iterator().next();
365
                FileObject fo = (FileObject) files.iterator().next();
365
                FileSystem.Status stat = fo.getFileSystem().getStatus();
366
                StatusDecorator stat = fo.getFileSystem().getDecorator();
366
                if (stat instanceof FileSystem.HtmlStatus) {
367
                String annotated = stat.annotateNameHtml(htmlDisplayName, files);
367
                    FileSystem.HtmlStatus hstat = (FileSystem.HtmlStatus) stat;
368
                // Make sure the super string was really modified (XXX why?)
368
369
                if (!htmlDisplayName.equals(annotated)) {
369
                    String annotated = hstat.annotateNameHtml(htmlDisplayName, files);
370
                    result = annotated;
370
371
                    // Make sure the super string was really modified (XXX why?)
372
                    if (!htmlDisplayName.equals(annotated)) {
373
                        result = annotated;
374
                    }
375
                }
371
                }
376
            } catch (FileStateInvalidException e) {
372
            } catch (FileStateInvalidException e) {
377
                ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);
373
                ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);
(-)a/modules/tuxedo.project/src/com/sun/tools/tuxedo/project/server/TestsNodeFactory.java (-9 / +6 lines)
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);

Return to bug 248037