public static FilterDescriptor[] getFilterDescriptors(String targetId) { FilterDescriptor[] filterDescs= FilterDescriptor.getFilterDescriptors(); List result= new ArrayList(filterDescs.length); for (int i= 0; i < filterDescs.length; i++) { String tid= filterDescs[i].getTargetId(); if (tid == null || tid.equals(targetId)) result.add(filterDescs[i]); } return (FilterDescriptor[])result.toArray(new FilterDescriptor[result.size()]);
public static FilterDescriptor[] getFilterDescriptors() { if (fgFilterDescriptors == null) { IExtensionRegistry registry= Platform.getExtensionRegistry(); IConfigurationElement[] elements= registry.getConfigurationElementsFor(JavaUI.ID_PLUGIN, EXTENSION_POINT_NAME); fgFilterDescriptors= createFilterDescriptors(elements); } return fgFilterDescriptors;
	public static FilterDescriptor[] getFilterDescriptors(String targetId) {		FilterDescriptor[] filterDescs= FilterDescriptor.getFilterDescriptors();		List result= new ArrayList(filterDescs.length);		for (int i= 0; i < filterDescs.length; i++) {			String tid= filterDescs[i].getTargetId();			if (tid == null || tid.equals(targetId))				result.add(filterDescs[i]);		}		return (FilterDescriptor[])result.toArray(new FilterDescriptor[result.size()]);	}