Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteicher2003-08-25 06:03:04 +0000
committerteicher2003-08-25 06:03:04 +0000
commit5bdd9be7dfc806f02595e82fdd193af1a47b74c1 (patch)
treeffc567402e0915795b34d41863404e147c6dcb2a /org.eclipse.core.filebuffers
parentb6054cb16f6b212afac4a5c4d5bc951d172af197 (diff)
downloadeclipse.platform.text-5bdd9be7dfc806f02595e82fdd193af1a47b74c1.tar.gz
eclipse.platform.text-5bdd9be7dfc806f02595e82fdd193af1a47b74c1.tar.xz
eclipse.platform.text-5bdd9be7dfc806f02595e82fdd193af1a47b74c1.zip
- log exceptions when running SafeRunnables to plugin log
Diffstat (limited to 'org.eclipse.core.filebuffers')
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileBuffer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileBuffer.java
index 8068c0bba..e58f2eb6f 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileBuffer.java
@@ -24,6 +24,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Status;
public abstract class FileBuffer implements IFileBuffer {
@@ -63,6 +64,7 @@ public abstract class FileBuffer implements IFileBuffer {
try {
execute();
} catch (Exception x) {
+ FileBuffersPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, "Exception when synchronizing", x)); //$NON-NLS-1$
fManager.fireStateChangeFailed(FileBuffer.this);
}
}

Back to the top