Examples of IUpdateFeature


Examples of org.eclipse.graphiti.features.IUpdateFeature

    PictogramElement pe = selectedNode instanceof RouteSupport ? designEditor.getDiagram() : designEditor.getFeatureProvider().getPictogramElementForBusinessObject(selectedNode);
    if (pe == null) {
      Activator.getLogger().debug("Warning could not find PictogramElement for selectedNode: " + selectedNode);
    }
    UpdateContext ctx = new UpdateContext(pe);
    IUpdateFeature updateFeature = designEditor.getFeatureProvider().getUpdateFeature(ctx);
    updateFeature.update(ctx);
  }
View Full Code Here

Examples of org.eclipse.graphiti.features.IUpdateFeature

      ContainerShape gatewayShape = (ContainerShape) context.getPictogramElement();
      for (Anchor anchor : gatewayShape.getAnchors()) {
        for (Connection connection : anchor.getIncomingConnections() ) {
          IUpdateContext updateCtx = new UpdateContext(connection);
          IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
          if (updateFeature != null) {
            boolean ret = updateFeature.canUpdate(updateCtx);
            if (ret)
              return ret;
          }
        }
        for (Connection connection : anchor.getOutgoingConnections() ) {
          IUpdateContext updateCtx = new UpdateContext(connection);
          IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
          if (updateFeature != null) {
            boolean ret = updateFeature.canUpdate(updateCtx);
            if (ret)
              return ret;
          }
        }
      }
View Full Code Here

Examples of org.eclipse.graphiti.features.IUpdateFeature

      ContainerShape gatewayShape = (ContainerShape) context.getPictogramElement();
      for (Anchor anchor : gatewayShape.getAnchors()) {
        for (Connection connection : anchor.getIncomingConnections() ) {
          IUpdateContext updateCtx = new UpdateContext(connection);
          IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
          if (updateFeature != null) {
            IReason ret = updateFeature.updateNeeded(updateCtx);
            if (ret.toBoolean())
              return ret;
          }
        }
        for (Connection connection : anchor.getOutgoingConnections() ) {
          IUpdateContext updateCtx = new UpdateContext(connection);
          IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
          if (updateFeature != null) {
            IReason ret = updateFeature.updateNeeded(updateCtx);
            if (ret.toBoolean())
              return ret;
          }
        }
      }
View Full Code Here

Examples of org.eclipse.graphiti.features.IUpdateFeature

      ContainerShape gatewayShape = (ContainerShape) context.getPictogramElement();
      for (Anchor anchor : gatewayShape.getAnchors()) {
        for (Connection connection : anchor.getIncomingConnections() ) {
          IUpdateContext updateCtx = new UpdateContext(connection);
          IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
          if (updateFeature != null) {
            updateFeature.update(updateCtx);
          }
        }
        for (Connection connection : anchor.getOutgoingConnections() ) {
          IUpdateContext updateCtx = new UpdateContext(connection);
          IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
          if (updateFeature != null) {
            updateFeature.update(updateCtx);
          }
        }
      }
     
      return super.update(context);
View Full Code Here

Examples of org.eclipse.graphiti.features.IUpdateFeature

    };
  }

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    IUpdateFeature defaultUpdateFeature = super.getUpdateFeature(fp);
    MultiUpdateFeature updateFeature = new MultiUpdateFeature(fp);
    updateFeature.addUpdateFeature(defaultUpdateFeature);
    updateFeature.addUpdateFeature(new SubProcessEventUpdateFeature(fp));
    return updateFeature;
  }
View Full Code Here

Examples of org.eclipse.graphiti.features.IUpdateFeature

    for (FeatureContainer container : containers) {
      if (id!=null && !(container instanceof CustomTaskFeatureContainer))
        continue;
      Object o = container.getApplyObject(context);
      if (o != null && container.canApplyTo(o)) {
        IUpdateFeature feature = container.getUpdateFeature(this);
        if (feature == null) {
          break;
        }
        return feature;
      }
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.