Package org.eclipse.graphiti.features

Examples of org.eclipse.graphiti.features.IDeleteFeature.canDelete()


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

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


            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

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

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

View Full Code Here

          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

      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

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.