示例#1
0
 public static boolean isSameDecoration(IDecoration oldDecoration, String newId) {
   if (newId != null) {
     if (oldDecoration == null) return false;
     String oldId = oldDecoration.getId();
     return newId.equals(oldId);
   }
   return oldDecoration == null;
 }
示例#2
0
 public static IDecoration createDecoration(IGraphicalPart part, String id) {
   IDecoration decoration = MindMapUI.getMindMapDecorationFactory().createDecoration(id, part);
   if (decoration != null) decoration.setId(id);
   return decoration;
 }