# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

- Deprecated Classes
  Class and Description
  org.gjt.sp.jedit.options.PluginOptions use CombinedOptions

- Deprecated Fields
  Field and Description
  org.gjt.sp.jedit.Debug.ALTERNATIVE_DISPATCHER no longer used.

- Deprecated Methods
  Method and Description
  org.gjt.sp.jedit.Mode.acceptFilename(String) use `Mode.acceptFile(String, String)` instead
  org.gjt.sp.jedit.bsh.JavaCharStream.getColumn()
  org.gjt.sp.jedit.Buffer.getFile() Do not call this method, use `Buffer.getPath()` instead.
  org.gjt.sp.jedit.MiscUtilities.getFileNameNoExtension(String) use getBaseName() instead.
  org.gjt.sp.jedit.bsh.JavaCharStream.getLine()
  org.gjt.sp.jedit.textarea.TextArea.getMarkPosition() Do not use.
  org.gjt.sp.jedit.OperatingSystem.hasJava17() - there is no point in checking for this since we require Java 1.7. Returns if Java 2 version 1.7 is in use.
  org.gjt.sp.jedit.OperatingSystem.isDOSDerived() use `OperatingSystem.isWindows()`
  org.gjt.sp.util.StandardUtilities.objectsEqual(Object, Object) use {java.util.Objects#equals(Object, Object}
  org.gjt.sp.jedit.io.VFSManager.runInAWTThread(Runnable) Using that method, when you run a task in AWT Thread, it will wait for all background task causing some unwanted delays. If you need calling a task after a background work, please add your runnable to the EDT thread yourself at the end of the background task
  org.gjt.sp.jedit.io.VFSManager.runInWorkThread(Task) You should not use this method, this threadpool links the AWT Threads and Work threads.
  org.gjt.sp.jedit.bsh.NameSpace.setTypedVariable(String, Class, Object, boolean) See #setTypedVariable( String, Class, Object, Modifiers )
  org.gjt.sp.jedit.Registers.Register.setValue(String) use `Registers.Register.setTransferable(java.awt.datatransfer.Transferable)` instead, for example `setTransferable(new StringSelection(""))`
  org.gjt.sp.jedit.Registers.Register.toString()