Bug 24255 Internal error when invoking "Restore from Local History" in Outline view
smoke for 20021001 1. Open TestCase.java 2. Select the method at the end of the Outline view 3. From context menu select "Delete" 4. Now you must be fast: in the dialog press "Yes", go to the previously selected method, open the context menu and select "Restore from Local History..."
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java
String errorTitle= CompareMessages.getString("ReplaceFromHistory.title"); 
		String errorMessage= CompareMessages.getString("ReplaceFromHistory.internalErrorMessage"); 
		
		Shell shell= JavaPlugin.getActiveWorkbenchShell();
		
		
		ISelection selection= getSelection();
		IMember input= getEditionElement(selection);
		if (input == null) {
			
			MessageDialog.openError(shell, errorTitle, errorMessage);
			return;
		}
		
		IFile file= getFile(input);
		if (file == null) {
			MessageDialog.openError(shell, errorTitle, errorMessage);
			return;
		}
										
		boolean inEditor= beingEdited(file);
		if (inEditor)
			input= (IMember) getWorkingCopy(input);
		
		TextBuffer buffer= null;
		try {
			buffer= TextBuffer.acquire(file);
			ResourceBundle bundle= ResourceBundle.getBundle(BUNDLE_NAME);
			EditionSelectionDialog d= new EditionSelectionDialog(shell, bundle);
			d.setHelpContextId(IJavaHelpContextIds.REPLACE_ELEMENT_WITH_HISTORY_DIALOG);