Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.Path.removeFileExtension()


    public VFile(IStorage file, IVResource parent, String virtualPath) {

        if (virtualPath != null && virtualPath.indexOf(IDavinciServerConstants.WORKING_COPY_EXTENSION) > 0) {
            this.workingCopy = file;
            IPath path = new Path(file.getPath());
            this.file =  file.newInstance(path.removeFileExtension().toString());
            this.virtualPath = virtualPath.replace(IDavinciServerConstants.WORKING_COPY_EXTENSION, "");
        } else {
            this.file = file;
            this.virtualPath = virtualPath;
            this.workingCopy = this.getWorkingCopy(file);
View Full Code Here


    }
    final Path path = new Path(filePath);
    final String ext = path.getFileExtension();
    boolean _equal = Objects.equal(ext, "erl");
    if (_equal) {
      IPath _removeFileExtension = path.removeFileExtension();
      final String module = _removeFileExtension.lastSegment();
      BuilderHelper.loadModule(project, module);
    }
  }
}
View Full Code Here

        if (dir.isDirectory()) {
            for (final File f : dir.listFiles()) {
                final Path path = new Path(f.getPath());
                if (path.getFileExtension() != null
                        && "beam".compareTo(path.getFileExtension()) == 0) {
                    final String m = path.removeFileExtension().lastSegment();
                    try {
                        boolean ok = false;
                        final OtpErlangBinary bin = BeamUtil.getBeamBinary(m, path);
                        if (bin != null) {
                            ok = BeamLoader.loadBeam(getOtpRpc(), m, bin);
View Full Code Here

  @Override
  protected InputStream getInitialContents() {

          IPath path = new Path(getFileName());
          String name = path.removeFileExtension().toString();
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    PrintWriter printWriter = new PrintWriter(outputStream);
    printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");   
    printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
    printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

    // set filters to NO filtering so that we can add it manually with
    // the FILTERTYPE expression!
    String tempRulesFileName = getTempRulesFileName();
    IPath path = new Path(tempRulesFileName);
    ae.setConfigParameterValue(RutaEngine.PARAM_MAIN_SCRIPT, path.removeFileExtension()
            .lastSegment());
    String portableString = path.removeLastSegments(1).toPortableString();
    ae.setConfigParameterValue(RutaEngine.PARAM_SCRIPT_PATHS, new String[] { portableString });
    ae.setConfigParameterValue(RutaEngine.PARAM_ADDITIONAL_SCRIPTS, new String[0]);
    ae.setConfigParameterValue(RutaEngine.PARAM_RELOAD_SCRIPT, true);
View Full Code Here

  @Override
  protected InputStream getInitialContents() {

          IPath path = new Path(getFileName());
          String name = path.removeFileExtension().toString();
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    PrintWriter printWriter = new PrintWriter(outputStream);
    printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");   
    printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
    printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

        @Override
        protected InputStream getInitialContents() {

                IPath path = new Path(getFileName());
                String name = path.removeFileExtension().toString();
                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                PrintWriter printWriter = new PrintWriter(outputStream);
                printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");             
                printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
                printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

        @Override
        protected InputStream getInitialContents() {

                IPath path = new Path(getFileName());
                String name = path.removeFileExtension().toString();
                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                PrintWriter printWriter = new PrintWriter(outputStream);
                printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");             
                printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
                printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

        @Override
        protected InputStream getInitialContents() {

                IPath path = new Path(getFileName());
                String name = path.removeFileExtension().toString();
                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                PrintWriter printWriter = new PrintWriter(outputStream);
                printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");             
                printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
                printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

    // ...but if there is no defined module ID, pick the best alternative

    IPath moduleLocation = new Path(j2eeModule.getURI(module));
    if (moduleLocation != null) {
      moduleId = moduleLocation.removeFileExtension().lastSegment();
    }

    if (j2eeModule instanceof IWebModule) {
      // A better choice is to use the context root
      // For wars most appservers use the module name
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.