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. 
org.gjt.sp.jedit.MiscUtilities.StringCompare
          use StandardUtilities.StringCompare 
org.gjt.sp.util.ReadWriteLock
          Use java.util.concurrent.locks.ReentrantReadWriteLock which is available since J2SE 5.0 (1.5). This class was written for J2SE 1.4, and is still here only for compatibility. 
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.syntax.ParserRule.EXCLUDE_MATCH
           
org.gjt.sp.jedit.bufferio.BufferIORequest.GZIP_MAGIC_1
           
org.gjt.sp.jedit.bufferio.BufferIORequest.GZIP_MAGIC_2
           
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.syntax.ParserRule.next
          As the linking between rules is not anymore done within the rule but external. See ParserRuleSet.getRules(Character) 
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.bufferio.BufferIORequest.UNICODE_MAGIC_1
           
org.gjt.sp.jedit.bufferio.BufferIORequest.UNICODE_MAGIC_2
           
org.gjt.sp.jedit.MiscUtilities.UTF_8_Y
          Extended encodings are now supported as services. This value is no longer used. 
org.gjt.sp.jedit.bufferio.BufferIORequest.UTF8_MAGIC_1
           
org.gjt.sp.jedit.bufferio.BufferIORequest.UTF8_MAGIC_2
           
org.gjt.sp.jedit.bufferio.BufferIORequest.UTF8_MAGIC_3
           
org.gjt.sp.jedit.GUIUtilities.WINDOW_ICON
          Use GUIUtilities.loadIcon("jedit-icon.gif"); instead. 
org.gjt.sp.jedit.bufferio.BufferIORequest.XML_PI_LENGTH
           
 

Deprecated Methods
org.gjt.sp.jedit.io.VFS._getDirectoryEntry(Object, String, Component)
          Use _getFile() instead. 
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.GUIUtilities.centerOnScreen(Window)
          use Window.setLocationRelativeTo(java.awt.Component) 
org.gjt.sp.jedit.MiscUtilities.charsToEntities(String)
          Use XMLUtilities.charsToEntities(String, boolean). 
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.compareStrings(String, String, boolean)
          use StandardUtilities.compareStrings(String, String, boolean) 
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.syntax.ParserRule.createRegexpEOLSpanRule(char, int, String, ParserRuleSet, byte, byte, boolean)
          Use #createRegexpEOLSpanRule(String,int,String,ParserRuleSet,byte,boolean,boolean) instead 
org.gjt.sp.jedit.syntax.ParserRule.createRegexpSequenceRule(char, int, String, ParserRuleSet, byte, boolean)
          Use ParserRule.createRegexpSequenceRule(String,int,String,ParserRuleSet,byte,boolean) instead 
org.gjt.sp.jedit.syntax.ParserRule.createRegexpSpanRule(char, int, String, int, String, ParserRuleSet, byte, byte, boolean, boolean, boolean, boolean)
          Use #createRegexpSpanRule(String,int,String,int,String,ParserRuleSet,byte,boolean,boolean,boolean,boolean,boolean) instead 
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.MiscUtilities.findEntity(String, String, Class)
          Use XMLUtilities.findEntity(String,String,Class). 
org.gjt.sp.jedit.PluginJAR.getActions()
          Call getActionSet() instead 
org.gjt.sp.jedit.jEdit.getActions()
          Call getActionNames() instead 
org.gjt.sp.jedit.jEdit.getActionSetForAction(EditAction)
          Use the form that takes a String instead 
bsh.JavaCharStream.getColumn()
            
org.gjt.sp.jedit.MiscUtilities.getEncodings()
          See #getEncodings( boolean ) 
org.gjt.sp.jedit.Buffer.getFile()
          Do not call this method, use Buffer.getPath() instead. 
org.gjt.sp.jedit.browser.VFSBrowser.getFilenameFilter()
          Use VFSBrowser.getVFSFileFilter() instead. This method might return wrong information since jEdit 4.3pre6. 
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.Buffer.getMarkersPath(VFS)
          it will fail if you save to another VFS. use Buffer.getMarkersPath(VFS, String) 
org.gjt.sp.jedit.textarea.TextArea.getMarkLine()
          Do not use. 
org.gjt.sp.jedit.textarea.TextArea.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.syntax.ParserRuleSet.getRules(char)
          As the linking between rules is not anymore done within the rule, use ParserRuleSet.getRules(Character) instead 
org.gjt.sp.jedit.textarea.TextArea.getSelectionEnd()
          Instead, obtain a Selection instance using any means, and call its getEnd() method 
org.gjt.sp.jedit.textarea.TextArea.getSelectionEnd(int)
          Instead, obtain a Selection instance using any means, and call its getEnd(int) method 
org.gjt.sp.jedit.textarea.TextArea.getSelectionEndLine()
          Instead, obtain a Selection instance using any means, and call its getEndLine() method 
org.gjt.sp.jedit.textarea.TextArea.getSelectionStart()
          Instead, obtain a Selection instance using any means, and call its getStart() method 
org.gjt.sp.jedit.textarea.TextArea.getSelectionStart(int)
          Instead, obtain a Selection instance using any means, and call its getStart(int) method 
org.gjt.sp.jedit.textarea.TextArea.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.MiscUtilities.globToRE(String)
          Use StandardUtilities.globToRE(String). 
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.buffer.JEditBuffer.isElectricKey(char)
          Use #isElectricKey(char,int) 
org.gjt.sp.jedit.textarea.TextArea.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.MiscUtilities.moveFile(File, File)
          use IOUtilities.moveFile(java.io.File, java.io.File) 
org.gjt.sp.jedit.MiscUtilities.objectsEqual(Object, Object)
          use StandardUtilities.objectsEqual(Object, Object) 
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.MiscUtilities.parseXML(InputStream, DefaultHandler)
          Use XMLUtilities.parseXML(InputStream,DefaultHandler). 
org.gjt.sp.jedit.search.SearchDialog.preloadSearchDialog(View)
          no reason to use this method anymore now we have JIT compiler 
org.gjt.sp.jedit.View.processKeyEvent(KeyEvent, int, boolean)
          do not use, try InputHandler.processKeyEvent(java.awt.event.KeyEvent, int, boolean) 
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.TextArea.select(int, int)
          Instead, call either addToSelection(), or setSelection() with a new Selection instance. 
org.gjt.sp.jedit.textarea.TextArea.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.TextArea.setSelectionEnd(int)
          Do not use. 
org.gjt.sp.jedit.textarea.TextArea.setSelectionStart(int)
          Do not use. 
bsh.NameSpace.setTypedVariable(String, Class, Object, boolean)
          See #setTypedVariable( String, Class, Object, Modifiers ) 
org.gjt.sp.jedit.io.VFS.showBrowseDialog(Object[], Component)
          This function is not used in the jEdit core anymore, so it doesn't have to be provided anymore. If you want to use it for another purpose like in the FTP plugin, feel free to do so. 
org.gjt.sp.jedit.GUIUtilities.showPopupMenu(JPopupMenu, Component, int, int)
          - use javax.swing.JComponent#setComponentPopupMenu(), which works better and is simpler to use: you don't have to write the code to show/hide popups in response to mouse events anymore. 
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.