Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » class diagram from java via modisco
icon5.gif  class diagram from java via modisco [message #649902] Thu, 20 January 2011 21:55 Go to next message
Matt South is currently offline Matt SouthFriend
Messages: 5
Registered: November 2009
Junior Member
Is there a way of creating a class diagram in papyrus from a uml model that was created from java source by modisco.

I'm using the modelling-helios-SR1-incubation build downloaded yesterday from eclipse.org with papyrus and modisco installed via the Help -> Install modelling components menu item.

I find that if I try to open the modisco generated uml file in the papyrus editor then I get an error telling me it needs an associated .di and .notation file. I can't see an alternative method.

Matt
Re: class diagram from java via modisco [message #650534 is a reply to message #649902] Tue, 25 January 2011 12:51 Go to previous messageGo to next message
Fabien Giquel is currently offline Fabien GiquelFriend
Messages: 147
Registered: July 2009
Senior Member
Hi Matt,

i don't have the exact answer to this, but i suggest you to have a look into the thread "Diagram generation from models" from october 2010 in the same newsgroup.

Regards,
Fabien GIQUEL.
MoDisco Team.
Re: class diagram from java via modisco [message #651045 is a reply to message #649902] Thu, 27 January 2011 14:44 Go to previous messageGo to next message
Cedric Dumoulin is currently offline Cedric DumoulinFriend
Messages: 51
Registered: July 2009
Member
Hi,

You can't open directly a UML model with Papyrus.
But you can create a new Model from an existing UML model. It is the
way you should do.

Otherwise, if you want to reverse java code into existing Papyrus UML
models, you can use the java reverse plugins located in SVN
(org.eclipse.mdt.papyrus/trunk/extraplugins/java/):

- org.eclipse.papyrus.java.reverse
- org.eclipse.papyrus.java.reverse.ui

With this plugin, you can select one or more classes (or packages) in
the Package Explorer, and reverse them to the currently open editor with
one single click ! Of course, you can do it as often as you need it.

Hope this help,
Cedric

Matt South wrote:
> Is there a way of creating a class diagram in papyrus from a uml model
> that was created from java source by modisco.
> I'm using the modelling-helios-SR1-incubation build downloaded yesterday
> from eclipse.org with papyrus and modisco installed via the Help ->
> Install modelling components menu item.
>
> I find that if I try to open the modisco generated uml file in the
> papyrus editor then I get an error telling me it needs an associated .di
> and .notation file. I can't see an alternative method.
>
> Matt
Re: class diagram from java via modisco [message #651614 is a reply to message #651045] Mon, 31 January 2011 21:33 Go to previous message
Matt South is currently offline Matt SouthFriend
Messages: 5
Registered: November 2009
Junior Member
Thanks guys,

Fabian - I hadnt seen that thread ( http://www.eclipse.org/forums/index.php?t=tree&th=198258) - it suggests that I ought to be able to create a papyrus model from an existing uml model. The technique sketched by Gilbert in the thread hasnt worked for me but it looks like it should - the wizard generates the required files but seems to fail silently (clicking finish doesnt close it) and the files generated have missing elements. But there are other problems in the java -> papyrus pipeline (non empty kdm.log and non validating uml model) so I'm not clear where the root problem(s) actually lie.

Cedric - I'm not sure how to proceed as you suggest. It sounds like a lot of trouble to download and compile the classes from svn making sure all the dependencies work. Is it straightforward?

Matt
Previous Topic:Cannot select more than one object in diagram
Next Topic:Apply stereotypes to InstanceSpecification
Goto Forum:
  


Current Time: Sat Apr 20 03:02:45 GMT 2024

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

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

Back to the top