java - Eclipse:无法使用编辑器打开 Jspf
问题描述
我的编辑器无法在 Eclipse 中打开 JSPF 文件。
当我转到:“文件关联”和“内容类型”菜单时,jspf 与“JSP 编辑器”相关联,但它不起作用。
当我尝试打开“.jspf 文件”时,我收到以下消息:
Unsupported content type in editor.
To associate file extension with a supported content type,
please see Content Types Preference Page
并记录错误
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-08 15:04:45.507
!MESSAGE StructuredTextEditor being used without StructuredDocument
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-08 15:04:45.507
!MESSAGE Input Name: doDBMailMessageAttachements.jspf
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-08 15:04:45.508
!MESSAGE Unexpected IDocumentProvider implementation: org.eclipse.ui.editors.text.TextFileDocumentProvider
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-08 15:04:45.508
!MESSAGE Unexpected IDocument implementation: org.eclipse.core.internal.filebuffers.SynchronizableDocument
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-08 15:04:45.507
!MESSAGE StructuredTextEditor being used without StructuredDocument
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-08 15:04:45.507
!MESSAGE Input Name: doDBMailMessageAttachements.jspf
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-08 15:04:45.508
!MESSAGE Unexpected IDocumentProvider implementation: org.eclipse.ui.editors.text.TextFileDocumentProvider
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-08 15:04:45.508
!MESSAGE Unexpected IDocument implementation: org.eclipse.core.internal.filebuffers.SynchronizableDocumen
编辑:
我只有一个附加插件,即“增强类反编译器”。
新日志错误:
!SESSION 2021-11-09 17:14:19.378
----------------------------------------------- eclipse.buildId=4.21.0.I20210906-0500 java.version=16.0.2 java.vendor=Oracle Corporation BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_FR Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -consoleLog
!ENTRY org.eclipse.jface 2 0 2021-11-09 17:14:23.971 !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. !SUBENTRY 1 org.eclipse.jface 2 0 2021-11-09 17:14:23.971 !MESSAGE A conflict occurred for COMMAND+SHIFT+T: Binding(COMMAND+SHIFT+T, ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type, Open a type in a Java editor, Category(org.eclipse.ui.category.navigate,Navigate,null,true), org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2330c995, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(COMMAND+SHIFT+T, ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace, , Category(org.eclipse.lsp4e.category,Language Servers,null,true), org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7d086485, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system)
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-09 17:14:31.813 !MESSAGE StructuredTextEditor being used without StructuredDocument
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-09 17:14:31.814 !MESSAGE Input Name: doMailBody.jspf
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-09 17:14:31.814 !MESSAGE Unexpected IDocumentProvider implementation: org.eclipse.ui.editors.text.TextFileDocumentProvider
!ENTRY org.eclipse.wst.sse.ui 2 2 2021-11-09 17:14:31.815 !MESSAGE Unexpected IDocument implementation: org.eclipse.core.internal.filebuffers.SynchronizableDocument
!ENTRY org.eclipse.ui.navigator 2 0 2021-11-09 17:14:32.391 !MESSAGE Can't find Navigator Content Descriptor with id: org.eclipse.jst.servlet.ui.EnhancedJavaRendering
!ENTRY org.eclipse.ui.navigator 2 0 2021-11-09 17:14:32.391 !MESSAGE Can't find Navigator Content Descriptor with id: org.eclipse.jst.servlet.ui.EnhancedJavaRendering
解决方案
推荐阅读
- android-studio-3.3 - 错误:无法初始化类 com.android.build.gradle.AppPlugin 是问题
- javascript - Javascript:使用引用函数的对象导出数组
- java - 如何在 android oreo 和更高版本的设备中重启应用程序?
- python - Python psycopg2 在 postgresql 表的某些行中插入 NULL
- python - 溢出错误:有符号整数大于最大值
- reactjs - 使用 webpack 在 VSCode 中调试 React Typescript 时出错
- google-apps-script-editor - 如何在客户端创建和推送新文件?
- jquery - JQuery 如果 div id 数据属性等于 1
- angular - 单击模式内的按钮时如何在Angular 7中隐藏组件?
- python-3.x - 如何一次读取多个传感器