Package org.eclipse.gmf.runtime.diagram.ui.editparts

Examples of org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart


  /**
   * @generated
   */
  public static void runValidation(DiagramEditPart diagramEditPart, View view) {
    final DiagramEditPart fpart = diagramEditPart;
    final View fview = view;
    TransactionalEditingDomain txDomain = TransactionUtil
        .getEditingDomain(view);
    DispelValidationProvider.runWithConstraints(txDomain, new Runnable() {

View Full Code Here


    imageFile.deleteOnExit();
    return imageRepresentation;
  }

  private File exportToImage(Diagram diagram, ImageFileFormat imageFileFormat) {
    DiagramEditPart diagramEditPart = OffscreenEditPartFactory
        .getInstance().createDiagramEditPart(diagram, new Shell());

    File destinationFile = ImageRepresentation
        .allocateTempImage(imageFileFormat.toString());
    IPath destination = new Path(destinationFile.getAbsolutePath());
View Full Code Here

  /**
   * @generated
   */
  public static void runNonUIValidation(View view) {
    DiagramEditPart diagramEditPart = OffscreenEditPartFactory
        .getInstance().createDiagramEditPart(view.getDiagram());
    runValidation(diagramEditPart, view);
  }
View Full Code Here

  /**
   * @generated
   */
  public static void runValidation(DiagramEditPart diagramEditPart, View view) {
    final DiagramEditPart fpart = diagramEditPart;
    final View fview = view;
    TransactionalEditingDomain txDomain = TransactionUtil
        .getEditingDomain(view);
    Fd2ValidationProvider.runWithConstraints(txDomain, new Runnable() {

View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart

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.