Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GEF3D » 3D-fication of 2D-GMF based editor
3D-fication of 2D-GMF based editor [message #809275] Tue, 28 February 2012 17:14 Go to next message
peter jurkovsky is currently offline peter jurkovskyFriend
Messages: 2
Registered: February 2012
Junior Member
Hi all,

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.

Is it possible? Is there any tutorial, or can you write me some steps how to do it?

GMF dashboard generates this projects:
- projectName
- projectName.edit
- projectName.editor
- projectName.diagram

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
Re: 3D-fication of 2D-GMF based editor [message #809313 is a reply to message #809275] Tue, 28 February 2012 18:24 Go to previous messageGo to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
Peter,

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
Re: 3D-fication of 2D-GMF based editor [message #811392 is a reply to message #809313] Fri, 02 March 2012 09:39 Go to previous messageGo to next message
peter jurkovsky is currently offline peter jurkovskyFriend
Messages: 2
Registered: February 2012
Junior Member
Thank you very much for your reply, Jens. It helps me.

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).

My task (for diploma thesis) was to find proper open source technology for 3D graphical editor, and implement this editor for UML diagrams, concretely:
- Use case diagram
- Activity diagram
- Class diagram
- Sequence diagram
- Deployement diagram


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?

Thanks
Peter
Re: 3D-fication of 2D-GMF based editor [message #811559 is a reply to message #811392] Fri, 02 March 2012 14:10 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
Peter,

On 02.03.12 10:39, peter jurkovsky wrote:
> My task (for diploma thesis) was to find proper open source technology
> for 3D graphical editor, and implement this editor for UML diagrams,
> concretely:

> - Use case diagram
> - Activity diagram
> - Class diagram

The GEF3D UML2-Tools example include these three diagram editors,
already ported and working in 3D. All you need to do is install Eclipse
3.5 (Galileo), the UML2 tools, and GEF3D with all examples.

> - Sequence diagram
> - Deployement diagram

It should be pretty straight forward. With the other diagrams already
3D-fied, it should take you no longer than one or two days.

Cheers,
Jens
Previous Topic:GEF3D and 3d view
Next Topic:X3D Renderer for Draw3D
Goto Forum:
  


Current Time: Thu Apr 18 10:58:26 GMT 2024

Powered by FUDForum. Page generated in 0.01924 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top