Bug 6828 Support with replace with previous
This is likely a dup, but filed as a reminder. The replace from local history action should provide a replace with previous action.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionAction.java
private static final String BUNDLE_NAME= "org.eclipse.jdt.internal.ui.compare.ReplaceWithEditionAction"; 
	
	
	public JavaReplaceWithEditionAction() {
	}	
	
	
	protected ITypedElement[] buildEditions(ITypedElement target, IFile file, IFileState[] states) {
		ITypedElement[] editions= new ITypedElement[states.length+1];
		editions[0]= new ResourceNode(file);
		for (int i= 0; i < states.length; i++)
			editions[i+1]= new HistoryItem(target, states[i]);
		return editions;
	}
	/**
	 * @see Action#run
	 */
	public void run(IAction action) {
		
		String errorTitle= CompareMessages.getString("ReplaceFromHistory.title"); 
		String errorMessage= CompareMessages.getString("ReplaceFromHistory.internalErrorMessage"); 
		
		Shell shell= JavaPlugin.getActiveWorkbenchShell();