diff options
| author | Lars Vogel | 2016-12-09 03:32:42 +0000 |
|---|---|---|
| committer | Sergey Prigogin | 2016-12-09 13:22:42 +0000 |
| commit | 6d3c64f1217fa7a7afe59d9c037a980eda8bddf0 (patch) | |
| tree | 97982934beee6e0300782c5d5a78c397375d78b4 | |
| parent | fa42bc3159161459f4e89b6e4f3e213e841ae40d (diff) | |
| download | eclipse.platform.resources-6d3c64f1217fa7a7afe59d9c037a980eda8bddf0.tar.gz eclipse.platform.resources-6d3c64f1217fa7a7afe59d9c037a980eda8bddf0.tar.xz eclipse.platform.resources-6d3c64f1217fa7a7afe59d9c037a980eda8bddf0.zip | |
Bug 508952 - Replace Policy.checkCanceled with SubMonitor#splitY20161215-1200I20161220-0530I20161219-2000I20161219-0145I20161218-2000I20161217-2000I20161216-2000I20161215-2000I20161215-0915I20161215-0830I20161215-0730I20161215-0130I20161214-2000I20161214-1005I20161213-2000I20161213-0600I20161213-0300I20161212-2000I20161211-2000I20161210-2000
Change-Id: If8542a565f387200976ec71c64570dee73ee05fe
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
| -rw-r--r-- | bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java index 5aa22b923..7a591ac86 100644 --- a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java +++ b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2016 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 @@ -13,7 +13,8 @@ package org.eclipse.core.internal.filesystem; import java.io.*; import java.util.Date; import org.eclipse.core.internal.runtime.RuntimeLog; -import org.eclipse.core.runtime.*; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.Status; /** * Grab bag of utility methods for the file system plugin @@ -21,11 +22,6 @@ import org.eclipse.core.runtime.*; public class Policy { public static final String PI_FILE_SYSTEM = "org.eclipse.core.filesystem"; //$NON-NLS-1$ - public static void checkCanceled(IProgressMonitor monitor) { - if (monitor.isCanceled()) - throw new OperationCanceledException(); - } - /** * Print a debug message to the console. * Pre-pend the message with the current date and the name of the current thread. |
