Set inputs= new HashSet(7); 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].getEditors(); for (int z= 0; z < editors.length; z++) { IEditorPart editor= editors[z]; IEditorInput input= editor.getEditorInput(); if (editor.isDirty() && !inputs.contains(input)) { inputs.add(input); result.add(editor); } } } } return (IEditorPart[])result.toArray(new IEditorPart[result.size()]);
return internalGetDirtyEditors();
	public static IEditorPart[] getDirtyEditors() {		Set inputs= new HashSet(7);		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].getEditors();				for (int z= 0; z < editors.length; z++) {					IEditorPart editor= editors[z];					IEditorInput input= editor.getEditorInput();					if (editor.isDirty() && !inputs.contains(input)) {						inputs.add(input);						result.add(editor);					}				}			}		}		return (IEditorPart[])result.toArray(new IEditorPart[result.size()]);	}