Package org.eclipse.emf.common.ui

Examples of org.eclipse.emf.common.ui.URIEditorInput


   * @generated
   */
  protected void handleElementMoved(IEditorInput input, URI uri) {

    // TODO: append suffix to the URI! (use diagram as a parameter)
    fireElementMoved(input, new URIEditorInput(uri));
  }
View Full Code Here


                  es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.Messages.DiagramEditorActionBarAdvisor_DefaultFileEditorMessage,
                  fileURI.toFileString()));
      return false;
    } else {
      try {
        page.openEditor(new URIEditorInput(fileURI),
            editorDescriptor.getId());
      } catch (PartInitException exception) {
        MessageDialog
            .openError(
                workbenchWindow.getShell(),
View Full Code Here

      fireElementMoved(input, newFile == null ? null
          : new FileEditorInput(newFile));
      return;
    }
    // TODO: append suffix to the URI! (use diagram as a parameter)
    fireElementMoved(input, new URIEditorInput(uri));
  }
View Full Code Here

                  es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.Messages.DiagramEditorActionBarAdvisor_DefaultFileEditorMessage,
                  fileURI.toFileString()));
      return false;
    } else {
      try {
        page.openEditor(new URIEditorInput(fileURI),
            editorDescriptor.getId());
      } catch (PartInitException exception) {
        MessageDialog
            .openError(
                workbenchWindow.getShell(),
View Full Code Here

      fireElementMoved(input, newFile == null ? null
          : new FileEditorInput(newFile));
      return;
    }
    // TODO: append suffix to the URI! (use diagram as a parameter)
    fireElementMoved(input, new URIEditorInput(uri));
  }
View Full Code Here

        }
      }
      URI uri = EcoreUtil.getURI(diagram);
      String editorName = uri.lastSegment() + '#'
          + diagram.eResource().getContents().indexOf(diagram);
      IEditorInput editorInput = new URIEditorInput(uri, editorName);
      return editorInput;
    }
View Full Code Here

  public boolean test(Object receiver, String method, Object[] args,
      Object expectedValue) {
    if (false == receiver instanceof URIEditorInput) {
      return false;
    }
    URIEditorInput editorInput = (URIEditorInput) receiver;
    return "eclipsejadex_diagram".equals(editorInput.getURI().fileExtension()); //$NON-NLS-1$
  }
View Full Code Here

      }
    }
    URI uri = EcoreUtil.getURI(diagram);
    String editorName = uri.lastSegment() + '#'
        + diagram.eResource().getContents().indexOf(diagram);
    IEditorInput editorInput = new URIEditorInput(uri, editorName);
    return editorInput;
  }
View Full Code Here

  public boolean test(Object receiver, String method, Object[] args,
      Object expectedValue) {
    if (false == receiver instanceof URIEditorInput) {
      return false;
    }
    URIEditorInput editorInput = (URIEditorInput) receiver;
    return "fd2_diagram".equals(editorInput.getURI().fileExtension()); //$NON-NLS-1$
  }
View Full Code Here

      }
      else {
        // use EMF URI (readonly) input - will open without validation though...
        // (Could be improved, i.e. perform a download, make readonly, and keep in project,
        // or stored in tmp, and processed as the other linked resources..
        URIEditorInput uriInput = new URIEditorInput(URI.createURI(uri.toString()), name);
        super.init(site, uriInput);
        return;
      }
      return;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.common.ui.URIEditorInput

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.