String[] buttonlabels= new String[] { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.NO_TO_ALL_LABEL }; MessageDialog dialog= new MessageDialog(getShell(), JavadocExportMessages.getString("JavadocWizard.updatejavadocdialog.label"), Dialog.getImage(Dialog.DLG_IMG_QUESTION), message, 4, buttonlabels, 1);
MessageDialog dialog= new MessageDialog(shell, JavadocExportMessages.getString("JavadocWizard.updatejavadocdialog.label"), image, message, 4, buttonlabels, 1);
	private void setAllJavadocLocations(IJavaProject[] projects, URL newURL) {		for (int j= 0; j < projects.length; j++) {			IJavaProject iJavaProject= projects[j];			String message= JavadocExportMessages.getFormattedString("JavadocWizard.updatejavadoclocation.message", new String[] { iJavaProject.getElementName(), fDestination.toOSString()}); //$NON-NLS-1$			String[] buttonlabels= new String[] { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.NO_TO_ALL_LABEL };			MessageDialog dialog= new MessageDialog(getShell(), JavadocExportMessages.getString("JavadocWizard.updatejavadocdialog.label"), Dialog.getImage(Dialog.DLG_IMG_QUESTION), message, 4, buttonlabels, 1);//$NON-NLS-1$			switch (dialog.open()) {				case YES :					JavaUI.setProjectJavadocLocation(iJavaProject, newURL);					break;				case YES_TO_ALL :					for (int i= j; i < projects.length; i++) {						iJavaProject= projects[i];						JavaUI.setProjectJavadocLocation(iJavaProject, newURL);						j++;					}					break;				case NO_TO_ALL :					j= projects.length;					break;				case NO :				default :					break;			}		}	}