return dialog.open() == Dialog.OK;
return dialog.open() == Window.OK;
	private boolean saveAllDirtyEditors() {		if (RefactoringPreferences.getSaveAllEditors()) //must save everything			return true;		ListDialog dialog= new ListDialog(JavaPlugin.getActiveWorkbenchShell()) {			protected Control createDialogArea(Composite parent) {				Composite result= (Composite) super.createDialogArea(parent);				final Button check= new Button(result, SWT.CHECK);				check.setText(RefactoringMessages.getString("RefactoringStarter.always_save")); //$NON-NLS-1$				check.setSelection(RefactoringPreferences.getSaveAllEditors());				check.addSelectionListener(new SelectionAdapter() {					public void widgetSelected(SelectionEvent e) {						RefactoringPreferences.setSaveAllEditors(check.getSelection());					}				});				applyDialogFont(result);						return result;			}		};		dialog.setTitle(RefactoringMessages.getString("RefactoringStarter.save_all_resources")); //$NON-NLS-1$		dialog.setAddCancelButton(true);		dialog.setLabelProvider(createDialogLabelProvider());		dialog.setMessage(RefactoringMessages.getString("RefactoringStarter.must_save")); //$NON-NLS-1$		dialog.setContentProvider(new ListContentProvider());		dialog.setInput(Arrays.asList(JavaPlugin.getDirtyEditors()));		return dialog.open() == Dialog.OK;	}