繁体   English   中英

Eclipse:无法使用编辑器打开 Jspf

[英]Eclipse: Jspf can't be open with Editor

我的编辑器无法在 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

右键点击

这是因为在:“内容类型”=>“自定义内容类型”,

文件关联'*.jspf' 是在没有关联编辑器的情况下创建的。

我删除了这个关联,它工作正常。

风俗

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM