Package org.eclipse.emf.common.util

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


   * @since 2.1
   */
  public Object image(IReferenceDescription element) {
    URI uri = element.getSourceEObjectUri();
    if(uri != null) {
      String fileName = uri.lastSegment();
      return imageUtil.getDefaultEditorImageDescriptor(fileName);
    }
    return null;
  }

View Full Code Here


           
            for (String path : def.getPreviewClasspathEntries()) {
              try {
                URI cpUri = URI.createURI(path);
                if (cpUri.isPlatformResource()) {
                  if (cpUri.lastSegment().equals("*")) {
                    cpUri = cpUri.trimSegments(1);
                    Path cpPath = new Path(cpUri.toPlatformString(true));
                    IWorkspaceRoot root = jp.getProject().getWorkspace().getRoot();
                    IFolder f = root.getFolder(cpPath);
                    if (f.exists()) {
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.