@Override public String getHtmlDisplayName() { // if (Kenai.getDefault().getUrl().toString().equals(kenaiInstance.getUrl())) { // return "<b>" + getDisplayName() + "</b>"; // NOI18N // } return super.getHtmlDisplayName(); }
@Override public String getHtmlDisplayName() { if (call != null) { return call.getHtmlDisplayName(); } return super.getHtmlDisplayName(); } @Override
public @Override String getHtmlDisplayName() { try { String result = file.getFileSystem().getDecorator().annotateNameHtml ( super.getDisplayName(), files); //Make sure the super string was really modified if (result != null && !super.getDisplayName().equals(result)) { return result; } } catch (FileStateInvalidException e) { Exceptions.printStackTrace(e); } return super.getHtmlDisplayName(); }
@Override public String getHtmlDisplayName() { String htmlName = null; if (null != task) { if (task.isActive()) { htmlName = "<b>" + task.getTaskName() + "</b>"; } else { htmlName = task.getTaskName(); } } else { htmlName = super.getHtmlDisplayName(); } return htmlName; }
@Override public String getHtmlDisplayName() { if (node.getState() == DependencyNode.OMITTED_FOR_DUPLICATE) { return "<html><s>" + getDisplayName() + "</s></html>"; } if (node.getState() == DependencyNode.OMITTED_FOR_CONFLICT) { return "<html><font color=\"!nb.errorForeground\"><s>" + getDisplayName() + "</s></font></html>"; } return super.getHtmlDisplayName(); //To change body of generated methods, choose Tools | Templates. }
public String getHtmlDisplayName() { String name = super.getHtmlDisplayName(); if (isValid()) { if (decorator != null) { if (name == null) { name = getDisplayName(); } name = decorator.getHtmlDisplayName(name, this); } } else { return "<s>" + name == null ? getDisplayName() : name + "</s>"; } return name; }
/** Get a display name formatted using the limited HTML subset supported * by <code>HtmlRenderer</code>. If the underlying * <code>FileSystem.Status</code> is an instance of HmlStatus, * this method will return non-null if status information is added. * * @return a string containing compliant HTML markup or null * @see org.openide.awt.HtmlRenderer * @see org.openide.nodes.Node#getHtmlDisplayName * @since 4.13 */ public String getHtmlDisplayName() { try { FileSystem.Status stat = obj.getPrimaryFile().getFileSystem().getStatus(); if (stat instanceof HtmlStatus) { HtmlStatus hstat = (HtmlStatus) stat; String result = hstat.annotateNameHtml ( super.getDisplayName(), new LazyFilesSet()); //Make sure the super string was really modified if (!super.getDisplayName().equals(result)) { return result; } } } catch (FileStateInvalidException e) { //do nothing and fall through } return super.getHtmlDisplayName(); }