private void init(CsmVariable var) { CharSequence old = text; text = var.getName(); if ((old == null) || !old.equals(text)) { fireNameChange(old == null ? null : old.toString(), text == null ? null : text.toString()); fireDisplayNameChange( old == null ? null : old.toString(), text == null ? null : text.toString()); fireShortDescriptionChange( old == null ? null : old.toString(), text == null ? null : text.toString()); } // String name = var.getName().toString(); // setName(name); // setDisplayName(name); // setShortDescription(name); }
@Override public String getShortDescription() { return text.toString(); }
@Override public String getDisplayName() { return text.toString(); }