Bug 3512 Reorg confirmation dialog (1G470GF)
- the title shouldn't be "Save". It should be more specific regarding the current reorg action. - ok should be the default button. NOTES: EG (11/17/00 12:38:48 PM) not critical
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
result.add(o);	
		}
		return result;
	}
	
	private static int askIfOverwrite(String elementName){
		Shell shell= JavaPlugin.getActiveWorkbenchShell().getShell();
		String title= "Resource Exists";
		String question= "Element " + elementName + " already exists. Would you like to overwrite?";
		
		String[] labels= new String[] {IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL,
															 IDialogConstants.NO_LABEL,  IDialogConstants.CANCEL_LABEL };
		final MessageDialog dialog = new MessageDialog(shell,	title, null, question, MessageDialog.QUESTION,	labels,  0);
		shell.getDisplay().syncExec(new Runnable() {
			public void run() {
				dialog.open();
			}
		});
		int result = dialog.getReturnCode();
		if (result == 0)
			return IDialogConstants.YES_ID;
		if (result == 1)
			return IDialogConstants.YES_TO_ALL_ID;
		if (result == 2)
			return IDialogConstants.NO_ID;
		return IDialogConstants.CANCEL_ID;
	}
	
	
	protected void setShowPreview(boolean showPreview) {