1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

[cleanup] avoid Platform internal access

This commit is contained in:
Martin Oberhuber 2007-01-30 21:47:17 +00:00
parent a63480c5c0
commit e9e70a23e6

View file

@ -39,8 +39,8 @@ import org.eclipse.ui.IFileEditorMapping;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPropertyListener;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.XMLMemento;
import org.eclipse.ui.internal.Workbench;
@ -107,7 +107,7 @@ public class SystemFileTransferModeRegistry
// editor registry. We can be out of sync because we may not have
// been listening for editor registry changes (e.g. if our plugin wasn't
// started while those changes were made).
IWorkbench wb = Workbench.getInstance();
IWorkbench wb = PlatformUI.getWorkbench();
if (wb != null)
{
IEditorRegistry registry = wb.getEditorRegistry();