1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-27 10:55:33 +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.IMemento;
import org.eclipse.ui.IPropertyListener; import org.eclipse.ui.IPropertyListener;
import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.XMLMemento; 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 // 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 // been listening for editor registry changes (e.g. if our plugin wasn't
// started while those changes were made). // started while those changes were made).
IWorkbench wb = Workbench.getInstance(); IWorkbench wb = PlatformUI.getWorkbench();
if (wb != null) if (wb != null)
{ {
IEditorRegistry registry = wb.getEditorRegistry(); IEditorRegistry registry = wb.getEditorRegistry();