public boolean proceed(RefactoringStatus status) { final Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fTitle, false); final int[] result= new int[1]; Runnable r= new Runnable() { public void run() { result[0]= dialog.open(); } }; fParent.getDisplay().syncExec(r); return result[0] == IDialogConstants.OK_ID; } public void stopped(final RefactoringStatus status) {
Dialog d= RefactoringUI.createLightWeightStatusDialog(status, getShell(), ActionMessages.GenerateHashCodeEqualsAction_error_caption); if (d.open() != Window.OK) { notifyResult(false);
fHistoryControl= (ISortableRefactoringHistoryControl) RefactoringUI.createSortableRefactoringHistoryControl(composite, configuration); fHistoryControl.createControl(); boolean sortProjects= true;
change.initializeValidationData(new NullProgressMonitor()); PerformChangeOperation performChangeOperation= RefactoringUI.createUIAwareChangeOperation(change); performChangeOperation.setSchedulingRule(unit.getSchedulingRule());
} else { fWizard.setInitialConditionCheckingStatus(fInitialConditions); Dialog dialog= RefactoringUI.createRefactoringWizardDialog(fWizard, parent); dialog.create(); IWizardContainer wizardContainer= (IWizardContainer) dialog;
Dialog d= RefactoringUI.createLightWeightStatusDialog(status, getShell(), getErrorCaption()); if (d.open() != Window.OK) { notifyResult(false);
fHistoryControl= (ISortableRefactoringHistoryControl) RefactoringUI.createSortableRefactoringHistoryControl(composite, configuration); fHistoryControl.createControl(); boolean sortProjects= true;
fChange.initializeValidationData(new SubProgressMonitor(pm, 1, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK)); fPerformChangeOperation= RefactoringUI.createUIAwareChangeOperation(fChange); fPerformChangeOperation.setUndoManager(RefactoringCore.getUndoManager(), fRefactoring.getName()); if (fRefactoring instanceof IScheduledRefactoring)
public boolean proceed(RefactoringStatus status) { final Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fTitle, false); final int[] result= new int[1]; Runnable r= new Runnable() { public void run() { result[0]= dialog.open(); } }; fParent.getDisplay().syncExec(r); return result[0] == IDialogConstants.OK_ID; } public void stopped(final RefactoringStatus status) {
Dialog dialog= RefactoringUI.createLightWeightStatusDialog(refactoringStatus, getShell(), WorkbenchNavigatorMessages.MoveResourceAction_title); int result = dialog.open(); if (result != IStatus.OK)
fHistoryControl= (ISortableRefactoringHistoryControl) RefactoringUI.createSortableRefactoringHistoryControl(composite, configuration); fHistoryControl.createControl(); boolean sortProjects= true;
Change change= refactoring.createChange(new NullProgressMonitor()); change.initializeValidationData(new NullProgressMonitor()); PerformChangeOperation op= RefactoringUI.createUIAwareChangeOperation(change);
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
Dialog d= RefactoringUI.createLightWeightStatusDialog(status, getShell(), getErrorCaption()); if (d.open() != Window.OK) { notifyResult(false);
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
protected boolean showStatusDialog(RefactoringStatus status) { Dialog dialog = RefactoringUI.createRefactoringStatusDialog(status, shell, refactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; }
private int showStatus(RefactoringStatus status) { if (!status.hasError()) return Window.OK; Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, shell, "", false); //$NON-NLS-1$ return dialog.open(); }
private int showStatus(RefactoringStatus status) { if (!status.hasError()) return Window.OK; Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, shell, "", false); //$NON-NLS-1$ return dialog.open(); }
private int showStatus(RefactoringStatus status) { if (!status.hasError()) return Window.OK; Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, shell, "", false); //$NON-NLS-1$ return dialog.open(); }