Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureCreator.java')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureCreator.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureCreator.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureCreator.java
index 32eb38ea8..9264a199d 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureCreator.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureCreator.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2013 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
@@ -86,14 +86,11 @@ public abstract class StructureCreator implements IStructureCreator2 {
public IStructureComparator createStructure(final Object element,
final IProgressMonitor monitor) throws CoreException {
final IStructureComparator[] result = new IStructureComparator[] { null };
- Runnable runnable = new Runnable() {
- @Override
- public void run() {
- try {
- result[0]= internalCreateStructure(element, monitor);
- } catch (OperationCanceledException ex) {
- return;
- }
+ Runnable runnable = () -> {
+ try {
+ result[0]= internalCreateStructure(element, monitor);
+ } catch (OperationCanceledException ex) {
+ return;
}
};
Utilities.runInUIThread(runnable);

Back to the top