示例#1
0
 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);
 }
示例#2
0
 @Override
 public String getShortDescription() {
   return text.toString();
 }
示例#3
0
 @Override
 public String getDisplayName() {
   return text.toString();
 }