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

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


  /**
   * @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);
    OntoUML.diagram.providers.OntoUMLValidationProvider.runWithConstraints(
        txDomain, new Runnable() {
View Full Code Here

  /**
   * For the currently open editor: export the image to PNG; then try and
   * force the editor closed (if supported).
   */
  protected void exportDiagramThenClose(EClass cls, DiagramDocumentEditor editor, IProgressMonitor monitor) throws CoreException {
    DiagramEditPart part = editor.getDiagramEditPart();
   
    // save this image
    // (even if there isn't anything in it)
    IProgressMonitor saveMonitor = new SubProgressMonitor(monitor, 2);
    saveMonitor.beginTask("Saving image for " + cls.getName(), 2);
View Full Code Here

    assert(container != null);
   
    if (monitor.isCanceled())
      return;
   
    DiagramEditPart part = editor.getDiagramEditPart();
   
    // save this image if there is something in it
    if (part.getChildren().size() > 0) {
      IProgressMonitor saveMonitor = new SubProgressMonitor(monitor, 1);
      saveMonitor.beginTask("Saving container " + part.resolveSemanticElement(), 1 + formats.size());
      for (ImageFileFormat format : formats) {
        IPath destination = generateImageDestination(container, format);
        monitor.subTask("Saving image " + destination.lastSegment() + " ( " + format.getName() + ")");
        CopyToImageUtil img = getCopyToImageUtil();
        img.copyToImage(part, destination, format, new SubProgressMonitor(monitor, 1));
        imagesSaved++;
      }
      saveMonitor.done();
    }
   
    // get children
    for (Object obj : part.getChildren()) {
      if (monitor.isCanceled())
        break;
     
      if (shouldHalt(imagesSaved)) {
        break;    // halt
View Full Code Here

   
    // for all the saved children
    for (RenderedChildInformation child : partChildrenListMap.get(root)) {
     
      // do any edit parts link up to this one?
      DiagramEditPart found = null;
      for (DiagramEditPart target : partEObjectMap.keySet()) {
        if (EcoreUtil.equals(partEObjectMap.get(target), child.getResolvedObject())) {
          found = target;
          break;
        }
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);
    DispelValidationProvider.runWithConstraints(txDomain, new Runnable() {

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);
    DispelValidationProvider.runWithConstraints(txDomain, new Runnable() {

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

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.