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 285229
Collapse All | Expand All

(-)src/org/eclipse/pde/internal/core/exports/FeatureExportOperation.java (-7 / +3 lines)
Lines 39-45 Link Here
39
import org.eclipse.pde.internal.core.feature.FeatureChild;
39
import org.eclipse.pde.internal.core.feature.FeatureChild;
40
import org.eclipse.pde.internal.core.ifeature.*;
40
import org.eclipse.pde.internal.core.ifeature.*;
41
import org.eclipse.pde.internal.core.util.CoreUtility;
41
import org.eclipse.pde.internal.core.util.CoreUtility;
42
import org.osgi.framework.InvalidSyntaxException;
42
import org.osgi.framework.Filter;
43
import org.w3c.dom.*;
43
import org.w3c.dom.*;
44
44
45
public class FeatureExportOperation extends Job {
45
public class FeatureExportOperation extends Job {
Lines 1045-1056 Link Here
1045
	}
1045
	}
1046
1046
1047
	protected boolean shouldAddPlugin(BundleDescription bundle, Dictionary environment) {
1047
	protected boolean shouldAddPlugin(BundleDescription bundle, Dictionary environment) {
1048
		String filterSpec = bundle.getPlatformFilter();
1048
		Filter filter = BundleHelper.getDefault().getFilter(bundle);
1049
		try {
1049
		return (filter == null || filter.match(environment));
1050
			return (filterSpec == null || PDECore.getDefault().getBundleContext().createFilter(filterSpec).match(environment));
1051
		} catch (InvalidSyntaxException e) {
1052
		}
1053
		return false;
1054
	}
1050
	}
1055
1051
1056
	/**
1052
	/**

Return to bug 285229