Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 233426
Collapse All | Expand All

(-)src/org/eclipse/pde/api/tools/internal/PluginProjectApiComponent.java (+7 lines)
Lines 109-114 Link Here
109
	protected boolean isBinaryBundle() {
109
	protected boolean isBinaryBundle() {
110
		return false;
110
		return false;
111
	}
111
	}
112
	
113
	/* (non-Javadoc)
114
	 * @see org.eclipse.pde.api.tools.internal.BundleApiComponent#isApiEnabled()
115
	 */
116
	protected boolean isApiEnabled() {
117
		return Util.isApiProject(fProject);
118
	}
112
119
113
	/* (non-Javadoc)
120
	/* (non-Javadoc)
114
	 * @see org.eclipse.pde.api.tools.internal.descriptors.AbstractApiComponent#dispose()
121
	 * @see org.eclipse.pde.api.tools.internal.descriptors.AbstractApiComponent#dispose()
(-)src/org/eclipse/pde/api/tools/internal/BundleApiComponent.java (-1 / +15 lines)
Lines 353-359 Link Here
353
			List all = new ArrayList();
353
			List all = new ArrayList();
354
			// build the classpath from bundle and all fragments
354
			// build the classpath from bundle and all fragments
355
			all.add(this);
355
			all.add(this);
356
			if (isBinaryBundle() || !"org.eclipse.swt".equals(getId())) { //$NON-NLS-1$
356
			boolean considerFragments = true;
357
			if ("org.eclipse.swt".equals(getId())) { //$NON-NLS-1$
358
				// if SWT is a project to be built/analyzed don't consider its fragments
359
				considerFragments = !isApiEnabled();
360
			}
361
			if (considerFragments) { 
357
				BundleDescription[] fragments = fBundleDescription.getFragments();
362
				BundleDescription[] fragments = fBundleDescription.getFragments();
358
				for (int i = 0; i < fragments.length; i++) {
363
				for (int i = 0; i < fragments.length; i++) {
359
					BundleDescription fragment = fragments[i];
364
					BundleDescription fragment = fragments[i];
Lines 405-410 Link Here
405
	}
410
	}
406
	
411
	
407
	/**
412
	/**
413
	 * Returns whether this API component is enabled for API analysis by the API builder.
414
	 * 
415
	 * @return whether this API component is enabled for API analysis by the API builder.
416
	 */
417
	protected boolean isApiEnabled() {
418
		return false;
419
	}
420
	
421
	/**
408
	 * Returns classpath entries defined in the given manifest.
422
	 * Returns classpath entries defined in the given manifest.
409
	 * 
423
	 * 
410
	 * @param manifest
424
	 * @param manifest

Return to bug 233426