Deprecated API

Deprecated Classes
org.openide.text.EditorSupport
          Use DataEditorSupport instead 
org.openide.loaders.ExtensionListEditor
          Should not be used directly (property editor search path will find it). 
org.openide.windows.InputOutput.Null
          Use InputOutput.NULL instead. 
org.openide.windows.InputOutput.NullOutputWriter
          Use InputOutput.NULL instead. 
org.openide.text.NbDocument.Colors
          Not useful for anything. 
org.openide.NotifyDescriptor.Exception
          Better to use TopManager.notifyException(java.lang.Throwable), or for more control various methods in ErrorManager. 
org.openide.util.WeakListener.Change
          use appropriate method instead 
org.openide.util.WeakListener.Document
          use appropriate method instead 
org.openide.util.WeakListener.FileChange
          use appropriate method instead 
org.openide.util.WeakListener.FileStatus
          use appropriate method instead 
org.openide.util.WeakListener.Focus
          use appropriate method instead 
org.openide.util.WeakListener.Node
          use appropriate method instead 
org.openide.util.WeakListener.PropertyChange
          use appropriate method instead 
org.openide.util.WeakListener.Repository
          use appropriate method instead 
org.openide.util.WeakListener.VetoableChange
          use appropriate method instead 
 

Deprecated Interfaces
org.openide.explorer.view.MenuView.Acceptor
          This interface is almost the same as NodeAcceptor so it is redundant and obsoleted. Use NodeAcceptor interface instead. 
org.openide.util.NbBundle.ClassLoaderFinder
          Useless. 
org.openide.actions.ToolsAction.Model
          Useless, see ActionManager. 
 

Deprecated Exceptions
org.openide.util.io.FoldingIOException
          Better to create a new IOException and annotate it with the throwable. 
 

Deprecated Fields
org.openide.filesystems.DefaultAttributes.ATTR_EXT
          does not handle XML attributes 
org.openide.filesystems.DefaultAttributes.ATTR_NAME
          does not handle XML attributes 
org.openide.filesystems.DefaultAttributes.ATTR_NAME_EXT
          does not handle XML attributes 
org.openide.text.NbDocument.COLORS
          Not useful for anything. 
org.openide.text.EditorSupport.EDITOR_MODE
          Use CloneableEditorSupport.EDITOR_MODE instead. 
org.openide.text.EditorSupport.modifiedAppendix
            
org.openide.windows.InputOutput.nullReader
          Use InputOutput.NULL instead. 
org.openide.windows.InputOutput.nullWriter
          Use InputOutput.NULL instead. 
org.openide.util.Utilities.OS_DEC
          please use OS_TRU64 instead 
 

Deprecated Methods
org.openide.explorer.view.MenuView.Acceptor.accept(Node)
          whole interface is obsoleted, use NodeAcceptor.acceptNodes(org.openide.nodes.Node[]) instead. 
org.openide.loaders.ExecSupport.checkCompiled()
          The check should be done in an action - ExecAction, ... 
org.openide.compiler.ExternalCompiler.compilerType()
          While subclassing this method and specifying a type will still work, it is no longer recommended. Instead, please use Compiler.compilerGroupKey() and make all compiler-specific state available to the compiler group via other means (such as getter methods). 
org.openide.loaders.InstanceDataObject.create(DataFolder, String, Class)
          Use of XML filesystems to install instances is preferred. 
org.openide.loaders.InstanceDataObject.create(DataFolder, String, String)
          Use of XML filesystems to install instances is preferred. 
org.openide.loaders.XMLDataObject.createDocument()
          Moved to Util 
org.openide.loaders.XMLDataObject.createInputSource(URL)
          Deprecated as it was a workaround method. Replace with new InputSource(url.toExternalForm()). 
org.openide.loaders.XMLDataObject.createParser()
          Use Util instead. It will create a SAX XMLReader that is SAX Parser replacement. You will have to replace DocumentHandler by ContentHandler besause XMLReader accepts just ContentHandler.

Alternatively if not interested in new callbacks defined by SAX 2.0 you can wrap returned XMLReader into XMLReaderAdapter that implements Parser. 

org.openide.loaders.XMLDataObject.createParser(boolean)
          Use Util instead setting ns to false. For more details see createParser 
org.openide.compiler.ExternalCompilerGroup.createProcess(NbProcessDescriptor, String[], Object)
          Please instead directly override ExternalCompilerGroup.createProcess(NbProcessDescriptor,String[]) as this version does not use the now-deprecated "compiler type" object. 
org.openide.windows.WindowManager.createWorkspace(String)
          please use method createWorkspace(String name, String displayName) instead 
org.openide.filesystems.FileUtil.extractJar(FileObject, InputStream)
          Use of XML filesystem layers generally obsoletes this method. 
org.openide.modules.ModuleDescription.getDescription()
          Currently disused in favor of ModuleDescription.getDescriptionResource() 
org.openide.loaders.TemplateWizard.getDescriptionAsResource(DataObject)
          Use TemplateWizard.getDescription(org.openide.loaders.DataObject) instead. 
org.openide.text.PositionRef.getEditorSupport()
          Please use PositionRef.getCloneableEditorSupport() instead. 
org.openide.modules.ModuleDescription.getLayer()
          ModuleDescription.getLayerResource() actually used now 
org.openide.text.PrintSettings.getPageFormat()
          Use PrintSettings.getPageFormat(PrinterJob) instead. 
org.openide.actions.SaveAsTemplateAction.iconResource()
          Should never be called publically. 
org.openide.loaders.XMLDataObject.parse(URL)
          Use Util instead setting null error handler and validation to false. 
org.openide.loaders.XMLDataObject.parse(URL, boolean)
          Use Util instead setting null handler. 
org.openide.loaders.XMLDataObject.parse(URL, ErrorHandler)
          Use Util instead setting validation to false. 
org.openide.loaders.XMLDataObject.parse(URL, ErrorHandler, boolean)
          Use Util instead. 
org.openide.util.Mutex.postReadRequest(Runnable)
            
org.openide.text.IndentEngine.register(String, IndentEngine)
          IndentEngine now is a ServiceType 
org.openide.loaders.InstanceDataObject.remove(DataFolder, String, Class)
          Use of XML filesystems to install instances is preferred. 
org.openide.loaders.InstanceDataObject.remove(DataFolder, String, String)
          Use of XML filesystems to install instances is preferred. 
org.openide.src.ClassElement.removeInterface(Identifier[])
          the method's name is incorrect; please use removeInterfaces(ins) instead. 
org.openide.src.ClassElement.removeInterfaces(Identifier)
          the method's name is incorrect; please use removeInterface(i) instead. 
org.openide.actions.OpenProjectAction.run()
          does nothing 
org.openide.text.EditorSupport.setActions(SystemAction[])
            
org.openide.util.NbBundle.setClassLoaderFinder(NbBundle.ClassLoaderFinder)
          Useless. 
org.openide.TopManager.setDefault(TopManager)
          Useless. 
org.openide.nodes.NodeOp.setDefaultActions(SystemAction[])
          Useless. 
org.openide.loaders.TemplateWizard.setDescriptionAsResource(DataObject, String)
          Use TemplateWizard.setDescription(org.openide.loaders.DataObject, java.net.URL) instead. 
org.openide.actions.ToolsAction.setModel(ToolsAction.Model)
          Useless, see ActionManager. 
org.openide.util.Utilities.wrapString(String, int, boolean, boolean)
          Use (String, int, BreakIterator, boolean) as it is friendlier to I18N. 
org.openide.util.Utilities.wrapStringToArray(String, int, boolean, boolean)
          use Utilities.wrapStringToArray(String, int, BreakIterator, boolean) since it is better for I18N 
org.openide.loaders.XMLDataObject.write(Document, OutputStream, String)
          Moved to Util. 
org.openide.loaders.XMLDataObject.write(Document, Writer)
          Encoding used by Writer may be in direct conflict with encoding declared in document. Replaced with Util. 
 

Deprecated Constructors
org.openide.compiler.Compiler(Compiler)
          use new Compiler ().dependsOn (c); 
org.openide.compiler.Compiler(Compiler[])
          use new Compiler ().dependsOn (Arrays.asList (dep)); 
org.openide.compiler.Compiler(CompilerJob)
          use job.add (new Compiler ()); 
org.openide.loaders.DataFolder.Index(DataFolder)
          Please explicitly specify a node to be safe. 
org.openide.explorer.view.MenuView.Menu(Node, MenuView.Acceptor)
          use MenuView.Menu.MenuView.Menu(Node, NodeAcceptor) 
org.openide.explorer.view.MenuView.Menu(Node, MenuView.Acceptor, boolean)
          use MenuView.Menu.MenuView.Menu(Node, NodeAcceptor, boolean) 
org.openide.explorer.view.MenuView.MenuItem(Node, MenuView.Acceptor)
          Use proper constructor with (@link NodeAcceptor). 
org.openide.explorer.view.MenuView.MenuItem(Node, MenuView.Acceptor, boolean)
          Use proper constructor with (@link NodeAcceptor). 
org.openide.modules.ModuleDescription(File)
          Only for testing. 
org.openide.modules.ModuleDescription(String)
          Only for testing. 
org.openide.modules.ModuleDescription(String, Manifest)
          Better to explicitly provide a classloader. 
org.openide.util.NbBundle()
          There is no reason to instantiate or subclass this class. All methods in it are static. 
 



Built on February 22 2001.  |  Portions Copyright 1997-2000 Sun Microsystems, Inc. All rights reserved.