Package org.eclipse.emf.common.util

Examples of org.eclipse.emf.common.util.URI.lastSegment()


                            "");
                    for (final Iterator iterator = this.moduleSearchPaths.iterator(); iterator.hasNext();)
                    {
                        final String searchPath = (String)iterator.next();
                        final URI fileURI = EMFRepositoryFacadeUtils.createUri(ResourceUtils.normalizePath(searchPath));
                        if (fileURI.lastSegment().equals(resourceName))
                        {
                            AndroMDALogger.info("referenced model --> '" + fileURI + "'");
                            normalizedUri = fileURI;
                            this.normalizedUris.put(
                                uri,
View Full Code Here


      if (nextEObject instanceof Diagram) {
        break;
      }
    }
    URI uri = EcoreUtil.getURI(diagram);
    String editorName = uri.lastSegment()
        + "#" + diagram.eResource().getContents().indexOf(diagram); //$NON-NLS-1$
    IEditorInput editorInput = new URIEditorInput(uri, editorName);
    return editorInput;
  }
View Full Code Here

        if (nextEObject instanceof Diagram) {
          break;
        }
      }
      URI uri = EcoreUtil.getURI(myDiagram);
      String editorName = uri.lastSegment()
          + "#" + myDiagram.eResource().getContents().indexOf(myDiagram); //$NON-NLS-1$
      IEditorInput editorInput = new URIEditorInput(uri, editorName);
      return editorInput;
    }
View Full Code Here

  public static String getResourceFileName(EObject obj) {
    URI uri = obj.eResource().getURI();
    if (uri.isPlatform()) {
      return uri.toString();
    } else {
      return uri.lastSegment();
    }
  }
 
  /**
   * Is the given EObject a valid reference?
View Full Code Here

      if (nextEObject instanceof Diagram) {
        break;
      }
    }
    URI uri = EcoreUtil.getURI(diagram);
    String editorName = uri.lastSegment()
        + "#" + diagram.eResource().getContents().indexOf(diagram); //$NON-NLS-1$
    IEditorInput editorInput = new URIEditorInput(uri, editorName);
    return editorInput;
  }
View Full Code Here

        Diagram diagram = getDiagramToOpen();
        if (diagram == null) {
          diagram = intializeNewDiagram();
        }
        URI uri = EcoreUtil.getURI(diagram);
        String editorName = uri.lastSegment()
            + "#" + diagram.eResource().getContents().indexOf(diagram); //$NON-NLS-1$
        IEditorInput editorInput = new URIEditorInput(uri, editorName);
        IWorkbenchPage page = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getActivePage();
        page.openEditor(editorInput, getEditorID());
View Full Code Here

        Diagram diagram = getDiagramToOpen();
        if (diagram == null) {
          diagram = intializeNewDiagram();
        }
        URI uri = EcoreUtil.getURI(diagram);
        String editorName = uri.lastSegment()
            + "#" + diagram.eResource().getContents().indexOf(diagram); //$NON-NLS-1$
        IEditorInput editorInput = new URIEditorInput(uri, editorName);
        IWorkbenchPage page = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getActivePage();
        page.openEditor(editorInput, getEditorID());
View Full Code Here

        Diagram diagram = getDiagramToOpen();
        if (diagram == null) {
          diagram = intializeNewDiagram();
        }
        URI uri = EcoreUtil.getURI(diagram);
        String editorName = uri.lastSegment()
            + "#" + diagram.eResource().getContents().indexOf(diagram); //$NON-NLS-1$
        IEditorInput editorInput = new URIEditorInput(uri, editorName);
        IWorkbenchPage page = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getActivePage();
        page.openEditor(editorInput, getEditorID());
View Full Code Here

      if (nextEObject instanceof Diagram) {
        break;
      }
    }
    URI uri = EcoreUtil.getURI(diagram);
    String editorName = uri.lastSegment()
        + "#" + diagram.eResource().getContents().indexOf(diagram); //$NON-NLS-1$
    IEditorInput editorInput = new URIEditorInput(uri, editorName);
    return editorInput;
  }
View Full Code Here

        if (nextEObject instanceof Diagram) {
          break;
        }
      }
      URI uri = EcoreUtil.getURI(myDiagram);
      String editorName = uri.lastSegment()
          + "#" + myDiagram.eResource().getContents().indexOf(myDiagram); //$NON-NLS-1$
      IEditorInput editorInput = new URIEditorInput(uri, editorName);
      return editorInput;
    }
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.