Examples of FileLink


Examples of org.apache.hadoop.hbase.io.FileLink

   */
  public FileLink getFileLinkWithPreNSPath(Path storeFilePath) throws IOException {
    HFileLink link = new HFileLink(getConf(), storeFilePath);
    List<Path> pathsToProcess = getPreNSPathsForHFileLink(link);
    pathsToProcess.addAll(Arrays.asList(link.getLocations()));
    return new FileLink(pathsToProcess);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.io.FileLink

    HFileLink hFileLink = new HFileLink(TEST_UTIL.getConfiguration(), aFileLink);
    assertTrue(hFileLink.getArchivePath().toString().startsWith(rootDir.toString()));

    HFileV1Detector t = new HFileV1Detector();
    t.setConf(TEST_UTIL.getConfiguration());
    FileLink fileLink = t.getFileLinkWithPreNSPath(aFileLink);
    //assert it has 6 paths (2 NS, 2 Pre NS, and 2 .tmp)  to look.
    assertTrue(fileLink.getLocations().length == 6);
    for (Path p : fileLink.getLocations()) {
      if (p.equals(preNamespaceArchivePath)) preNSArchivePathExists = true;
      if (p.equals(preNamespaceTablePath)) preNSTablePathExists = true;
      if (p.equals(preNamespaceTempPath)) preNSTempPathExists = true;
    }
    assertTrue(preNSArchivePathExists & preNSTablePathExists & preNSTempPathExists);
View Full Code Here

Examples of org.eclipse.debug.ui.console.FileLink

            }
            IFile file = null;
            if (res instanceof IFile) {
                file = (IFile) res;
            }
            final IHyperlink link = new FileLink(file, null, -1, -1,
                    Integer.parseInt(v[1]));
            fConsole.addHyperlink(link, event.getOffset(), event.getLength());
        } catch (final BadLocationException e) {
            ErlLogger.warn(e);
        }
View Full Code Here

Examples of org.eclipse.debug.ui.console.FileLink

      File f = new File(fn);
     
      if(f.exists())
        link = (IHyperlink) new URLLink(f.toURI(), ln);
      else
        link = new FileLink(p.getFile(fn), null, -1, -1, ln);

      try {
        console.addHyperlink(link, event.getOffset(), event.getLength());
      } catch (BadLocationException e) {
        e.printStackTrace();
View Full Code Here

Examples of org.eclipse.debug.ui.console.FileLink

      setProblemMarker(parser.filename, problemlevel, parser.linenr, parser.message);     
     
      IResource resource = getFile(parser.filename);
      if(resource instanceof IFile) {
        IFile file = (IFile) resource;
        FileLink hyperlink = new FileLink(file,null,-1,-1,parser.linenr);
        try {
          console.addHyperlink(hyperlink, offset+parser.startinmatchedstring,
              parser.endinmatchedstring-parser.startinmatchedstring+1);
        } catch (BadLocationException e) {
        }
View Full Code Here

Examples of org.eclipse.debug.ui.console.FileLink

          }

          if (files.size() != 0) {
            IFile file = (IFile) files.get(0);
            if (file != null && file.exists()) {
              IHyperlink link = new FileLink(file, null, -1, -1, lineNumber);
              console.addLink(link, linkOffset, linkLength);
            }
          }
        }
      }
View Full Code Here

Examples of org.eclipse.debug.ui.console.FileLink

            } else {
                files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(new File(fileName).toURI());

            }
            if (files != null && files.length > 0 && files[0].exists())
                link = new FileLink(files[0], null, -1, -1, num);
            else {
                // files outside of the workspace
                File realFile = new File(fileName);
                if (!onlyCreateLinksForExistingFiles || realFile.exists()) {
                    ItemPointer p = new ItemPointer(realFile, new Location(num - 1, 0), null);
View Full Code Here

Examples of org.gradle.foundation.output.FileLink

            "[ant:javac] symbol  : constructor Integer()\n" +
            "[ant:javac] location: class java.lang.Integer\n" +
            "[ant:javac]       SwingUtilities.invokeLater( new Integer() );\n" +
            "[ant:javac]                                   ^\n";

      parseOutputTest( outputText, new FileLink( new File( "/home/user/project/modules/plugins/src/main/java/com/thing/plugins/gradle/ui/GradleComponent.java" ), 114, 215, 186 ) );
   }
View Full Code Here

Examples of org.gradle.foundation.output.FileLink

            "[ant:javac] Note: /home/user/project/modules/plugins/gradle/src/main/java/com/thing/plugins/gradle/ui/GradleComponent.java uses or overrides a deprecated API.\n" +
            "[ant:javac] Note: Recompile with -Xlint:deprecation for details.\n" +
            "[ant:javac] 1 error\n" +
            "Total time: 4.622 secs";

      parseOutputTest( outputText, new FileLink( new File( "/home/user/project/modules/plugins/gradle/src/main/java/com/thing/plugins/gradle/ui/GradleComponent.java" ), 120, 224, -1 ) );
   }
View Full Code Here

Examples of org.gradle.foundation.output.FileLink

            "* What went wrong:\n" +
            "blah blah blah\n" +
            "Build file '/home/user/gradle/build.gradle'" +
            "Total time: 4.622 secs";

      parseOutputTest( outputText, new FileLink( new File( "/home/user/gradle/build.gradle" ), 63, 104, 431 ),
                                               new FileLink( new File( "/home/user/gradle/build.gradle" ), 152, 182, -1 ) );
   }
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.