如何将 TextEditor 与某个文件相关联?(Eclipse-插件开发)
我确实喜欢下面,但有错误,我无法弄清楚。我看过文档
<!-- git -->
<extension
point="org.eclipse.ui.editors">
<editor
class="org.eclipse.ui.editors.text.TextEditor"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
default="true"
extensions="gitignore,gitmodules,gitattributes"
icon="icons/git.ico"
id="org.eclipse.ui.DefaultTextEditor"
name="Text Editor">
</editor>
</extension>
org.eclipse.core.runtime.CoreException:插件 gitaddon.core 无法加载类 org.eclipse.ui.editors.text.TextEditor。在 org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176) 在 org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194) .core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905) 在 org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) 在 org.eclipse.core.internal.registry.ConfigurationElementHandle .createExecutableExtension(ConfigurationElementHandle.java:55) 在 org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:274) 在 org.eclipse.ui.internal.registry。