| 
| 'javaeditor' example from CVS is broken? [message #277767] | Thu, 16 December 2004 11:41  |  | 
| Eclipse User  |  |  |  |  | Hello all, 
 I've spent the entire afternoon trying to recover the
 'org.eclipse.ui.examples.javaeditor' project. I really need a working
 example to get my head around eclipse's editors - and it's becoming almost a
 (bad) joke how many ways the samples don't work as they're supposed to.
 
 Using the web-frontend for CVS, I got to this page:
 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.exam ples.javaeditor/
 
 Which seems to be very similar to the file structure I pulled off the
 "Official Eclipse FAQ's" CD.
 
 However, I went through the entire CVS folder and pulled down the latest
 copies of all the files and put them into a folder within my default eclipse
 workspace ( "C:\Program
 Files\eclipse\workspace\org.eclipse.ui.examples.javaeditor" ).
 
 I then loaded up Eclipse and imported a project (pointing at the .project
 file in the above folder). All seemed well - the navigator in eclipse
 mirrors the files that were on the file system. Had a few warnings and
 errors in some of the files regarding the auto-indent strategies. Tweaked
 those a bit to stop it complaining (I dont think this would be the cause of
 my main problem though).
 
 When I load up a runtime workbench to test out the editor plug-in it works,
 but as soon as I "Open External File" on a .jav I get the following error:
 "Problems occurred when invoking code from plug-in:
 'org.eclipse.core.runtime'." reported in the runtime workbench. With the
 following stack-trace:
 
 org.eclipse.core.runtime.CoreException[1]:
 java.lang.ClassNotFoundException:
 org.eclipse.ui.examples.javaeditor.JavaEditor
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
 ..java:404)
 at
 org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
 ctClassLoader.java:93)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader
 ..java:307)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.jav
 a:336)
 ... snipped ...
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 at org.eclipse.core.launcher.Main.run(Main.java:644)
 at org.eclipse.core.launcher.Main.main(Main.java:628)
 
 And the following error is outputted by the original Eclipse instance in the
 output window:
 
 org.eclipse.ui.PartInitException: Unable to instantiate editor:
 org.eclipse.ui.JavaEditor org.eclipse.core.runtime.CoreException: Plug-in
 org.eclipse.ui.examples.javaeditor was unable to load class
 org.eclipse.ui.examples.javaeditor.JavaEditor.
 at
 org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:798)
 at
 org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
 775)
 at
 org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
 ..java:585)
 at
 org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:573)
 ... snipped ...
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 at org.eclipse.core.launcher.Main.run(Main.java:644)
 at org.eclipse.core.launcher.Main.main(Main.java:628)
 
 From what I can see it's having a problem loading the resource bundles for
 the plugin. But they appear to be in the project (
 "JavaEditorMessages.properties" etc...).
 I can hope that I'm doing something wrong, or got something configured
 incorrectly - but I don't know what I'm looking for! Does anyone here have
 any suggestions?
 I seriously doubt that the files in CVS are broken, but given how little
 I've done to alter anything I'm starting to think it's a possibility!
 Any help is **greatly** appreciated!
 Cheers,
 Jack
 |  |  |  | 
| 
| Re: 'javaeditor' example from CVS is broken? [message #278456 is a reply to message #277767] | Mon, 03 January 2005 05:15   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: daniel.megert.gmx.net 
 Jack Hoxley wrote:
 
 >Hello all,
 >
 >I've spent the entire afternoon trying to recover the
 >'org.eclipse.ui.examples.javaeditor' project. I really need a working
 >example to get my head around eclipse's editors - and it's becoming almost a
 >(bad) joke how many ways the samples don't work as they're supposed to.
 >
 >Using the web-frontend for CVS, I got to this page:
 > http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.exam ples.javaeditor/
 >
 >Which seems to be very similar to the file structure I pulled off the
 >"Official Eclipse FAQ's" CD.
 >
 >However, I went through the entire CVS folder and pulled down the latest
 >copies of all the files and put them into a folder within my default eclipse
 >workspace ( "C:\Program
 >Files\eclipse\workspace\org.eclipse.ui.examples.javaeditor" ).
 >
 >I then loaded up Eclipse and imported a project (pointing at the .project
 >file in the above folder). All seemed well - the navigator in eclipse
 >mirrors the files that were on the file system. Had a few warnings and
 >errors in some of the files regarding the auto-indent strategies. Tweaked
 >those a bit to stop it complaining (I dont think this would be the cause of
 >my main problem though).
 >
 >When I load up a runtime workbench to test out the editor plug-in it works,
 >but as soon as I "Open External File" on a .jav I get the following error:
 >"Problems occurred when invoking code from plug-in:
 >'org.eclipse.core.runtime'." reported in the runtime workbench. With the
 >following stack-trace:
 >
 >    org.eclipse.core.runtime.CoreException[1]:
 >java.lang.ClassNotFoundException:
 >org.eclipse.ui.examples.javaeditor.JavaEditor
 >     at
 > org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
 >.java:404)
 >     at
 > org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
 >ctClassLoader.java:93)
 >     at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 >     at
 > org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader
 >.java:307)
 >     at
 > org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.jav
 >a:336)
 >    ... snipped ...
 >     at java.lang.reflect.Method.invoke(Method.java:324)
 >     at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 >     at org.eclipse.core.launcher.Main.run(Main.java:644)
 >     at org.eclipse.core.launcher.Main.main(Main.java:628)
 >
 >And the following error is outputted by the original Eclipse instance in the
 >output window:
 >
 >    org.eclipse.ui.PartInitException: Unable to instantiate editor:
 >org.eclipse.ui.JavaEditor org.eclipse.core.runtime.CoreException: Plug-in
 >org.eclipse.ui.examples.javaeditor was unable to load class
 >org.eclipse.ui.examples.javaeditor.JavaEditor.
 >    at
 > org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:798)
 >    at
 > org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
 >775)
 >    at
 > org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
 >.java:585)
 >    at
 > org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:573)
 >    ... snipped ...
 >    at java.lang.reflect.Method.invoke(Method.java:324)
 >    at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 >    at org.eclipse.core.launcher.Main.run(Main.java:644)
 >    at org.eclipse.core.launcher.Main.main(Main.java:628)
 >
 >From what I can see it's having a problem loading the resource bundles for
 >the plugin. But they appear to be in the project (
 >"JavaEditorMessages.properties" etc...).
 >I can hope that I'm doing something wrong, or got something configured
 >incorrectly - but I don't know what I'm looking for! Does anyone here have
 >any suggestions?
 >I seriously doubt that the files in CVS are broken, but given how little
 >I've done to alter anything I'm starting to think it's a possibility!
 >Any help is **greatly** appreciated!
 >
 >
 Maybe you mixed versions: you probably downloaded some version and now
 mix it with the latest example code (CVS HEAD). The easiest to get the
 example is to download the example bundle from the corresponding
 download page: on the download page of each drop, e.g. 3.0.1, you can
 also download the examples.
 
 Or even easier:
 1. start Eclipse 3.0 (or later)
 2. Help > Welcome
 3. click on Samples.
 
 Dani
 
 >Cheers,
 >Jack
 >
 >
 >
 >
 |  |  |  | 
| 
| Re: 'javaeditor' example from CVS is broken? [message #278462 is a reply to message #278456] | Mon, 03 January 2005 05:36  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: jerryisdaman.gmail.com 
 the javaeditor example checked out from CVS does not work straight away
 under the eclipse 3.0x  ..... go and download eclipse 3.1 4M ..... it
 works fine for me .....
 
 
 Daniel Megert wrote:
 
 > Jack Hoxley wrote:
 
 >>Hello all,
 >>
 >>I've spent the entire afternoon trying to recover the
 >>'org.eclipse.ui.examples.javaeditor' project. I really need a working
 >>example to get my head around eclipse's editors - and it's becoming almost a
 >>(bad) joke how many ways the samples don't work as they're supposed to.
 >>
 >>Using the web-frontend for CVS, I got to this page:
 >> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.exam ples.javaeditor/
 >>
 >>Which seems to be very similar to the file structure I pulled off the
 >>"Official Eclipse FAQ's" CD.
 >>
 >>However, I went through the entire CVS folder and pulled down the latest
 >>copies of all the files and put them into a folder within my default eclipse
 >>workspace ( "C:Program
 >>Fileseclipseworkspaceorg.eclipse.ui.examples.javaeditor" ).
 >>
 >>I then loaded up Eclipse and imported a project (pointing at the .project
 >>file in the above folder). All seemed well - the navigator in eclipse
 >>mirrors the files that were on the file system. Had a few warnings and
 >>errors in some of the files regarding the auto-indent strategies. Tweaked
 >>those a bit to stop it complaining (I dont think this would be the cause of
 >>my main problem though).
 >>
 >>When I load up a runtime workbench to test out the editor plug-in it works,
 >>but as soon as I "Open External File" on a .jav I get the following error:
 >>"Problems occurred when invoking code from plug-in:
 >>'org.eclipse.core.runtime'." reported in the runtime workbench. With the
 >>following stack-trace:
 >>
 >>    org.eclipse.core.runtime.CoreException[1]:
 >>java.lang.ClassNotFoundException:
 >>org.eclipse.ui.examples.javaeditor.JavaEditor
 >>     at
 >> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
 >>.java:404)
 >>     at
 >> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
 >>ctClassLoader.java:93)
 >>     at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 >>     at
 >> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader
 >>.java:307)
 >>     at
 >> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.jav
 >>a:336)
 >>    ... snipped ...
 >>     at java.lang.reflect.Method.invoke(Method.java:324)
 >>     at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 >>     at org.eclipse.core.launcher.Main.run(Main.java:644)
 >>     at org.eclipse.core.launcher.Main.main(Main.java:628)
 >>
 >>And the following error is outputted by the original Eclipse instance in the
 >>output window:
 >>
 >>    org.eclipse.ui.PartInitException: Unable to instantiate editor:
 >>org.eclipse.ui.JavaEditor org.eclipse.core.runtime.CoreException: Plug-in
 >>org.eclipse.ui.examples.javaeditor was unable to load class
 >>org.eclipse.ui.examples.javaeditor.JavaEditor.
 >>    at
 >> org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:798)
 >>    at
 >> org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
 >>775)
 >>    at
 >> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
 >>.java:585)
 >>    at
 >> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:573)
 >>    ... snipped ...
 >>    at java.lang.reflect.Method.invoke(Method.java:324)
 >>    at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 >>    at org.eclipse.core.launcher.Main.run(Main.java:644)
 >>    at org.eclipse.core.launcher.Main.main(Main.java:628)
 >>
 >>From what I can see it's having a problem loading the resource bundles for
 >>the plugin. But they appear to be in the project (
 >>"JavaEditorMessages.properties" etc...).
 >>I can hope that I'm doing something wrong, or got something configured
 >>incorrectly - but I don't know what I'm looking for! Does anyone here have
 >>any suggestions?
 >>I seriously doubt that the files in CVS are broken, but given how little
 >>I've done to alter anything I'm starting to think it's a possibility!
 >>Any help is **greatly** appreciated!
 >>
 >>
 > Maybe you mixed versions: you probably downloaded some version and now
 > mix it with the latest example code (CVS HEAD). The easiest to get the
 > example is to download the example bundle from the corresponding
 > download page: on the download page of each drop, e.g. 3.0.1, you can
 > also download the examples.
 
 > Or even easier:
 > 1. start Eclipse 3.0 (or later)
 > 2. Help > Welcome
 > 3. click on Samples.
 
 > Dani
 
 >>Cheers,
 >>Jack
 >>
 >>
 >>
 >>
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04176 seconds