Deprecated API


Contents
Deprecated Interfaces
com.intellij.openapi.fileTypes.FileTypeSupportCapabilities
          This interface is no longer used 
com.intellij.psi.codeStyle.Indent
            
com.intellij.psi.PsiRootPackageType
            
com.intellij.usageView.UsageView
            
 

Deprecated Classes
com.intellij.openapi.diff.DiffPanelFactory
            
com.intellij.util.ui.IdeaUIManager
          Use UIUtil instead 
com.intellij.psi.codeStyle.IdentifierRole
            
com.intellij.openapi.roots.libraries.LibraryTableUtil
          Use LibraryTablesRegistrar instead. 
 

Deprecated Fields
com.intellij.j2ee.module.J2EEPackagingMethod.COPY_CLASSES
            
com.intellij.openapi.projectRoots.ProjectRootType.EXCLUDE
            
com.intellij.openapi.actionSystem.DataConstants.OPEN_FILE_DESCRIPTOR
          DataConstants.NAVIGATABLE should be used instead 
com.intellij.openapi.projectRoots.ProjectRootType.PROJECT
            
 

Deprecated Methods
com.intellij.openapi.ui.Splitter.add(Component)
            
com.intellij.usages.UsageView.addButtonToLowerPane(Runnable, String, char)
          please specify mnemonic by prefixing the mnenonic character with an ampersand (&& for Mac-specific ampersands) 
com.intellij.usageView.UsageViewManager.addContent(String, UsageViewDescriptor, boolean, boolean, boolean, boolean, boolean)
            
com.intellij.usageView.UsageViewManager.addContent(String, UsageViewDescriptor, boolean, boolean, boolean, ProgressFactory)
            
com.intellij.usages.UsageView.addPerformOperationAction(Runnable, String, String, String, char)
          please specify mnemonic by prefixing the mnenonic character with an ampersand (&& for Mac-specific ampersands) 
com.intellij.psi.util.MethodSignatureUtil.areSignaturesEqual(PsiMethod, PsiMethod)
          use areSignaturesEqual() which takes correct substitutors 
com.intellij.psi.PsiElement.checkAdd(PsiElement)
          not all PSI implementations implement this method correctly. 
com.intellij.psi.PsiElement.checkDelete()
          not all PSI implementations implement this method correctly. 
com.intellij.psi.codeStyle.CodeStyleManager.checkIdentifierRole(String, IdentifierRole)
            
com.intellij.usageView.UsageViewManager.closeContent(UsageView)
            
com.intellij.openapi.module.ModifiableModuleModel.commitAssertingNoCircularDependency()
          use ModifiableModuleModel.commit() instead. 
com.intellij.openapi.diff.DiffPanelFactory.createDiffPanel(Project, boolean)
            
com.intellij.openapi.diff.DiffPanelFactory.createDiffPanel(Project, Window, boolean)
            
com.intellij.psi.PsiElementFactory.createTypeByFQClassName(String)
          use PsiElementFactory.createTypeByFQClassName(String, GlobalSearchScope) 
com.intellij.psi.PsiElementFactory.detachType(PsiType)
          Optimization method, do not use if you do not understand what it does. 
com.intellij.openapi.module.ModuleManager.dispatchPendingEvent(ModuleListener)
          for internal IDEA use. 
com.intellij.openapi.roots.ProjectRootManager.dispatchPendingEvent(ModuleRootListener)
          for IDEA internal use. 
com.intellij.openapi.command.CommandProcessor.executeCommand(Runnable, String, Object)
          use CommandProcessor.executeCommand(com.intellij.openapi.project.Project, java.lang.Runnable, java.lang.String, java.lang.Object) 
com.intellij.psi.codeStyle.CodeStyleManager.fillIndent(Indent, FileType)
            
com.intellij.psi.PsiManager.findClass(String)
          use PsiManager.findClass(String, GlobalSearchScope) 
com.intellij.psi.util.PsiSuperMethodUtil.findDeepestSuperMethod(PsiMethod)
            
com.intellij.psi.util.PsiSuperMethodUtil.findSuperMethods(PsiMethod)
            
com.intellij.psi.util.PsiSuperMethodUtil.findSuperMethods(PsiMethod, boolean)
            
com.intellij.psi.util.PsiSuperMethodUtil.findSuperMethods(PsiMethod, PsiClass)
            
com.intellij.psi.util.PsiSuperMethodUtil.findSuperMethodSignaturesIncludingStatic(PsiMethod, boolean)
            
com.intellij.openapi.editor.Document.getChars()
          Use Document.getCharsSequence() or Document.getText() instead. 
com.intellij.ide.util.gotoByName.ChooseByNameModel.getCheckBoxMnemonic()
          Mark mnemonic char with '&' ('&&' for mac if mnemonic char is 'N') in checkbox name instead 
com.intellij.openapi.roots.ModifiableRootModel.getCompilerOutputUrl()
          Use ModuleRootModel.getCompilerOutputPathUrl() instead 
com.intellij.openapi.roots.ModifiableRootModel.getCompilerOutputUrlForTests()
          Use ModuleRootModel.getCompilerOutputPathForTestsUrl() instead 
com.intellij.openapi.roots.libraries.Library.getFilePointers(OrderRootType)
            
com.intellij.openapi.roots.ProjectRootManager.getFullClassPath()
            
com.intellij.psi.codeStyle.CodeStyleManager.getIndent(String, FileType)
            
com.intellij.usageView.UsageDescriptorBasedOnUsageInfo.getInfo()
          To be used in deprecated isExcluded only. 
com.intellij.openapi.roots.ProjectRootManager.getJdk()
            
com.intellij.openapi.editor.Document.getMarkupModel()
          use Document.getMarkupModel(com.intellij.openapi.project.Project) instead. 
com.intellij.psi.PsiManager.getRootDirectories(int)
            
com.intellij.openapi.roots.ProjectRootManager.getRootFiles(ProjectRootType)
            
com.intellij.usageView.UsageViewManager.getSelectedUsageView()
            
com.intellij.openapi.vcs.FileStatusManager.getStatusColor(VirtualFile)
          Use getStatus(file).getColor()} instead 
com.intellij.openapi.vcs.FileStatusManager.getStatusText(VirtualFile)
          Use getStatus(file).getText()} instead 
com.intellij.psi.codeStyle.CodeStyleManager.insertNewLineIndentMarker(PsiFile, int)
          this method is not designed to be used by plugins. 
com.intellij.openapi.application.LaterInvocator.invokeAndWait(Runnable, ModalityState)
          use Application.invokeAndWait(java.lang.Runnable, com.intellij.openapi.application.ModalityState) instead. 
com.intellij.openapi.application.LaterInvocator.invokeLater(Runnable)
          use Application.invokeLater(java.lang.Runnable) instead. 
com.intellij.openapi.application.LaterInvocator.invokeLater(Runnable, ModalityState)
          use Application.invokeLater(java.lang.Runnable, com.intellij.openapi.application.ModalityState) instead. 
com.intellij.psi.util.InheritanceUtil.isInheritor(PsiClass, PsiClass, boolean)
          Use PsiClass.isInheritor(com.intellij.psi.PsiClass, boolean) instead. 
com.intellij.psi.util.PsiUtil.isInProject(PsiElement)
          Use PsiManager.isInProject(com.intellij.psi.PsiElement) 
com.intellij.psi.tree.TokenSet.isInSet(IElementType)
          use TokenSet.contains(IElementType) instead. This appears to be a better naming. 
com.intellij.psi.codeStyle.CodeStyleManager.isLineToBeIndented(PsiFile, int)
          this method is not intended to be used by plugins. 
com.intellij.psi.PsiSubstitutor.merge(PsiSubstitutor)
          use PsiSubstitutor.putAll(PsiSubstitutor) instead. 
com.intellij.codeInsight.intention.IntentionManager.registerIntentionAndMetaData(IntentionAction, String[], String)
          custom directory name causes problem with internationalization of inspection descriptions. 
com.intellij.psi.util.PsiSuperMethodUtil.removeOverriddenMethods(List, PsiClass, PsiClass)
            
com.intellij.util.text.StringSearcher.scan(char[], int, int)
          Use StringSearcher.scan(CharSequence) instead 
com.intellij.psi.PsiCodeFragment.setEverythingAcessible(boolean)
          use #setVisibilityChecker(VisibilityChecker.EVERYTHING_VISIBLE) instead. 
com.intellij.psi.codeStyle.CodeStyleManager.zeroIndent()
            
 

Deprecated Constructors
com.intellij.openapi.vcs.CheckinProjectDialog(Module)
          use ModuleLevelVcsManager.createCheckinProjectDialog() 
com.intellij.openapi.vcs.CheckinProjectDialog(Module, CheckinEnvironment)
          use ModuleLevelVcsManager.createCheckinProjectDialog(CheckinEnvironment) 
com.intellij.openapi.vcs.CheckinProjectDialog(Module, String, boolean, CheckinEnvironment, Collection)
          use ModuleLevelVcsManager.createCheckinProjectDialog(java.lang.String, boolean, com.intellij.openapi.vcs.checkin.CheckinEnvironment, java.util.Collection) 
com.intellij.j2ee.serverInstances.DefaultJ2EEServerEvent(String, String, boolean, boolean)
          First two parameters are no longer used. 
com.intellij.debugger.engine.JSR45PositionManager(DebugProcess)
          Use JSR45PositionManager(DebugProcess debugProcess, Module[] scopeModules) and explicitly specify WebModules to be used when searching for sources 
com.intellij.openapi.module.ModuleWithNameAlreadyExists(String)
          use constructor which allows passing of localized message