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 29466
Collapse All | Expand All

(-)javacvs/src/org/netbeans/modules/javacvs/JavaCvsFileSystem.java (-2 / +28 lines)
Line 724 Link Here
724
    public class MyStatus implements Status, Serializable {
724
    public class MyStatus implements Status, HTMLStatus, Serializable {
725
--
Line 801 Link Here
801
        /**Implementation of FileSystem.HTMLStatus 
802
         * @since 1.93 */
803
        public String annotateNameHTML (String name, java.util.Set files) {
804
            StringBuffer sb = new StringBuffer (annotateName (name, files));
805
            //XXX should use a regex
806
            int idx = sb.indexOf ("("); //NOI18N
807
            if (idx != -1) {
808
                sb.insert(idx, "<font color='!List.selectionBackground'>"); //NOI18N
809
                idx = sb.indexOf (")");
810
                if (idx+1 < sb.length() -1) {
811
                    sb.insert (idx+1, "</font>"); //NOI18N
812
                } else {
813
                    sb.append ("</font>"); //NOI18N
814
                }
815
            }
816
            idx = sb.indexOf ("[");
817
            if (idx != -1) {
818
                sb.insert(idx, "<font color='!controlShadow'>"); //NOI18N
819
                idx = sb.indexOf ("]");
820
                if (idx+1 < sb.length() -1) {
821
                    sb.insert (idx+1, "</font>"); //NOI18N
822
                } else {
823
                    sb.append ("</font>"); //NOI18N
824
                }
825
            }
826
            return sb.toString();
827
        }

Return to bug 29466