Replace deprecated platform calls. Remove unused imports.

This commit is contained in:
peterdell 2020-10-13 01:56:37 +02:00
parent e227317c6e
commit ccaf1a554e
5 changed files with 4 additions and 10 deletions

View File

@ -29,10 +29,9 @@ import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.IDE;
import com.wudsn.ide.asm.AssemblerPlugin;
/**
* Implementation class for extension
* "com.wudsn.ide.asm.editor.AssemblerBreakpoinDebugModelPresentation". This is
@ -66,7 +65,7 @@ public class AssemblerBreakpoinDebugModelPresentation implements IDebugModelPres
AssemblerBreakpoint assemblerBreakpoint = (AssemblerBreakpoint) element;
IEditorInput result = assemblerBreakpoint.getEditorInput();
if (result == null) {
IWorkbenchWindow activeWindow = AssemblerPlugin.getInstance().getWorkbench().getActiveWorkbenchWindow();
IWorkbenchWindow activeWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (activeWindow == null) {
return null;
}

View File

@ -19,8 +19,6 @@
package com.wudsn.ide.base.gui;
import com.wudsn.ide.base.gui.MessageManager;
/**
* Interface to be implemented by applications.
*

View File

@ -27,7 +27,6 @@ import org.eclipse.swt.dnd.Transfer;
import org.eclipse.ui.IWorkbenchSite;
import org.eclipse.ui.handlers.HandlerUtil;
import com.wudsn.ide.hex.Texts;
import com.wudsn.ide.base.common.HexUtility;
import com.wudsn.ide.base.common.NumberUtility;

View File

@ -10,6 +10,7 @@ import org.eclipse.core.runtime.Path;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;
final class HexEditorFonts {
@ -21,7 +22,7 @@ final class HexEditorFonts {
}
public void init() {
Display display = HexPlugin.getInstance().getWorkbench().getDisplay();
Display display = PlatformUI.getWorkbench().getDisplay();
// From http://members.bitstream.net/~marksim/atarimac/fonts.html
atari8Font = loadFont(display, "fonts/atari8/ATARCC__.TTF", "");

View File

@ -21,9 +21,6 @@
*/
package resid_builder.resid;
import resid_builder.resid.EnvelopeGenerator;
import resid_builder.resid.WaveformGenerator;
/**
* Representation of SID voice block.
*