/** @generated */
 static {
   registerSnapBackPosition(
       UMLVisualIDRegistry.getType(
           org.eclipse.papyrus.uml.diagram.timing.edit.parts
               .TimeObservationAppliedStereotypeEditPart.VISUAL_ID),
       new Point(0, 0));
 }
Пример #2
0
 /** @generated */
 @Override
 public int category(Object element) {
   if (element instanceof UMLNavigatorItem) {
     UMLNavigatorItem item = (UMLNavigatorItem) element;
     return UMLVisualIDRegistry.getVisualID(item.getView());
   }
   return GROUP_CATEGORY;
 }
 @Override
 protected EditPolicy createChildEditPolicy(final EditPart child) {
   final View childView = (View) child.getModel();
   if (UMLVisualIDRegistry.getVisualID(childView) == this.labelVisualId) {
     return new ExternalLabelPrimaryDragRoleEditPolicy();
   }
   EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
   if (result == null) {
     result = new NonResizableEditPolicy();
   }
   return result;
 }
 /** @generated */
 @Override
 public IParser getParser() {
   if (parser == null) {
     parser =
         UMLParserProvider.getParser(
             UMLElementTypes.TimeObservation_16,
             getParserElement(),
             UMLVisualIDRegistry.getType(
                 org.eclipse.papyrus.uml.diagram.timing.edit.parts
                     .TimeObservationAppliedStereotypeEditPart.VISUAL_ID));
   }
   return parser;
 }