Package org.eclipse.emf.common.util

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


    boolean _isPlatformResource = _uRI.isPlatformResource();
    if (_isPlatformResource) {
      URI uri = resource.getURI();
      IWorkspace _workspace = ResourcesPlugin.getWorkspace();
      IWorkspaceRoot root = _workspace.getRoot();
      String _segment = uri.segment(1);
      IProject project = root.getProject(_segment);
      String projectRelativePath = "";
      int i = 0;
      String[] _segments = uri.segments();
      for (final String seg : _segments) {
View Full Code Here


      for (final String seg : _segments) {
        {
          boolean _greaterEqualsThan = (i >= 1);
          if (_greaterEqualsThan) {
            String _plus = (projectRelativePath + "/");
            String _segment_1 = uri.segment(i);
            String _plus_1 = (_plus + _segment_1);
            projectRelativePath = _plus_1;
          }
          int _plus_2 = (i + 1);
          i = _plus_2;
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.