fElementMapper.putAll((IWorkingSet[])fActiveWorkingSets.toArray(new IWorkingSet[fActiveWorkingSets.size()]));
    public Object[] addWorkingSets(Object[] elements) {    	fElementMapper.putAll((IWorkingSet[])fActiveWorkingSets.toArray(new IWorkingSet[fActiveWorkingSets.size()]));    	List result= null;    	for (int i= 0; i < elements.length; i++) {    		Object element= elements[i];    		List sets= null;			if (element instanceof IResource) {    			sets= fElementMapper.getAllWorkingSetsForResource((IResource)element);    		} else {    			sets= fElementMapper.getAllWorkingSets(element);    		}			if (sets != null && sets.size() > 0) {				if (result == null)					result= new ArrayList(Arrays.asList(elements));				result.addAll(sets);			}		}    	if (result == null)    		return elements;    	return result.toArray();    }