Examples of fileExtension()


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

      if (fileURI == null || fileURI.isEmpty()) {
        setErrorMessage(null);
        return false;
      }

      String extension = fileURI.fileExtension();
      if (extension == null || !FILE_EXTENSIONS.contains(extension)) {
        String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension";
        setErrorMessage(OntoUMLEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));
        return false;
      }
View Full Code Here

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

      if (fileURI == null || fileURI.isEmpty()) {
        setErrorMessage(null);
        return false;
      }

      String extension = fileURI.fileExtension();
      if (extension == null || !FILE_EXTENSIONS.contains(extension)) {
        String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension";
        setErrorMessage(OntoUMLEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));
        return false;
      }
View Full Code Here

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

    for(IEObjectDescription d : descriptors) {
      URI uri = EcoreUtil.getURI(d.getEObjectOrProxy());
      if(root != null) {
        uri = uri.deresolve(root.appendSegment(""));
      }
      boolean isPptpResource = "pptp".equals(uri.fileExtension());
      String path = isPptpResource
          ? uri.lastSegment().replace(".pptp", "")
          : uri.devicePath();
      if(!resources.contains(path))
        resources.add(path);
View Full Code Here

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

    for(IResourceDescription.Delta delta : context.getDeltas()) {
      IResourceDescription resourceDescription = delta.getNew();
      if(resourceDescription != null) {
        URI uri = resourceDescription.getURI();
        if(uri != null) {
          if("pp".equals(uri.fileExtension())) {
            Resource r = context.getResourceSet().getResource(uri, true);
            List<PPTask> taskList = getTaskList(r);
            syncTasks(taskList, uri);
          }
        }
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.