Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » View file [.di] on external web project
icon5.gif  View file [.di] on external web project [message #1562777] Tue, 13 January 2015 22:39 Go to next message
Francisco Rocha is currently offline Francisco RochaFriend
Messages: 1
Registered: January 2015
Junior Member
I am wanting to view a file in format [.di] in my web project Grails, is there any way to do this?
Re: View file [.di] on external web project [message #1563877 is a reply to message #1562777] Wed, 14 January 2015 13:09 Go to previous message
Charles Rivet is currently offline Charles RivetFriend
Messages: 219
Registered: May 2014
Location: Canada
Senior Member

Hi Francisco,

In Papyrus, the "di" file is just an Eclipse placeholder for the two actual files that make up the model: the ".notation" file containing the graphical information (e.g., diagram layouts, etc.) and the ".uml" file containing the actual model information. Note that all these files are plain XML files and, accordingly, not very interesting to show on a web site.

If all you want to do is display the diagrams, you could select the model (.di) file in Papyrus and then export all the diagrams as images. You could then easily display these on the web.

If you wanted to dynamically show the diagrams, you would have to create a Grails plug-in that would be able to read and decipher the information in the ".notation" and ".uml" files and then display the information, either on your own, which would be rather complex, or by transforming it from Papyrus format into a separate representation that would be easier to disply (e.g., into PlantUML or Yuml format for which Grails plugins are available).

Note that I am neither a Papyrus internals nor a Grails expert, so there might be other approaches that can be taken.

I do hope this helped.


/Charles Rivet
Previous Topic:The Arrow Icon on the Class Box
Next Topic:Problem when executing factorial example with eclipse luna
Goto Forum:

Current Time: Sat Jul 11 06:12:01 GMT 2020

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

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

Back to the top