private static IPath[] getSrcAndDocs(URL sourceUrl) {
	    
	    //paths[0] gets src, paths[1] gets javadoc
	    IPath[] paths = new IPath[] {null, null};
	    
	    String librariesPath = null;
	    // given file:/home/brian/sketchbook/libraries/OpenCV/library/OpenCV.jar
	    // librariesPath gets set to file:/home/brian/sketchbook/libraries/OpenCV/
	    if (sourceUrl.getPath().contains("/library/"))
	        librariesPath = sourceUrl.getPath().substring(0,
	                sourceUrl.getPath().lastIndexOf("/library/") + 1);
	    
	    if (librariesPath != null) {
	        //check src
	        if (new File(librariesPath + "src").exists())
	            paths[0] = new Path(librariesPath + "src");
	        
	        // check reference or docs
	        if (new File(librariesPath + "reference").exists()) 
	            paths[1] = new Path(librariesPath + "reference");
	        
	        else if (new File(librariesPath + "doc").exists()) 
                paths[1] = new Path(librariesPath + "doc");
	    }
	    return paths;
	}