mirror of
				https://github.com/JetBrains/intellij-platform-plugin-template.git
				synced 2025-06-13 13:04:09 +00:00 
			
		
		
		
	Fixed deprecated usage of ContentFactory in MyToolWindowFactory
				
					
				
			This commit is contained in:
		
							parent
							
								
									2e5e065b58
								
							
						
					
					
						commit
						a73b073f2e
					
				| @ -19,11 +19,9 @@ class MyToolWindowFactory : ToolWindowFactory { | ||||
|         thisLogger().warn("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") | ||||
|     } | ||||
| 
 | ||||
|     private val contentFactory = ContentFactory.SERVICE.getInstance() | ||||
| 
 | ||||
|     override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) { | ||||
|         val myToolWindow = MyToolWindow(toolWindow) | ||||
|         val content = contentFactory.createContent(myToolWindow.getContent(), null, false) | ||||
|         val content = ContentFactory.getInstance().createContent(myToolWindow.getContent(), null, false) | ||||
|         toolWindow.contentManager.addContent(content) | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user