Examples of deletePictogramElement()


Examples of org.eclipse.graphiti.services.IPeService.deletePictogramElement()

      line3.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
      line3.setLineWidth(2);
    } else {
      Shape shape = FeatureSupport.getShape(containerShape, MULTIPLICITY_MARKER, Boolean.toString(true));
      if (shape != null) {
        peService.deletePictogramElement(shape);
      }
    }

    peService.setPropertyValue(containerShape, AddParticipantFeature.MULTIPLICITY,
        participant.getParticipantMultiplicity() != null ? Boolean.toString(true) : Boolean.toString(false));
View Full Code Here

Examples of org.eclipse.graphiti.services.IPeService.deletePictogramElement()

      Shape globalTaskShape = getShape(container, GLOBAL_TASK_SHAPE_PROPERTY);

      if (callActivity.getCalledElementRef() == null) {
        GraphicsUtil.clearActivityMarker(markerContainer, GraphicsUtil.ACTIVITY_MARKER_EXPAND);
        if (globalTaskShape != null) {
          peService.deletePictogramElement(globalTaskShape);
        }
      }

      else if (callActivity.getCalledElementRef() instanceof GlobalTask) {
        GraphicsUtil.clearActivityMarker(markerContainer, GraphicsUtil.ACTIVITY_MARKER_EXPAND);
View Full Code Here

Examples of org.eclipse.graphiti.services.IPeService.deletePictogramElement()

        }
      }

      else if (callActivity.getCalledElementRef() instanceof Process) {
        if (globalTaskShape != null) {
          peService.deletePictogramElement(globalTaskShape);
        }
        Expand expand = GraphicsUtil.createActivityMarkerExpand(markerContainer);
        expand.rect.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
        expand.horizontal.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
        expand.vertical.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
View Full Code Here

Examples of org.eclipse.graphiti.services.IPeService.deletePictogramElement()

    ConnectionDecorator def = decorators.getFirst();
    ConnectionDecorator cond = decorators.getSecond();

    if (isDefault) {
      if (cond != null) {
        peService.deletePictogramElement(cond);
      }
      def = createDefaultConnectionDecorator(connection);
      GraphicsAlgorithm ga = def.getGraphicsAlgorithm();
      ga.setForeground(manageColor(connection,StyleUtil.CLASS_FOREGROUND));
    } else {
View Full Code Here

Examples of org.eclipse.graphiti.services.IPeService.deletePictogramElement()

      def = createDefaultConnectionDecorator(connection);
      GraphicsAlgorithm ga = def.getGraphicsAlgorithm();
      ga.setForeground(manageColor(connection,StyleUtil.CLASS_FOREGROUND));
    } else {
      if (def != null) {
        peService.deletePictogramElement(def);
      }
      if (flow.getConditionExpression() != null && flow.getSourceRef() instanceof Activity) {
        cond = createConditionalConnectionDecorator(connection);
        GraphicsAlgorithm ga = cond.getGraphicsAlgorithm();
        ga.setFilled(true);
View Full Code Here

Examples of org.eclipse.graphiti.services.IPeService.deletePictogramElement()

      GraphicsAlgorithm ga = decorator.getGraphicsAlgorithm();
      ga.setFilled(true);
      ga.setForeground(manageColor(connection, StyleUtil.CLASS_FOREGROUND));
      ga.setBackground(manageColor(connection, IColorConstant.WHITE));
    } else if (cond != null) {
      peService.deletePictogramElement(cond);
    }

    peService.setPropertyValue(connection, IS_CONDITIONAL_FLOW_PROPERTY,
        Boolean.toString(flow.getConditionExpression() != null));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.