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:
parent
a63480c5c0
commit
e9e70a23e6
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue