Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » diagram file from model file.
diagram file from model file. [message #471105] Mon, 04 June 2007 17:25 Go to next message
Pradeep is currently offline PradeepFriend
Messages: 54
Registered: July 2009
Member
UML2tools allows generating a class diagram from uml model by right
clicking on the model file.

I need similar functionality where I have my own custom emf model and
custom gmf diagram.

Could you tell how I should go about it. I don't need any right-click
functionality. Given a model file I need to get a diagram file.


Thanks
Pradeep
Re: diagram file from model file. [message #471108 is a reply to message #471105] Tue, 05 June 2007 12:00 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Pradeep!

As far as I understand you are talking about "Intialize umlclass_diagram
diagram file" action. And you want to restore diagram from the given domain
model file. If it is right then UMLNewDiagramFileWizard class
(UMLNewDiagramFileWizard for the Class Diagram, in your case it will be
*NewDiagramFileWizard) may help you. It is responsible for restoring diagram
from the domain model file.

Probably it will be also interesting for you to have a look at
DiagramContentsInitializer.

I hope I understood you properly.

Best regards.,
Tatiana.

"Pradeep Tamma" <eclipseuser123@yahoo.com> wrote in message
news:f41htp$mui$1@build.eclipse.org...
> UML2tools allows generating a class diagram from uml model by right
> clicking on the model file.
>
> I need similar functionality where I have my own custom emf model and
> custom gmf diagram.
>
> Could you tell how I should go about it. I don't need any right-click
> functionality. Given a model file I need to get a diagram file.
>
>
> Thanks
> Pradeep
Re: diagram file from model file. [message #597550 is a reply to message #471105] Tue, 05 June 2007 12:00 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Pradeep!

As far as I understand you are talking about "Intialize umlclass_diagram
diagram file" action. And you want to restore diagram from the given domain
model file. If it is right then UMLNewDiagramFileWizard class
(UMLNewDiagramFileWizard for the Class Diagram, in your case it will be
*NewDiagramFileWizard) may help you. It is responsible for restoring diagram
from the domain model file.

Probably it will be also interesting for you to have a look at
DiagramContentsInitializer.

I hope I understood you properly.

Best regards.,
Tatiana.

"Pradeep Tamma" <eclipseuser123@yahoo.com> wrote in message
news:f41htp$mui$1@build.eclipse.org...
> UML2tools allows generating a class diagram from uml model by right
> clicking on the model file.
>
> I need similar functionality where I have my own custom emf model and
> custom gmf diagram.
>
> Could you tell how I should go about it. I don't need any right-click
> functionality. Given a model file I need to get a diagram file.
>
>
> Thanks
> Pradeep
Previous Topic:.uml -> .genmodel: association problem
Next Topic:Extending UML2 Tool
Goto Forum:
  


Current Time: Tue Apr 16 09:03:41 GMT 2024

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

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

Back to the top