Deprecated API


Contents
Deprecated Interfaces
org.gjt.sp.jedit.MiscUtilities.Compare
            
 

Deprecated Classes
org.gjt.sp.jedit.Buffer.TokenList
          Use org.gjt.sp.jedit.syntax.DefaultTokenHandler instead 
org.gjt.sp.util.CharIndexedSegment
          Use SegmentCharSequence and the java.util.regex package instead. 
gnu.regexp.REFilterInputStream
          This class cannot properly handle all character encodings. For proper handling, use the REFilterReader class instead. 
org.gjt.sp.jedit.io.VFS.DirectoryEntry
          Use VFSFile instead. 
 

Deprecated Fields
org.gjt.sp.jedit.View.ABOVE_ACTION_BAR_LAYER
          Status bar no longer added as a tool bar. 
org.gjt.sp.jedit.io.VFS.BROWSE_CAP
          Do not define this capability.

This was the official API for adding items to a file system browser's Plugins menu in jEdit 4.1 and earlier. In jEdit 4.2, there is a different way of doing this, you must provide a browser.actions.xml file in your plugin JAR, and define plugin.class.browser-menu-item or plugin.class.browser-menu properties. See EditPlugin for details. 

org.gjt.sp.jedit.io.VFSFile.canRead
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.io.VFSFile.canWrite
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.io.VFSFile.deletePath
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.GUIUtilities.DIRTY_BUFFER_ICON
          Use GUIUtilities.loadIcon("dirty.gif"); instead. 
org.gjt.sp.jedit.io.VFSFile.hidden
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.io.VFSFile.length
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.io.FileVFS.LocalFile.modified
          Call getModified() instead. 
org.gjt.sp.jedit.io.VFSFile.name
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.GUIUtilities.NEW_BUFFER_ICON
          Use GUIUtilities.loadIcon("new.gif"); instead. 
org.gjt.sp.jedit.GUIUtilities.NORMAL_BUFFER_ICON
          Use GUIUtilities.loadIcon("normal.gif"); instead. 
org.gjt.sp.jedit.io.VFSFile.path
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.GUIUtilities.READ_ONLY_BUFFER_ICON
          Use GUIUtilities.loadIcon("readonly.gif"); instead. 
org.gjt.sp.jedit.io.VFSFile.symlinkPath
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.io.VFSFile.type
          Use the accessor/mutator methods instead. 
org.gjt.sp.jedit.GUIUtilities.WINDOW_ICON
          Use GUIUtilities.loadIcon("jedit-icon.gif"); instead. 
 

Deprecated Methods
org.gjt.sp.jedit.io.VFS._listDirectory(Object, String, Component)
          Use _listFiles() instead. 
org.gjt.sp.jedit.Buffer.addBufferChangeListener(BufferChangeListener)
          Call JEditBuffer.addBufferListener(BufferListener). 
org.gjt.sp.jedit.Buffer.addBufferChangeListener(BufferChangeListener, int)
          Call JEditBuffer.addBufferListener(BufferListener,int). 
org.gjt.sp.jedit.gui.HistoryModel.clear()
          Call removeAllElements() instead. 
org.gjt.sp.jedit.MiscUtilities.closeQuietly(InputStream)
          use IOUtilities.closeQuietly(java.io.InputStream) 
org.gjt.sp.jedit.MiscUtilities.closeQuietly(OutputStream)
          use IOUtilities.closeQuietly(java.io.OutputStream) 
org.gjt.sp.jedit.MiscUtilities.compareVersions(String, String)
          Call compareStrings() instead 
org.gjt.sp.jedit.MiscUtilities.copyStream(int, ProgressObserver, InputStream, OutputStream, boolean)
          use IOUtilities.copyStream(int, org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean) 
org.gjt.sp.jedit.MiscUtilities.copyStream(ProgressObserver, InputStream, OutputStream, boolean)
          use IOUtilities.copyStream(org.gjt.sp.util.ProgressObserver, java.io.InputStream, java.io.OutputStream, boolean) 
org.gjt.sp.jedit.EditPlugin.createMenuItems(Vector)
          Instead of overriding this method, define properties as specified in the description of this class. 
org.gjt.sp.jedit.EditPlugin.createOptionPanes(OptionsDialog)
          Instead of overriding this method, define properties as specified in the description of this class. 
org.gjt.sp.jedit.MiscUtilities.createWhiteSpace(int, int)
          use StandardUtilities.createWhiteSpace(int, int) 
org.gjt.sp.jedit.MiscUtilities.createWhiteSpace(int, int, int)
          use StandardUtilities.createWhiteSpace(int, int, int) 
org.gjt.sp.jedit.io.VFSManager.error(Component, String, Object[])
          Call the other error() method instead. 
org.gjt.sp.jedit.BeanShell.eval(View, NameSpace, String, boolean)
          The rethrowBshErrors parameter is now obsolete; call _eval() or eval() instead. 
org.gjt.sp.jedit.BeanShell.eval(View, String, boolean)
          The rethrowBshErrors parameter is now obsolete; call _eval() or eval() instead. 
org.gjt.sp.jedit.jEdit.getActions()
          Call getActionNames() instead 
org.gjt.sp.jedit.PluginJAR.getActions()
          Call getActionSet() instead 
org.gjt.sp.jedit.jEdit.getActionSetForAction(EditAction)
          Use the form that takes a String instead 
bsh.JavaCharStream.getColumn()
            
org.gjt.sp.jedit.Buffer.getFile()
          Do not call this method, use Buffer.getPath() instead. 
org.gjt.sp.jedit.MiscUtilities.getFileParent(String)
          Call getParentOfPath() instead 
org.gjt.sp.jedit.MiscUtilities.getFileProtocol(String)
          Call getProtocolOfURL() instead 
org.gjt.sp.jedit.io.VFSManager.getFilesystems()
          Use getVFSs() instead. 
org.gjt.sp.jedit.MiscUtilities.getLeadingWhiteSpace(String)
          use StandardUtilities.getLeadingWhiteSpace(String) 
org.gjt.sp.jedit.MiscUtilities.getLeadingWhiteSpaceWidth(String, int)
          use StandardUtilities.getLeadingWhiteSpace(String) 
bsh.JavaCharStream.getLine()
            
org.gjt.sp.jedit.textarea.JEditTextArea.getMarkLine()
          Do not use. 
org.gjt.sp.jedit.textarea.JEditTextArea.getMarkPosition()
          Do not use. 
org.gjt.sp.jedit.MiscUtilities.getOffsetOfVirtualColumn(Segment, int, int, int[])
          use StandardUtilities.getVirtualWidth(javax.swing.text.Segment, int) 
org.gjt.sp.jedit.textarea.JEditTextArea.getSelectionEnd()
          Instead, obtain a Selection instance using any means, and call its getEnd() method 
org.gjt.sp.jedit.textarea.JEditTextArea.getSelectionEnd(int)
          Instead, obtain a Selection instance using any means, and call its getEnd(int) method 
org.gjt.sp.jedit.textarea.JEditTextArea.getSelectionEndLine()
          Instead, obtain a Selection instance using any means, and call its getEndLine() method 
org.gjt.sp.jedit.textarea.JEditTextArea.getSelectionStart()
          Instead, obtain a Selection instance using any means, and call its getStart() method 
org.gjt.sp.jedit.textarea.JEditTextArea.getSelectionStart(int)
          Instead, obtain a Selection instance using any means, and call its getStart(int) method 
org.gjt.sp.jedit.textarea.JEditTextArea.getSelectionStartLine()
          Instead, obtain a Selection instance using any means, and call its getStartLine() method 
gnu.regexp.REMatch.getSubEndIndex(int)
          Use getEndIndex(int) instead 
gnu.regexp.REMatch.getSubStartIndex(int)
          Use getStartIndex(int) instead. 
org.gjt.sp.jedit.MiscUtilities.getTrailingWhiteSpace(String)
          use StandardUtilities.getTrailingWhiteSpace(String) 
org.gjt.sp.jedit.io.VFSManager.getVFSByName(String)
          Use getVFSForProtocol() instead. 
org.gjt.sp.jedit.EditAction.getView(Component)
          Call GUIUtilities.getView() instead. 
org.gjt.sp.jedit.MiscUtilities.getVirtualWidth(Segment, int)
          use StandardUtilities.getVirtualWidth(javax.swing.text.Segment, int) 
org.gjt.sp.jedit.JARClassLoader.getZipFile()
          Call PluginJAR.getZipFile() instead. 
org.gjt.sp.jedit.buffer.JEditBuffer.indentLine(int, boolean, boolean)
          Use JEditBuffer.indentLine(int,boolean) instead. 
org.gjt.sp.jedit.Buffer.insertString(int, String, AttributeSet)
          Call insert() instead. 
org.gjt.sp.jedit.textarea.TextAreaPainter.isAntiAliasEnabled()
          - use @ref getAntiAlias() 
org.gjt.sp.jedit.textarea.JEditTextArea.isSelectionRectangular()
          Instead, check if the appropriate Selection is an instance of the Selection.Rect class. 
org.gjt.sp.jedit.Buffer.markTokens(int)
          Use the other form of markTokens() instead 
org.gjt.sp.jedit.jEdit.openFile(View, String, String, boolean, boolean)
          The openFile() forms with the readOnly parameter should not be used. The readOnly prameter is no longer supported. 
org.gjt.sp.jedit.jEdit.openFile(View, String, String, boolean, boolean, Hashtable)
          The openFile() forms with the readOnly parameter should not be used. The readOnly prameter is no longer supported. 
org.gjt.sp.jedit.Buffer.putBooleanProperty(String, boolean)
          Call setBooleanProperty() instead 
org.gjt.sp.jedit.Buffer.putProperty(Object, Object)
          Call setProperty() instead. 
org.gjt.sp.jedit.MiscUtilities.quicksort(List, Comparator)
          Collections.sort() 
org.gjt.sp.jedit.MiscUtilities.quicksort(Object[], Comparator)
          use Arrays.sort() 
org.gjt.sp.jedit.MiscUtilities.quicksort(Object[], MiscUtilities.Compare)
          use Arrays.sort() 
org.gjt.sp.jedit.MiscUtilities.quicksort(Vector, Comparator)
          Collections.sort() 
org.gjt.sp.jedit.MiscUtilities.quicksort(Vector, MiscUtilities.Compare)
          Collections.sort() 
org.gjt.sp.jedit.gui.InputHandler.readNextChar(String)
          Use the other form of this method instead 
org.gjt.sp.jedit.io.VFSManager.registerVFS(String, VFS)
          Write a services.xml file instead; see ServiceManager. 
org.gjt.sp.jedit.Buffer.removeBufferChangeListener(BufferChangeListener)
          Call JEditBuffer.removeBufferListener(BufferListener). 
org.gjt.sp.jedit.BeanShell.runScript(View, String, boolean, boolean)
          The rethrowBshErrors parameter is now obsolete; call _runScript() or runScript() instead. 
org.gjt.sp.jedit.BeanShell.runScript(View, String, Reader, boolean, boolean)
          The rethrowBshErrors parameter is now obsolete; call _runScript() or runScript() instead. 
org.gjt.sp.jedit.textarea.JEditTextArea.select(int, int)
          Instead, call either addToSelection(), or setSelection() with a new Selection instance. 
org.gjt.sp.jedit.textarea.JEditTextArea.select(int, int, boolean)
          Instead, call either addToSelection(), or setSelection() with a new Selection instance. 
org.gjt.sp.jedit.textarea.TextAreaPainter.setAntiAliasEnabled(boolean)
          use setAntiAlias(AntiAlias newMode) 
org.gjt.sp.util.WorkRequest.setProgressMaximum(int)
          use WorkRequest.setMaximum(long) 
org.gjt.sp.util.WorkRequest.setProgressValue(int)
          use WorkRequest.setValue(long) 
org.gjt.sp.jedit.textarea.JEditTextArea.setSelectionEnd(int)
          Do not use. 
org.gjt.sp.jedit.textarea.JEditTextArea.setSelectionStart(int)
          Do not use. 
bsh.NameSpace.setTypedVariable(String, Class, Object, boolean)
          See #setTypedVariable( String, Class, Object, Modifiers ) 
org.gjt.sp.jedit.MiscUtilities.stringsEqual(String, String)
          Call objectsEqual() instead. 
 

Deprecated Constructors
org.gjt.sp.jedit.io.VFS(String)
          Use the form where the constructor takes a capability list.