Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-07-19 16:10:23 +0000
committerAlexander Kurtakov2017-07-19 16:10:23 +0000
commit8e8b622b4bf49f7e77107db4335e10731eb53254 (patch)
treeaff0eafed9ebc8ccbaa1db91c9b415c6468ea49b /bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/OpenRevisionAction.java
parentd796c830dbef8ef8ba662ac974b21ce5a174d739 (diff)
downloadeclipse.platform.team-8e8b622b4bf49f7e77107db4335e10731eb53254.tar.gz
eclipse.platform.team-8e8b622b4bf49f7e77107db4335e10731eb53254.tar.xz
eclipse.platform.team-8e8b622b4bf49f7e77107db4335e10731eb53254.zip
Bug 519875 - Cleanup o.e.team.ui
Move Runnables to lambdas. Change-Id: I8ab7b9d9262c9d37ecf345ed4427e811fbb97387 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/OpenRevisionAction.java')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/OpenRevisionAction.java18
1 files changed, 7 insertions, 11 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/OpenRevisionAction.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/OpenRevisionAction.java
index 890509257..a764d66ca 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/OpenRevisionAction.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/OpenRevisionAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2007 IBM Corporation and others.
+ * Copyright (c) 2006, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -14,7 +14,6 @@ package org.eclipse.team.internal.ui.actions;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.IStructuredSelection;
@@ -56,16 +55,13 @@ public class OpenRevisionAction extends BaseSelectionListenerAction {
if (revision == null || !revision.exists()) {
MessageDialog.openError(page.getSite().getShell(), TeamUIMessages.OpenRevisionAction_DeletedRevTitle, TeamUIMessages.OpenRevisionAction_DeletedRevMessage);
} else {
- IRunnableWithProgress runnable = new IRunnableWithProgress() {
- @Override
- public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
- try {
- Utils.openEditor(page.getSite().getPage(), revision, monitor);
- } catch (CoreException e) {
- throw new InvocationTargetException(e);
- }
-
+ IRunnableWithProgress runnable = monitor -> {
+ try {
+ Utils.openEditor(page.getSite().getPage(), revision, monitor);
+ } catch (CoreException e) {
+ throw new InvocationTargetException(e);
}
+
};
IProgressService progressService = PlatformUI.getWorkbench().getProgressService();

Back to the top