예제 #1
0
 protected String getModelLabel(RootEntity o) {
   if (o == null) return "";
   String label = Strings.cut(o.getName(), 75);
   Location location = null;
   if (o instanceof Flow) location = ((Flow) o).getLocation();
   else if (o instanceof Process) location = ((Process) o).getLocation();
   if (location != null && location.getCode() != null) label += " (" + location.getCode() + ")";
   return label;
 }
예제 #2
0
 protected String getModelLabel(BaseDescriptor d) {
   if (d == null) return null;
   return Strings.cut(Labels.getDisplayName(d), 75);
 }