Package org.eclipse.graphiti.features

Examples of org.eclipse.graphiti.features.IDeleteFeature


                    de.getDiagramTypeProvider();
                IFeatureProvider fp = dtp.getFeatureProvider();

                final DeleteContext dc = new DeleteContext(
                    deleteShape);
                final IDeleteFeature df =
                    de.getDiagramTypeProvider(
                    ).getFeatureProvider().getDeleteFeature(
                        dc);

                assert(df.canDelete(dc));
                df.delete(dc);
              }});
      }}));
   
    SWTBotShell shell = mBot.shell("Confirm Delete");
    shell.activate();
View Full Code Here


        MultiDeleteInfo mi = new MultiDeleteInfo(
            false, false, toBeDeleted.size());
        for (Connection c : toBeDeleted) {
          DeleteContext dc = new DeleteContext(c);
          dc.setMultiDeleteInfo(mi);
          IDeleteFeature del = getFeatureProvider().getDeleteFeature(dc);
          if (del.canDelete(dc)) {
            del.delete(dc);
          }
        }
      }
      EcoreUtil.delete((LocalVariableStatement) obj);
    }
View Full Code Here

        }
      }
     
      for (PictogramElement pe : toDelete) {
      DeleteContext dc = new DeleteContext(pe);
      IDeleteFeature del = getFeatureProvider().getDeleteFeature(dc);
      if (del.canDelete(dc)) {
        del.delete(dc);
        ret = true;
      }
      }
      return ret;
  }
View Full Code Here

                    de.getDiagramTypeProvider();
                IFeatureProvider fp = dtp.getFeatureProvider();

                final DeleteContext dc = new DeleteContext(
                    deleteShape);
                final IDeleteFeature df =
                    de.getDiagramTypeProvider(
                    ).getFeatureProvider().getDeleteFeature(
                        dc);

                assert(df.canDelete(dc));
                df.delete(dc);
              }});
      }}));


   
View Full Code Here

      MultiDeleteInfo mi = new MultiDeleteInfo(
          false, false, toBeDeleted.size());
      for (Connection c : toBeDeleted) {
        DeleteContext dc = new DeleteContext(c);
        dc.setMultiDeleteInfo(mi);
        IDeleteFeature del = getFeatureProvider().getDeleteFeature(dc);
        if (del.canDelete(dc)) {
          del.delete(dc);
        }
      }
    }
  }
View Full Code Here

    if (selectedNode != null) {
      PictogramElement[] pes = designEditor.getDiagramTypeProvider().getFeatureProvider().getAllPictogramElementsForBusinessObject(selectedNode);
      if (pes != null && pes.length>0) {
        for (PictogramElement pe : pes) {
          DeleteContext ctx = new DeleteContext(pe);
          IDeleteFeature f = designEditor.getFeatureProvider().getDeleteFeature(ctx);
          if (f.canDelete(ctx)) {
            f.delete(ctx);
          }
        }
      }
    }
  }
View Full Code Here

    for (FeatureContainer container : containers) {
      if (id!=null && !(container instanceof CustomTaskFeatureContainer))
        continue;
      Object o = container.getApplyObject(context);
      if (o != null && container.canApplyTo(o)) {
        IDeleteFeature feature = container.getDeleteFeature(this);
        if (feature != null) {
          return feature;
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.features.IDeleteFeature

Copyright © 2018 www.massapicom. 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.