Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » Daigrams with "Invalid view remove from diagram".
Daigrams with "Invalid view remove from diagram". [message #1755115] Tue, 28 February 2017 08:58 Go to next message
Marc FLAUW is currently offline Marc FLAUWFriend
Messages: 151
Registered: July 2009
Senior Member
Dear all,

I move my project from Papyrus 1.1.3 and Gendoc 0.5.1 to Papyrus 2.0.2 and Gendoc 0.6.0.

All my diagrams that were generating correctly before are now empty red boxes and lines with the mention "Invalid view remove from diagram".

The code that generates the diagram is
[for (d:Diagram|element.getPapyrusDiagrams())]<drop/>
<image object='[d.getDiagram()/]' maxW='true'><drop/>

</image><drop/>
[/for]<drop/>


Any clue what might be wrong or might have changed in v0.6.0?

Best regards,

Marc
Re: Daigrams with "Invalid view remove from diagram". [message #1755116 is a reply to message #1755115] Tue, 28 February 2017 09:01 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Sounds like a papyrus problem, are the diagrams correctly displayed when you open your model with Papyrus 2.x ?



Re: Daigrams with "Invalid view remove from diagram". [message #1755117 is a reply to message #1755116] Tue, 28 February 2017 09:03 Go to previous messageGo to next message
Marc FLAUW is currently offline Marc FLAUWFriend
Messages: 151
Registered: July 2009
Senior Member
Yes, they are. I can see all of them.
Re: Daigrams with "Invalid view remove from diagram". [message #1755118 is a reply to message #1755117] Tue, 28 February 2017 09:08 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Can you do a minor change in your model using papyrus once it is opened, save this modification and try to generate again ?



Re: Daigrams with "Invalid view remove from diagram". [message #1755119 is a reply to message #1755118] Tue, 28 February 2017 09:22 Go to previous messageGo to next message
Antonio Campesino is currently offline Antonio CampesinoFriend
Messages: 56
Registered: August 2016
Member
Hi,

I think it related to the non-backwards compatibility changes done in Papyrus 2.0 where all the notation diagram hints ids were changed. You are able to show the diagrams correctly in papyrus because papyrus migrate the diagram loaded in memory when the diagram is open in the editor.

The workaround it is to open all the diagrams and do a small modification, such as move / resize by one pixel one of the elements in the diagram and save the model. Alternatively you can generate the document with all the diagrams open in the papyrus model editor.

I know it is not the best approach, but papyrus did not provided a migration tool from 1.1.x to 2.x.

Regards,
Antonio
Re: Daigrams with "Invalid view remove from diagram". [message #1755124 is a reply to message #1755118] Tue, 28 February 2017 09:40 Go to previous messageGo to next message
Marc FLAUW is currently offline Marc FLAUWFriend
Messages: 151
Registered: July 2009
Senior Member
Hi Tristan,

I change one diagram (moving the label of an association) and this diagram displays fine while the others are still in error.
I will go through my complete model and update every diagram to see if it solves the issue.
Re: Daigrams with "Invalid view remove from diagram". [message #1755126 is a reply to message #1755124] Tue, 28 February 2017 09:41 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Ok, this seems compliant with Antonio's explanation



Re: Daigrams with "Invalid view remove from diagram". [message #1755142 is a reply to message #1755126] Tue, 28 February 2017 11:59 Go to previous messageGo to next message
Marc FLAUW is currently offline Marc FLAUWFriend
Messages: 151
Registered: July 2009
Senior Member
Dear all,

Modifying all diagrams solved the problem.
Thanks to you both.

Best regards,

Marc
Re: Daigrams with "Invalid view remove from diagram". [message #1755175 is a reply to message #1755142] Tue, 28 February 2017 17:22 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
It would be nice to open a bug on papyrus (if it does not exist) to have a right click "migrate diagrams" or something like that :s



Re: Daigrams with "Invalid view remove from diagram". [message #1755204 is a reply to message #1755175] Wed, 01 March 2017 07:07 Go to previous message
Antonio Campesino is currently offline Antonio CampesinoFriend
Messages: 56
Registered: August 2016
Member
I submit a bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=512858
Previous Topic:Daigrams with "Invalid view remove from diagram".
Next Topic:gendoc - instance model
Goto Forum:
  


Current Time: Fri Apr 19 15:28:44 GMT 2024

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

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

Back to the top