| texteditor sample - extension [message #439903] |
Mon, 21 November 2005 04:54 |
Eclipse User |
|
|
|
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=3D"org.eclipse.ant.internal.ui.editor.AntEditor"
icon=3D"icons/text.gif"
name=3D"Ant Editor"
class=3D"org.eclipse.ant.internal.ui.editor.AntEditor"
contributorClass=3D"org.eclipse.ant.internal.ui.editor.AntE=
ditorActionContributor"
extensions=3D"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=3D"org.eclipse.ant.internal.ui.editor"/>
Then I receive launch error:
!SESSION 2005-11-21 10:51:03.960 =
-----------------------------------------------
eclipse.buildId=3Dunknown
java.version=3D1.5.0_04
java.vendor=3DSun Microsystems Inc.
BootLoader constants: OS=3Dwin32, ARCH=3Dx86, WS=3Dwin32, NL=3Dcs_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/RC P 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.textedit=
or/ =
[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(Pl atformActiva=
tor.java:216)
at =
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:=
376)
at =
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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.textedit=
or/ =
[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
|
|
|
Powered by
FUDForum. Page generated in 0.03077 seconds