Examples of toPortableString()


Examples of org.eclipse.core.runtime.IPath.toPortableString()

                                    return false;

                                IResource resource = delta.getResource();
                                if (resource.getType() == IResource.FILE) {
                                    IPath location = resource.getLocation();
                                    boolean isRunBundle = location != null ? runBundleSet.contains(location.toPortableString()) : false;
                                    update.compareAndSet(false, isRunBundle);
                                    return false;
                                }

                                // Recurse into containers
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

  private static byte[] buf = new byte[BUFFER];

  public static String getZipRelativeName(IModuleResource resource) {
    IPath path = resource.getModuleRelativePath().append(resource.getName());
    String entryPath = path.toPortableString();
    if (resource instanceof IModuleFolder && !entryPath.endsWith("/")) { //$NON-NLS-1$
      entryPath += '/';
    }

    return entryPath;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

        IFolder current = syncDir;
        for (int i = 0; i < repositoryImportRoot.segmentCount(); i++) {
            IPath repoPath = current.getProjectRelativePath().makeRelativeTo(syncDir.getProjectRelativePath())
                    .makeAbsolute();
            parseIgnoreFiles(current, repoPath.toPortableString());
            current = (IFolder) current.findMember(repositoryImportRoot.segment(i));
        }

    }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

                InputStream contents = possibleSerializationFile.getContents();
                ResourceProxy serializationData;
                try {
                    serializationData = serializationManager.readSerializationData(
                            parentSerializationFilePath.toPortableString(), contents);
                } finally {
                    IOUtils.closeQuietly(contents);
                }

                String repositoryPath = serializationManager.getRepositoryPath(resourceLocation);
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

        for ( IResource extraChildResource : extraChildResources.values()) {
            IPath extraChildResourcePath = extraChildResource.getFullPath()
                    .makeRelativeTo(syncDirectory.getFullPath()).makeAbsolute();
            resourceProxy.addChild(new ResourceProxy(serializationManager
                    .getRepositoryPath(extraChildResourcePath.toPortableString())));
           
            Activator.getDefault().getPluginLogger()
                .trace("For resource at with serialization data {0} the found a child resource at {1} which is not listed in the serialized child resources and will be added",
                            serializationFile, extraChildResource);
        }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

        if (editorInput instanceof IStorageEditorInput) {
            final IStorageEditorInput sei = (IStorageEditorInput) editorInput;
            try {
                final IStorage storage = sei.getStorage();
                final IPath p = storage.getFullPath();
                return p.toPortableString();
            } catch (final CoreException e) {
            }
        }
        if (editorInput instanceof IURIEditorInput) {
            final IURIEditorInput ue = (IURIEditorInput) editorInput;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

    public String getScannerName() {
        final IFile file = getFile();
        if (file != null) {
            final IPath fullPath = file.getFullPath();
            final String scannerName = "scratchPad"
                    + fullPath.toPortableString().hashCode() + "_"
                    + fullPath.removeFileExtension().lastSegment();
            return scannerName;
        }
        return null;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

      final IPath path = _path.append("bin/erl");
      String _xifexpression = null;
      SystemConfiguration _instance = SystemConfiguration.getInstance();
      boolean _isOnWindows = _instance.isOnWindows();
      if (_isOnWindows) {
        String _portableString = path.toPortableString();
        _xifexpression = (_portableString + ".exe");
      } else {
        _xifexpression = path.toPortableString();
      }
      _xblockexpression = _xifexpression;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

      boolean _isOnWindows = _instance.isOnWindows();
      if (_isOnWindows) {
        String _portableString = path.toPortableString();
        _xifexpression = (_portableString + ".exe");
      } else {
        _xifexpression = path.toPortableString();
      }
      _xblockexpression = _xifexpression;
    }
    return _xblockexpression;
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

                final String alternatePltFileDirectory) throws IOException {
            IPath path = new Path(pltPath);
            final String name = path.lastSegment();
            path = new Path(alternatePltFileDirectory).append(name);
            Files.copy(new File(pltPath), new File(path.toOSString()));
            return path.toPortableString();
        }

        private void checkPlt(final String pltPath,
                final String alternatePltFileDirectory, final IProgressMonitor monitor,
                final IOtpRpc backend) throws DialyzerErrorException, ErlModelException,
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.