Class ResolutionUtil
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.ResolutionUtil
Utility class that provides a few static methods useful for resolving.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.core.resources.IFileReturns the IFile located at the given URI.Tells this resolver how much of the dependency graph should be created at once.static booleanisInterruptedOrCanceled(org.eclipse.core.runtime.IProgressMonitor monitor) Checks if the current thread is interrupted or if the given monitor has been canceled.
-
Method Details
-
getResolutionScope
Tells this resolver how much of the dependency graph should be created at once. Note that this value may change during a resolution, which sole "visible" effect would be to prevent resolution of further outgoing references if the new value is "SELF".- Returns:
- The current resolution scope.
-
isInterruptedOrCanceled
public static boolean isInterruptedOrCanceled(org.eclipse.core.runtime.IProgressMonitor monitor) Checks if the current thread is interrupted or if the given monitor has been canceled.- Parameters:
monitor- the monitor to check- Returns:
- true if the current thread has been canceled, false otherwise.
-
getFileAt
Returns the IFile located at the given URI.- Parameters:
uri- URI we need the file for.- Returns:
- The IFile located at the given URI.
-