Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2004-05-06 17:52:58 +0000
committerDani Megert2004-05-06 17:52:58 +0000
commita7647fd1d663ce34db83678b3176b3ec9d5eaedd (patch)
tree30f178cea432ed8324054967f0502dc38404619f /org.eclipse.core.filebuffers
parente7f90fcc30f5da5c7171beb654e0e66d84d5eb7d (diff)
downloadeclipse.platform.text-a7647fd1d663ce34db83678b3176b3ec9d5eaedd.tar.gz
eclipse.platform.text-a7647fd1d663ce34db83678b3176b3ec9d5eaedd.tar.xz
eclipse.platform.text-a7647fd1d663ce34db83678b3176b3ec9d5eaedd.zip
Release Jim's patch to remove deprecations
Diffstat (limited to 'org.eclipse.core.filebuffers')
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java2
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java3
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java3
3 files changed, 3 insertions, 5 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java
index ca0c77e13..4b1bd582b 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java
@@ -192,7 +192,7 @@ public class ExtensionsRegistry {
* @param status the status to log
*/
private void log(IStatus status) {
- ILog log= Platform.getPlugin(FileBuffersPlugin.PLUGIN_ID).getLog();
+ ILog log= FileBuffersPlugin.getDefault().getLog();
log.log(status);
}
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java
index 8f77ce48e..e951adf71 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaFileBuffer.java
@@ -18,7 +18,6 @@ import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.filebuffers.FileBuffers;
@@ -184,7 +183,7 @@ public abstract class JavaFileBuffer extends AbstractFileBuffer {
* @param message the message to be logged
*/
protected void handleCoreException(CoreException exception) {
- ILog log= Platform.getPlugin(FileBuffersPlugin.PLUGIN_ID).getLog();
+ ILog log= FileBuffersPlugin.getDefault().getLog();
log.log(exception.getStatus());
}
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
index 3e25f98dd..cf1144ce9 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
@@ -25,7 +25,6 @@ import org.eclipse.core.runtime.IPath;
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;
import org.eclipse.core.filebuffers.FileBuffers;
@@ -388,7 +387,7 @@ public abstract class ResourceFileBuffer extends AbstractFileBuffer {
* @param message the message to be logged
*/
protected void handleCoreException(CoreException exception) {
- ILog log= Platform.getPlugin(FileBuffersPlugin.PLUGIN_ID).getLog();
+ ILog log= FileBuffersPlugin.getDefault().getLog();
log.log(exception.getStatus());
}

Back to the top