int  AppendFilters (int filterMask) { System.out.println ("append filters");
int  AppendFilters (int  filterMask) {
int /*long*/ AppendFilters (int filterMask) {	System.out.println ("append filters");	String[] addFilters = null;	switch (filterMask) {		case nsIFilePicker.filterAll:		case nsIFilePicker.filterApps:			masks = null;			/* this is equivalent to no filter */			break;		case nsIFilePicker.filterHTML:			addFilters = new String[] {"*.htm;*.html"}; //$NON-NLS-1$			break;		case nsIFilePicker.filterImages:			addFilters = new String[] {"*.gif;*.jpeg;*.jpg;*.png"};	//$NON-NLS-1$			break;		case nsIFilePicker.filterText:			addFilters = new String[] {"*.txt"};	//$NON-NLS-1$			break;		case nsIFilePicker.filterXML:			addFilters = new String[] {"*.xml"};	//$NON-NLS-1$			break;		case nsIFilePicker.filterXUL:			addFilters = new String[] {"*.xul"};	//$NON-NLS-1$			break;	}	if (masks == null) {		masks = addFilters;	} else {		if (addFilters != null) {			String[] newFilters = new String [masks.length + addFilters.length];			System.arraycopy (masks, 0, newFilters, 0, masks.length);			System.arraycopy (addFilters, 0, newFilters, masks.length, addFilters.length);			masks = newFilters;		}	}	return XPCOM.NS_OK;}