If it is possible.. Do I need to add some classes into these projects or just edit these generated classes?
Or is the better way to use 2D GEF based editor rather than GMF based??

Thx for help and for answers.
Peter]]>peter jurkovsky2012-02-28T17:14:36-00:00Re: 3D-fication of 2D-GMF based editorhttps://www.eclipse.org/forums/index.php/mv/msg/300302/809313/#msg_809313
On 28.02.12 18:14, peter jurkovsky wrote:
> I need help with 3D-fication of 2D GMF based graphical editor.
>
> I can generate 2D editor using GMF dashboard and i want to 3D-ficate
> this editor using GEF3D.

There exists an article about how to 3D-fy an GMF based editor,
unfortunately this article is in German. Even more unfortunate, this
article is not available online... I will contact the publishers, maybe
we can find a way to make it public.

Meanwhile take a look at the 3D-Ecore-Editor, as this example is a
3D-fied GMF based editor. The project is called
org.eclipse.gef3d.examples.ecore, and it is contained in the GEF3D Git
code repository in the examples folder. There is also a 3D-fied version
of the UML2 tools editor (which actually are 3 editors for activity, use
case, and class diagrams), which is also GMF based---however you will
need Eclipse Galileo to test that.

If you examine the 3D ecore editor, you will see that there are only 6
classes to be created, and some settings in the plugin.xml. I think you
could simply follow the ecore example. Here's a brief description:

- create a new editor, extending the generated GMF editor. If you want
to use this editor in a multi-editor, you have to implement the
interface INestableEditorWithEditingDomain. See EcoreDiagramEditor3D as
an example. The implementation is a little bit longer, as Java does not
support multi-inheritance. But most things are simple copy and paste.
Don't forget to configue a ProviderAcceptor in order to disable the 3D
stuff in a 2D editor (cf. configureProviderAcceptor()).

- you have to replace the top-level edit part, e.g., the package or
model element (in case of Ecore, it is the DiagramEditPart3D). Again,
have to extend the matching GMF generated 2D version.

- also, extend the created edit part factory in order to create the new
3D enabled edit part (cf. EcoreEditPartFactory3D)

- since GMF uses providers, you will have to implement a new provider,
using the new 3D enabled edit part factory (cf. EcoreEditPartProvider3D)

- register the editor(s) and the provider in the plugin.xml

If you want to create a multi editor (i.e., an editor capable of
displaying several 2D diagrams on planes in a single 3D space), take a
look at the MultiEcoreGraphicalEditor3D found in the same package. This
is a demonstration of how to create a multi editor supporting the
3D-fied GMF editor.
If you want to use a single shared TransactionalEditingDomain, things
get a bit more complicated. In
EcoreDiagramEditor3D.setDocumentProvider(IEditorInput)
a new document provider is created for ecore, in UML (cf.
UMLClassDiagramEditor3D.setDocumentProvider(IEditorInput)) it looks a
bit different.

Cheers,
Jens]]>Jens von Pilgrim2012-02-28T18:24:42-00:00Re: 3D-fication of 2D-GMF based editorhttps://www.eclipse.org/forums/index.php/mv/msg/300302/811392/#msg_811392
Its a pitty there isnt any tutorial about 3D-fication GMF based editor. It would be cool to have it online (in english much more cool).

Well, maybe i could examine org.eclipse.gef3d.examples.uml2 project. There are already implemented 3 diagrams, so i just need to add sequence and deployement diagrams. Will it be very difficult? ..maybe some hints?