Package org.eclipse.cdt.core.index

Examples of org.eclipse.cdt.core.index.IIndexFileLocation


      query.run(new NullProgressMonitor());
      CSearchResult result = (CSearchResult)query.getSearchResult();
      for (Object e : result.getElements()){
        Method method = CSearchElement.class.getDeclaredMethod("getLocation");
        method.setAccessible(true);
        IIndexFileLocation location = (IIndexFileLocation)method.invoke(e);
        String filename = location.getURI().getPath();
        if (Os.isFamily("windows") && filename.startsWith("/")){
          filename = filename.substring(1);
        }
        for (Match m : result.getMatches(e)){
          CSearchMatch match = (CSearchMatch)m;
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.core.index.IIndexFileLocation

Copyright © 2018 www.massapicom. 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.