Bug 47729 Unable to ignore '*,D' files [filters]
I am using Aegis which produces files having the extension ',D', e.g. 'MyClass.java,D'. I want to ignore these files from being shown in the Package Explorer. I tried the filter in Project - Properties - Java Build Path - Source - Exclusion Filter but failed. I tried **/*,D **/*.java,D **/*.java?D without success. Seems as if this filter only ignores .java files. The only help I found was the filter for 'non-java elements', but then my .properties files disappear, too.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/filters/CustomFiltersDialog.java
String id= filterDescs[i].getId();
			if (enabledFilterIds.contains(id))
				result.add(filterDescs[i]);
		}
		return (FilterDescriptor[])result.toArray(new FilterDescriptor[result.size()]);
	}
	public static String[] convertFromString(String patterns, String separator) {
		StringTokenizer tokenizer= new StringTokenizer(patterns, separator);
		String[] result= new String[tokenizer.countTokens()];
		for (int i= 0; i < result.length; i++)
			result[i]= tokenizer.nextToken().trim();
		return result;
	}
	public static String convertToString(String[] patterns, String separator) {
		int length= patterns.length;
		StringBuffer strBuf= new StringBuffer();
		if (length > 0)
			strBuf.append(patterns[0]);
		else
			return ""; 
		int i= 1;
		while (i < length) {
			strBuf.append(separator);
			strBuf.append(" "); 
			strBuf.append(patterns[i++]);
		}
		return strBuf.toString();
	}
}