Examples of toPortableString()


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

        final IResource _resource = this.getResource();
        final boolean _tripleNotEquals = _resource != null;
        if (_tripleNotEquals) {
            final IResource _resource_1 = this.getResource();
            final IPath _fullPath = _resource_1.getFullPath();
            final String _portableString = _fullPath.toPortableString();
            return _portableString.substring(1);
        }
        return "dummy";
    }
View Full Code Here

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

  protected void cleanUpWorkspace() throws CoreException {
    IWorkspaceRoot _workspaceRoot = this.getWorkspaceRoot();
    _workspaceRoot.delete(IResource.ALWAYS_DELETE_PROJECT_CONTENT, null);
    IWorkspaceRoot _workspaceRoot_1 = this.getWorkspaceRoot();
    IPath _location = _workspaceRoot_1.getLocation();
    String _portableString = _location.toPortableString();
    final File file = new File(_portableString, "tmp");
    this.deleteDirectory(file);
  }
 
  private boolean deleteDirectory(final File directory) {
View Full Code Here

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

      module.close();
    }
    boolean _tripleEquals = (module == null);
    if (_tripleEquals) {
      IPath _location = file.getLocation();
      final String path = _location.toPortableString();
      String _name = file.getName();
      Charset _defaultCharset = Charset.defaultCharset();
      String _name_1 = _defaultCharset.name();
      IErlModule _moduleFromFile = model.getModuleFromFile(model, _name, path, _name_1, path);
      module = _moduleFromFile;
View Full Code Here

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

    return _path.append(fileName);
  }
 
  public URI getTmpURIPath(final String fileName) {
    IPath _tmpPath = this.getTmpPath(fileName);
    String _portableString = _tmpPath.toPortableString();
    return URIUtil.toURI(_portableString);
  }
 
  public File createTmpFile(final String fileName, final String contentString) throws IOException, FileNotFoundException {
    IPath _tmpPath = this.getTmpPath(fileName);
View Full Code Here

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

        throw Exceptions.sneakyThrow(_t);
      }
    }
    boolean _tripleNotEquals = (location != null);
    if (_tripleNotEquals) {
      String _portableString = location.toPortableString();
      File _file = new File(_portableString);
      _file.delete();
    }
    erlProject.dispose();
    IErlModel _model = this.getModel();
View Full Code Here

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

      OtpErlangObject _xblockexpression = null;
      {
        final ErlangProjectProperties props = project.getProperties();
        IProject _workspaceProject = project.getWorkspaceProject();
        IPath _location = _workspaceProject.getLocation();
        final String rootDir = _location.toPortableString();
        final Collection<IPath> srcDirs = props.getSourceDirs();
        final Collection<IPath> incDirs = props.getIncludeDirs();
        final IPath outDir = props.getOutputDir();
        IProject _workspaceProject_1 = project.getWorkspaceProject();
        final OtpErlangList opts = CompilerOptions.get(_workspaceProject_1);
View Full Code Here

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

            return new OtpErlangString(it);
          }
        };
        Iterable<OtpErlangString> _map_2 = IterableExtensions.<String, OtpErlangString>map(libIncs, _function_2);
        Iterable<OtpErlangString> _plus = Iterables.<OtpErlangString>concat(_map_1, _map_2);
        String _portableString = outDir.toPortableString();
        String _string = minOtpVsn.toString();
        final Function1<String, OtpErlangString> _function_3 = new Function1<String, OtpErlangString>() {
          public OtpErlangString apply(final String it) {
            return new OtpErlangString(it);
          }
View Full Code Here

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

  public void loadFromFile() {
    IPath _location = this.getLocation();
    ProjectConfigType _configType = this.getConfigType();
    String _configName = _configType.getConfigName();
    IPath _append = _location.append(_configName);
    String _portableString = _append.toPortableString();
    final File f = new File(_portableString);
    boolean _exists = f.exists();
    if (_exists) {
      String _absolutePath = f.getAbsolutePath();
      String _plus = ("» LOAD " + _absolutePath);
View Full Code Here

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

      String _absolutePath = f.getAbsolutePath();
      String _plus = ("» LOAD " + _absolutePath);
      System.out.println(_plus);
      ProjectConfigType _configType_1 = this.getConfigType();
      IPath _location_1 = this.getLocation();
      String _portableString_1 = _location_1.toPortableString();
      File _file = new File(_portableString_1);
      final IProjectConfigurator config = this.factory.getConfig(_configType_1, _file);
      final ErlangProjectProperties props = config.getConfiguration(this.location);
      IPath _outputDir = props.getOutputDir();
      this.setOutputDir(_outputDir);
View Full Code Here

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

              boolean _isAbsolute = p.isAbsolute();
              if (_isAbsolute) {
                _xifexpression = fileName;
              } else {
                IPath _append = baseDir.append(fileName);
                _xifexpression = _append.toPortableString();
              }
              final String name = _xifexpression;
              final File f = new File(name);
              _xblockexpression = Files.readLines(f, Charsets.UTF_8);
            }
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.