IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); ICompilationUnit unit= manager.getWorkingCopy(getEditorInput());
IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); ICompilationUnit unit= manager.getWorkingCopy(getEditorInput());   if (unit != null) {  unit.copy(fragment, null, fileName, true, monitor); return; }
			public void execute(final IProgressMonitor monitor) throws CoreException {								if (fragment != null) {					try {													// copy to another package						IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();						ICompilationUnit unit= manager.getWorkingCopy(getEditorInput());												/*						 * 1GJXY0L: ITPJUI:WINNT - NPE during save As in Java editor						 * Introduced null check, just go on in the null case						 */						if (unit != null) {							/* 							 * 1GF5YOX: ITPJUI:ALL - Save of delete file claims it's still there							 * Changed false to true.							 */							unit.copy(fragment, null, fileName, true, monitor);							return;						}											} catch (JavaModelException x) {					}				}								// if (fragment == null) then copy to a directory which is not a package				// if (unit == null) copy the file that is not a compilation unit								/* 				 * 1GF5YOX: ITPJUI:ALL - Save of delete file claims it's still there				 * Changed false to true.				 */				getDocumentProvider().saveDocument(monitor, newInput, getDocumentProvider().getDocument(getEditorInput()), true);			}