[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] texteditor sample - extension
|
Hi,
I found that Ant editor is in
org.eclipse.ant.internal.ui.editor.AntEditor, so I add following code to
the plugin.xml of texteditor example.
<editor
id="org.eclipse.ant.internal.ui.editor.AntEditor"
icon="icons/text.gif"
name="Ant Editor"
class="org.eclipse.ant.internal.ui.editor.AntEditor"
contributorClass="org.eclipse.ant.internal.ui.editor.AntEditorActionContributor"
extensions="xml"/>
and remove xml from the extension of Sample XML Editor.
When I try to open XML file I received error on the workbench:
Unable to create this part due to an internal error. Reason for the
failure: The editor class could not be instantiated. This usually
indicates that the editor's class name was mistyped in plugin.xml.
java.lang.ClassNotFoundException:
org.eclipse.ant.internal.ui.editor.AntEditor
So I try to add it to the import part of plugin.xml.
<import plugin="org.eclipse.ant.internal.ui.editor"/>
Then I receive launch error:
!SESSION 2005-11-21 10:51:03.960
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=cs_CZ
Framework arguments: -application
org.eclipse.ui.examples.rcp.texteditor.application -data -pdelaunch
Command-line arguments: -application
org.eclipse.ui.examples.rcp.texteditor.application -data -dev
file:X:/Prog/Java/.metadata/.plugins/org.eclipse.pde.core/RCP Text
Editor/dev.properties -pdelaunch -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.osgi 2005-11-21 10:51:05.52
!MESSAGE Bundle
initial@reference:file:X:/Prog/Java/org.eclipse.ui.examples.rcp.texteditor/
[20] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2005-11-21 10:51:05.62
!MESSAGE Missing required bundle org.eclipse.ant.internal.ui.editor_0.0.0.
!ENTRY org.eclipse.osgi 2005-11-21 10:51:05.72
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application
"org.eclipse.ui.examples.rcp.texteditor.application" could not be found in
the registry. The applications available are: editor.application.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:216)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
!ENTRY org.eclipse.osgi 2005-11-21 10:51:05.92
!MESSAGE Bundle
initial@reference:file:X:/Prog/Java/org.eclipse.ui.examples.rcp.texteditor/
[20] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2005-11-21 10:51:05.92
!MESSAGE Missing required bundle org.eclipse.ant.internal.ui.editor_0.0.0.
I try to add org.eclipse.ant.ui or org.eclipse.ant as well, but same
error. Where can I put required jar archives and which ones?
Thanks.
Martin