Bug 4381 Replace from local histroy - workspace element included
- modify a CU in the workspace - select the CU - activate "Replace from local history" - the workspace element is included in the local histroy, but a histroy never includes the actual element. I was really suprised seeing the element.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaCompareWithEditionAction.java
* Overidden to disable dismiss on double click (see PR 1GI3KUR).
		 */
		protected void okPressed() {
		}
	}
				
	private static final String BUNDLE_NAME= "org.eclipse.jdt.internal.ui.compare.CompareWithEditionAction"; 
	
	
	public JavaCompareWithEditionAction() {
	}	
	public JavaCompareWithEditionAction(ISelectionProvider sp) {
		super(sp);
		
		setText(CompareMessages.getString("ReplaceFromHistory.action.label")); 
		
		update();
	}
			
	/**
	 * @see Action#run
	 */
	public final void run() {
		
		String errorTitle= CompareMessages.getString("ReplaceFromHistory.title"); 
		String errorMessage= CompareMessages.getString("ReplaceFromHistory.internalErrorMessage"); 
		
		Shell shell= JavaPlugin.getActiveWorkbenchShell();