/** @generated NOT */ protected void decorateView( View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = OepcVisualIDRegistry.getType(XORConnectorEditPart.VISUAL_ID); view.setType(semanticHint); } super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted); if (!OEPCEditPart.MODEL_ID.equals(OepcVisualIDRegistry.getModelID(containerView))) { EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation(); shortcutAnnotation.setSource("Shortcut"); // $NON-NLS-1$ shortcutAnnotation.getDetails().put("modelID", OEPCEditPart.MODEL_ID); // $NON-NLS-1$ view.getEAnnotations().add(shortcutAnnotation); } // setting up default color background to view style NotationPackage NOTATION = NotationPackage.eINSTANCE; EClass shapeStyle = NOTATION.getShapeStyle(); ShapeStyle style = (ShapeStyle) view.getStyle(shapeStyle); if (style == null) { style = (ShapeStyle) view.createStyle(shapeStyle); } BflowDiagramEditPart.apply(XORConnectorEditPart.class, style); }
/** @generated NOT */ protected void decorateView( View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = VcVisualIDRegistry.getType(RelationEditPart.VISUAL_ID); view.setType(semanticHint); } super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted); NotationPackage NOTATION = NotationPackage.eINSTANCE; EClass routingStyle = NOTATION.getRoutingStyle(); RoutingStyle routing = (RoutingStyle) view.getStyle(routingStyle); if (routing == null) { routing = (RoutingStyle) view.createStyle(routingStyle); } routing.setRouting(Routing.RECTILINEAR_LITERAL); }