Errors with GEF3D example [message #496630] |
Tue, 10 November 2009 17:41 |
Joe Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Hi,
I was known GEF3D yesterday, and found it is really amazing!
I checked all the GEF3D materials that I can got, and I known there is no offical release till now, but I still can't wait to work with it.
I set up the environment according to "http://wiki.eclipse.org/GEF3D_Installation", but I cannot make the examples work, here is the problem, hope somebody could help me, thank you in advance!
My Environment is HP 6510B laptop, and Vista Ultimate OS.
Steps:
1. Download "eclipse-modeling-galileo-SR1-incubation-win32.zip"
2. Checkout the projects(svn://dev.eclipse.org/svnroot/technology/org.eclipse.gef3d) and install "WJGL"
3. run as "Eclipse Application", then New->Examples->GEF3D Examples->GEF3D Graph Example Model, new a "test.G3D_graph" file with default settings.
4. Error occurs when open this file:
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at java.util.Properties.setProperty(Unknown Source)
at org.eclipse.draw3d.graphics3d.lwjgl.Graphics3DLwjgl.setPrope rty(Graphics3DLwjgl.java:750)
at org.eclipse.draw3d.LightweightSystem3D.setFontAntialias(Ligh tweightSystem3D.java:941)
at org.eclipse.draw3d.ui.preferences.ScenePreferenceDistributor .setSceneFontAntialias(ScenePreferenceDistributor.java:141)
at org.eclipse.draw3d.ui.preferences.ScenePreferenceDistributor .init(ScenePreferenceDistributor.java:99)
at org.eclipse.draw3d.ui.preferences.Draw3DPreferenceDistributo r.start(Draw3DPreferenceDistributor.java:52)
at org.eclipse.gef3d.ui.parts.GraphicalEditor3DWithPalette.doRe gisterToScene(GraphicalEditor3DWithPalette.java:131)
at org.eclipse.gef3d.ui.parts.GraphicalEditor3DWithPalette.crea teGraphicalViewer(GraphicalEditor3DWithPalette.java:71)
at org.eclipse.gef.ui.parts.GraphicalEditorWithPalette.createPa rtControl(GraphicalEditorWithPalette.java:62)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:286)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2857)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2762)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2754)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2705)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2701)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2685)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
at org.eclipse.gef3d.examples.graph.editor.wizard.GraphWizard.p erformFinish(GraphWizard.java:223)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:752)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHa ndler(WizardHandler.java:253)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(Wizar dHandler.java:273)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:294)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(C ommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
5. Error will also ocurr when I new a file with .umlclass or .G3D_multi extension.(Attached detailed log)
Do you have any idea? Could you tell me what is the correct way to play with org.eclipse.gef3d.examples.ecore, graph and uml2?
Any help will be highly appriciated!
Joe
[Updated on: Tue, 10 November 2009 17:41] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Errors with GEF3D example [message #497033 is a reply to message #496914] |
Thu, 12 November 2009 10:33 |
|
On 2009-11-11 18:52:24 +0100, Joe <xujun0124@googlemail.com> said:
> Yes, it works! Thank you.
> By the way, I just know how to play with "graph" example, does anybody
> know how to play with "uml2" and "ecore" examples?
First of all, you need to install the UML2 Tools and the Ecore Tools.
That is, you should be able to create and edit UML diagrams and ecore
diagrams with the 2D editors (*.umlclass, *.umlusc, *.umlact,
*.ecorediag). Is that working? If so, you can now simply open these
diagrams with the 3D editors. For that, select "Open With" from the
context menu of the diagram files and choose a 3D editor, e.g. "UML
Tools Class Editor 3D". If you open a diagram with the "Multi Editor
3D", you should even be able to simply drag and drop other diagrams
onto the 3D scene, they will then be opened behind currently opened
diagram planes.
The 3D editors are more or less fully functional, we haven't integrated
context menus yet and there maybe the one or other feature missing.
Cheers,
Jens
|
|
|
|
|
|
|
|
|
Re: Errors with GEF3D example [message #563481 is a reply to message #563455] |
Thu, 12 November 2009 10:33 |
|
On 2009-11-11 18:52:24 +0100, Joe <xujun0124@googlemail.com> said:
> Yes, it works! Thank you.
> By the way, I just know how to play with "graph" example, does anybody
> know how to play with "uml2" and "ecore" examples?
First of all, you need to install the UML2 Tools and the Ecore Tools.
That is, you should be able to create and edit UML diagrams and ecore
diagrams with the 2D editors (*.umlclass, *.umlusc, *.umlact,
*.ecorediag). Is that working? If so, you can now simply open these
diagrams with the 3D editors. For that, select "Open With" from the
context menu of the diagram files and choose a 3D editor, e.g. "UML
Tools Class Editor 3D". If you open a diagram with the "Multi Editor
3D", you should even be able to simply drag and drop other diagrams
onto the 3D scene, they will then be opened behind currently opened
diagram planes.
The 3D editors are more or less fully functional, we haven't integrated
context menus yet and there maybe the one or other feature missing.
Cheers,
Jens
|
|
|
Powered by
FUDForum. Page generated in 0.02724 seconds