Consider this link,
Eclipse Modeling - EMF - Home
This is a framework to model, check it
You can connect to the repository
CVS of
EMF and download the code, read it maybe you
can find the way to re utilize the framework inside of your application
Look this too
gef.tigris.org
Marcus