Bug 3959 Dupilcate entry in save before copy dialog (1GF9IYY)
Open two java perspectives in two windows. Open the same .java file in both perspectives Change the contents of the file but do not save Select copy from the file's popup menu Note that in the dialog that appears the file is listed twice. NOTES:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java
/**
	 * Returns an array of all dirty editor parts.
	 * @return an array of all dirty editor parts.
	 */
	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].getEditors();
				for (int z= 0; z < editors.length; z++) {
					IEditorPart editor= editors[z];
					if (editor.isDirty())
						result.add(editor);
				}
			}
		}
		return (IEditorPart[])result.toArray(new IEditorPart[result.size()]);
	}
		
	public static String getPluginId() {
		return getDefault().getDescriptor().getUniqueIdentifier();
	}
	public static void log(IStatus status) {
		getDefault().getLog().log(status);
	}
	
	public static void logErrorMessage(String message) {