mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-12-23 00:29:47 +00:00
Replace deprecated platform calls. Remove unused imports.
This commit is contained in:
parent
e227317c6e
commit
ccaf1a554e
@ -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;
|
||||
}
|
||||
|
@ -19,8 +19,6 @@
|
||||
|
||||
package com.wudsn.ide.base.gui;
|
||||
|
||||
import com.wudsn.ide.base.gui.MessageManager;
|
||||
|
||||
/**
|
||||
* Interface to be implemented by applications.
|
||||
*
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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", "");
|
||||
|
@ -21,9 +21,6 @@
|
||||
*/
|
||||
package resid_builder.resid;
|
||||
|
||||
import resid_builder.resid.EnvelopeGenerator;
|
||||
import resid_builder.resid.WaveformGenerator;
|
||||
|
||||
/**
|
||||
* Representation of SID voice block.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user