예제 #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();
 }