|
Lines 48-53
Link Here
|
| 48 |
import org.eclipse.osgi.util.ManifestElement; |
48 |
import org.eclipse.osgi.util.ManifestElement; |
| 49 |
import org.eclipse.pde.api.tools.internal.provisional.ApiPlugin; |
49 |
import org.eclipse.pde.api.tools.internal.provisional.ApiPlugin; |
| 50 |
import org.eclipse.pde.api.tools.internal.provisional.Factory; |
50 |
import org.eclipse.pde.api.tools.internal.provisional.Factory; |
|
|
51 |
import org.eclipse.pde.api.tools.internal.provisional.IApiComponent; |
| 51 |
import org.eclipse.pde.api.tools.internal.provisional.IApiDescription; |
52 |
import org.eclipse.pde.api.tools.internal.provisional.IApiDescription; |
| 52 |
import org.eclipse.pde.api.tools.internal.provisional.IApiFilterStore; |
53 |
import org.eclipse.pde.api.tools.internal.provisional.IApiFilterStore; |
| 53 |
import org.eclipse.pde.api.tools.internal.provisional.IApiProfile; |
54 |
import org.eclipse.pde.api.tools.internal.provisional.IApiProfile; |
|
Lines 397-402
Link Here
|
| 397 |
} |
398 |
} |
| 398 |
} |
399 |
} |
| 399 |
} |
400 |
} |
|
|
401 |
IRequiredComponentDescription[] requiredComponents = component.getRequiredComponents(); |
| 402 |
int length = requiredComponents.length; |
| 403 |
if (length != 0) { |
| 404 |
IApiProfile profile = this.getProfile(); |
| 405 |
if (profile != null) { |
| 406 |
for (int i = 0; i < length; i++) { |
| 407 |
IRequiredComponentDescription description = requiredComponents[i]; |
| 408 |
if (description.isExported()) { |
| 409 |
String id = description.getId(); |
| 410 |
IApiComponent requiredApiComponent = profile.getApiComponent(id); |
| 411 |
if (requiredApiComponent != null) { |
| 412 |
IClassFileContainer[] classFileContainers = requiredApiComponent.getClassFileContainers(); |
| 413 |
int classFileContainersLength = classFileContainers == null ? 0 : classFileContainers.length; |
| 414 |
if (classFileContainersLength != 0) { |
| 415 |
List innerContainers = new ArrayList(classFileContainersLength); |
| 416 |
for (int j = 0; j< classFileContainersLength; j++) { |
| 417 |
innerContainers.add(classFileContainers[j]); |
| 418 |
} |
| 419 |
containers.add(new CompositeClassFileContainer(innerContainers, this.getId())); |
| 420 |
} |
| 421 |
} |
| 422 |
} |
| 423 |
} |
| 424 |
} |
| 425 |
} |
| 400 |
} |
426 |
} |
| 401 |
} catch (BundleException e) { |
427 |
} catch (BundleException e) { |
| 402 |
abort("Unable to parse bundle classpath", e); //$NON-NLS-1$ |
428 |
abort("Unable to parse bundle classpath", e); //$NON-NLS-1$ |