if (!result.contains(ep))
IEditorInput input= ep.getEditorInput(); if (!inputs.contains(input)) { inputs.add(input);
	public static IEditorPart[] getDirtyEditors() {		List result= new ArrayList(0);		IWorkbench workbench= getDefault().getWorkbench();		IWorkbenchWindow[] windows= workbench.getWorkbenchWindows();		for (int i= 0; i < windows.length; i++) {			IWorkbenchPage[] pages= windows[i].getPages();			for (int x= 0; x < pages.length; x++) {				IEditorPart[] editors= pages[x].getDirtyEditors();				for (int z= 0; z < editors.length; z++) {					IEditorPart ep= editors[z];					if (!result.contains(ep))						result.add(ep);				}			}		}		return (IEditorPart[])result.toArray(new IEditorPart[result.size()]);	}