Package org.eclipse.emf.common.util

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


    boolean _equals = Objects.equal(_name, null);
    if (_equals) {
      Resource _eResource = it.eResource();
      URI _uRI = _eResource.getURI();
      URI _trimFileExtension = _uRI.trimFileExtension();
      _xifexpression = _trimFileExtension.lastSegment();
    } else {
      String _name_1 = it.getName();
      String _plus = (_name_1 + ".");
      Resource _eResource_1 = it.eResource();
      URI _uRI_1 = _eResource_1.getURI();
View Full Code Here


      String _name_1 = it.getName();
      String _plus = (_name_1 + ".");
      Resource _eResource_1 = it.eResource();
      URI _uRI_1 = _eResource_1.getURI();
      URI _trimFileExtension_1 = _uRI_1.trimFileExtension();
      String _lastSegment = _trimFileExtension_1.lastSegment();
      _xifexpression = (_plus + _lastSegment);
    }
    return _xifexpression;
  }
 
View Full Code Here

    expect(grammar.eContainer()).andReturn(null);
    expect(grammar.eResource()).andReturn(resource);

    expect(resource.getURI()).andReturn(uri);

    expect(uri.lastSegment()).andReturn(name);

    Object[] mocks = {diagnosticContext, delegate, grammar, resource, uri };

    replay(mocks);
View Full Code Here

      //
      if (manifestURL == null)
      {
        // Trim off the "bin" or "runtime" segment.
        //
        String lastSegment = uri.lastSegment();
        if ("bin".equals(lastSegment) || "runtime".equals(lastSegment))
        {
          uri = uri.trimSegments(1);
        }
        uri = uri.appendSegments(relativePath);
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

        if (nextEObject instanceof Diagram) {
          break;
        }
      }
      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

      if (nextEObject instanceof Diagram) {
        break;
      }
    }
    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

        if (nextEObject instanceof Diagram) {
          break;
        }
      }
      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

      if (nextEObject instanceof Diagram) {
        break;
      }
    }
    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

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.