Lines 1800-1818
Link Here
|
1800 |
*/ |
1800 |
*/ |
1801 |
public IPackageFragmentRoot[] getPackageFragmentRoots() |
1801 |
public IPackageFragmentRoot[] getPackageFragmentRoots() |
1802 |
throws JavaModelException { |
1802 |
throws JavaModelException { |
1803 |
|
1803 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=338006 |
1804 |
Object[] children; |
1804 |
// This will ensure that the order is consistent with other methods such as |
1805 |
int length; |
1805 |
// IJavaProject#getAllPackageFragmentRoots() |
1806 |
IPackageFragmentRoot[] roots; |
1806 |
return computePackageFragmentRoots(getResolvedClasspath(), false, null); |
1807 |
|
|
|
1808 |
System.arraycopy( |
1809 |
children = getChildren(), |
1810 |
0, |
1811 |
roots = new IPackageFragmentRoot[length = children.length], |
1812 |
0, |
1813 |
length); |
1814 |
|
1815 |
return roots; |
1816 |
} |
1807 |
} |
1817 |
|
1808 |
|
1818 |
/** |
1809 |
/** |