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.
public class MyStatus implements Status, Serializable {
public class MyStatus implements Status, HTMLStatus, Serializable {
--
/**Implementation of FileSystem.HTMLStatus
* @since 1.93 */
public String annotateNameHTML (String name, java.util.Set files) {
StringBuffer sb = new StringBuffer (annotateName (name, files));
//XXX should use a regex
int idx = sb.indexOf ("("); //NOI18N
if (idx != -1) {
sb.insert(idx, "<font color='!List.selectionBackground'>"); //NOI18N
idx = sb.indexOf (")");
if (idx+1 < sb.length() -1) {
sb.insert (idx+1, "</font>"); //NOI18N
} else {
sb.append ("</font>"); //NOI18N
}
idx = sb.indexOf ("[");
sb.insert(idx, "<font color='!controlShadow'>"); //NOI18N
idx = sb.indexOf ("]");
return sb.toString();