Hi,
In Eclipse we do not close the view or editor if the user deinstalls a
plug-in. SonarLint should handle a missing editor ID without
exception.
To reproduce:
1.) Install "SWT Designer" into your Eclipse
2.) Open a view / editor in SWT Designer via Open-With context menu
3.) Uninstall SWT Designer and restart Eclipse
In the editor area you see "No editor descriptor for id
org.eclipse.wb.core.guiEditor".
SonarLint gives an exception, see below. IMHO SonarLint should handle
this without exception.
could not get editor content
org.eclipse.ui.PartInitException: Factory
org.eclipse.jdt.ui.ClassFileEditorInputFactory returned null from
createElement for editor id=org.eclipse.jdt.ui.ClassFileEditorNoSource
name=null
at org.eclipse.ui.internal.EditorReference.getEditorInput(EditorReference.java:310)
at org.sonarlint.eclipse.ui.internal.server.actions.JobUtils.collectOpenedFiles(JobUtils.java:90)
at org.sonarlint.eclipse.ui.internal.server.actions.JobUtils.collectOpenedFiles(JobUtils.java:81)
at org.sonarlint.eclipse.ui.internal.server.actions.JobUtils.scheduleAnalysisOfOpenFiles(JobUtils.java:66)
at org.sonarlint.eclipse.ui.internal.SonarLintUiPlugin$AnalyzeOpenedFilesJob.run(SonarLintUiPlugin.java:189)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
I'm using SonarLint without server connection and I'm using latest and
greatest build from source.
Best regards, Lars
--
Eclipse Platform UI and e4 project co-lead
CEO vogella GmbH
Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email:
lars....@vogella.com, Web:
http://www.vogella.com