Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » See business object instances in the package explorer
See business object instances in the package explorer [message #903210] Wed, 22 August 2012 14:00 Go to next message
Poissy B. is currently offline Poissy B.
Messages: 31
Registered: June 2012
Member
Hello Community,

Sorry, this is a newbie question but I've been searching the whole day yesterday with no luck. I am building an editor for a custom ontology based on a meta-model expressed in ECore. So far I've managed to do what I intended to do. However there is one thing that did work like by magic while I did the tutorial and that I can't figure out how to customize to my application.

In the tutorial, when we add eclasses to the diagram and save it, the instances so added appear in the Package Explorer under "EClasses". This is perfect if we need to draw the same instance of the EClass on the diagram - which we could do simply by dragging the Eclass from package explorer to the diagram.

In my application, I need to mimic this same behaviour. Some concepts of my ontology are heavily linked to other concepts and instead of having the connection lines all over the place (rendering the diagram unreadable) I would like to be able add to the diagram multiple figures of the same concept. Do you have an Idea how I could do that? Ideally, I would sort the instances in the package explorer - i.e. instead of having everything classified under Eclasses, I could create several categories so instances of Dogs go under Dogs and instances of Cats go under Cats.

Sorry if my post is too verbose, I wanted to give you guys as much details as I could. I hope you could help me out. Thanks in advance!!

Anis
Re: See business object instances in the package explorer [message #903276 is a reply to message #903210] Wed, 22 August 2012 19:34 Go to previous messageGo to next message
Thomas Zöchbauer is currently offline Thomas Zöchbauer
Messages: 10
Registered: August 2012
Junior Member
Hi, i am using the ContentNavigationFramework for this behavior. Lets see if it is working well for you. This is a good tutorial, maybe you follow it.

google: writing an eclipse plugin part 1

to part 25 (? or 24)

it worked for me
-> link for part 1 Smile
http:// cvalcarcel.wordpress.com/2009/07/08/writing-an-eclipse-plug-in-part-1-what-im-going-to-do/

(delete the space letter Razz)

BR
Thomas
Re: See business object instances in the package explorer [message #903277 is a reply to message #903276] Wed, 22 August 2012 19:44 Go to previous messageGo to next message
Poissy B. is currently offline Poissy B.
Messages: 31
Registered: June 2012
Member
Thanks Thomas!

God, this is daunting Sad

Well, I think I'm going to let go (this would have been a nice feature though...). I may go through it sometime after finishing my phd. I'll implement the Copy/Paste features instead.

Thanks again!

Anis

[Updated on: Wed, 22 August 2012 19:44]

Report message to a moderator

Re: See business object instances in the package explorer [message #903707 is a reply to message #903210] Thu, 23 August 2012 12:11 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1621
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Anis,

The Graphiti tutorial uses the Eclipse Common Navigator Framework for the
tree representation, not sure if this is what Thomas mentioned. You might
want to have a look into the Graphiti examples common plugin, the packages
under o.e.g.examples.common.navigator hold the required coding.

Michael

"Anis B." schrieb im Newsbeitrag news:k12olm$qp9$1@xxxxxxxxe.org...

Hello Community,

Sorry, this is a newbie question but I've been searching the whole day
yesterday with no luck. I am building an editor for a custom ontology based
on a meta-model expressed in ECore. So far I've managed to do what I
intended to do. However there is one thing that did work like by magic while
I did the tutorial and that I can't figure out how to customize to my
application.

In the tutorial, when we add eclasses to the diagram and save it, the
instances so added appear in the Package Explorer under "EClasses". This is
perfect if we need to draw the same instance of the EClass on the diagram -
which we could do simply by dragging the Eclass from package explorer to the
diagram.

In my application, I need to mimic this same behaviour. Some concepts of my
ontology are heavily linked to other concepts and instead of having the
connection lines all over the place (rendering the diagram unreadable) I
would like to be able add to the diagram multiple figures of the same
concept. Do you have an Idea how I could do that? Ideally, I would sort the
instances in the package explorer - i.e. instead of having everything
classified under Eclasses, I could create several categories so instances of
Dogs go under Dogs and instances of Cats go under Cats.

Sorry if my post is too verbose, I wanted to give you guys as much details
as I could. I hope you could help me out. Thanks in advance!!

Anis
Previous Topic:mathematical expressions editor
Next Topic:providing visual feedback depending on state during connection
Goto Forum:
  


Current Time: Fri Oct 31 05:55:04 GMT 2014

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

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