/** * @see JavaSourceLocator#setSourceLocations(IJavaSourceLocation[]) */ public void setSourceLocations(IJavaSourceLocation[] locations) { fSourceLocator.setSourceLocations(locations); }
/** * Constructs a new JavaSourceLocator that searches the * specified set of source locations for source elements. * * @param locations the source locations to search for * source, in the order they should be searched */ public JavaSourceLocator(IJavaSourceLocation[] locations) { setSourceLocations(locations); }
/** * Constructs a new JavaSourceLocator that searches the * specified set of source locations for source elements. * * @param locations the source locations to search for * source, in the order they should be searched */ public JavaSourceLocator(IJavaSourceLocation[] locations) { setSourceLocations(locations); }
/** * Constructs a new empty JavaSourceLocator. */ public JavaSourceLocator() { setSourceLocations(new IJavaSourceLocation[0]); }
/** * Constructs a new empty JavaSourceLocator. */ public JavaSourceLocator() { setSourceLocations(new IJavaSourceLocation[0]); }
/** * Constructs a new JavaSourceLocator that searches the * default set of source locations for the given Java project. * * @param project Java project * @exception CoreException if an exception occurs reading * the classpath of the given or any required project */ public JavaSourceLocator(IJavaProject project) throws CoreException { setSourceLocations(getDefaultSourceLocations(project)); }
/** * Constructs a new JavaSourceLocator that searches the * default set of source locations for the given Java project. * * @param project Java project * @exception CoreException if an exception occurs reading * the classpath of the given or any required project */ public JavaSourceLocator(IJavaProject project) throws CoreException { setSourceLocations(getDefaultSourceLocations(project)); }
/** * Constructs a source locator that searches for source * in the given Java project, and all of its required projects, * as specified by its build path or default source lookup * settings. * * @param project Java project * @exception CoreException if unable to read the project's * build path */ public JavaUISourceLocator(IJavaProject project) throws CoreException { fJavaProject = project; IJavaSourceLocation[] sls = JavaSourceLocator.getDefaultSourceLocations(project); fSourceLocator = new JavaSourceLocator(project); if (sls != null) { fSourceLocator.setSourceLocations(sls); } fAllowedToAsk = true; }
@Override public void initializeDefaults(ILaunchConfiguration configuration) throws CoreException { IRuntimeClasspathEntry[] entries = JavaRuntime.computeUnresolvedSourceLookupPath(configuration); IRuntimeClasspathEntry[] resolved = JavaRuntime.resolveSourceLookupPath(entries, configuration); setSourceLocations(getSourceLocations(resolved)); }
@Override public void initializeDefaults(ILaunchConfiguration configuration) throws CoreException { IRuntimeClasspathEntry[] entries = JavaRuntime.computeUnresolvedSourceLookupPath(configuration); IRuntimeClasspathEntry[] resolved = JavaRuntime.resolveSourceLookupPath(entries, configuration); setSourceLocations(getSourceLocations(resolved)); }
setSourceLocations(sourceLocations.toArray(new IJavaSourceLocation[sourceLocations.size()])); return; } catch (ParserConfigurationException e) {
setSourceLocations(sourceLocations.toArray(new IJavaSourceLocation[sourceLocations.size()])); return; } catch (ParserConfigurationException e) {