diff options
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java index 0dcce6704..6b9dd3339 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java @@ -44,19 +44,17 @@ public class CompareWithRevisionAction extends WorkspaceAction { public void execute(IAction action) throws InvocationTargetException, InterruptedException { // Show the compare viewer - run(new IRunnableWithProgress() { - @Override - public void run(IProgressMonitor monitor) throws InterruptedException, InvocationTargetException { - if (isShowInDialog()) { - IFile file = (IFile) getSelectedResources()[0]; - showCompareInDialog(getShell(), file); - } else { - IHistoryView view = TeamUI.showHistoryFor(TeamUIPlugin.getActivePage(), getSelectedResources()[0], null); - IHistoryPage page = view.getHistoryPage(); - if (page instanceof CVSHistoryPage){ - CVSHistoryPage cvsHistoryPage = (CVSHistoryPage) page; - cvsHistoryPage.setClickAction(true); - } + run((IRunnableWithProgress) monitor -> { + if (isShowInDialog()) { + IFile file = (IFile) getSelectedResources()[0]; + showCompareInDialog(getShell(), file); + } else { + IHistoryView view = TeamUI.showHistoryFor(TeamUIPlugin.getActivePage(), getSelectedResources()[0], + null); + IHistoryPage page = view.getHistoryPage(); + if (page instanceof CVSHistoryPage) { + CVSHistoryPage cvsHistoryPage = (CVSHistoryPage) page; + cvsHistoryPage.setClickAction(true); } } }, false /* cancelable */, PROGRESS_BUSYCURSOR); |