int[] returnCodes= {IRequestQuery.YES, IRequestQuery.NO, IRequestQuery.YES_ALL, IRequestQuery.CANCEL};
int[] returnCodes= {IRequestQuery.YES, IRequestQuery.YES_ALL, IRequestQuery.NO, IRequestQuery.CANCEL};
	private int showQueryDialog(final String message) {		int[] returnCodes= {IRequestQuery.YES, IRequestQuery.NO, IRequestQuery.YES_ALL, IRequestQuery.CANCEL};		final Shell shell= JavaPlugin.getActiveWorkbenchShell();		if (shell == null) {			JavaPlugin.logErrorMessage("AddMethodStubAction.showQueryDialog: No active shell found"); //$NON-NLS-1$			return IRequestQuery.CANCEL;		}		final int[] result= { MessageDialog.CANCEL };		shell.getDisplay().syncExec(new Runnable() {			public void run() {				String title= JavaUIMessages.getString("AddMethodStubAction.QueryDialog.title"); //$NON-NLS-1$				String[] options= {IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL};				MessageDialog dialog= new MessageDialog(shell, title, null, message, MessageDialog.QUESTION, options, 0);				result[0]= dialog.open();							}		});		int returnVal= result[0];		return returnVal < 0 ? IRequestQuery.CANCEL : returnCodes[returnVal];	}	