Skip to main content



      Home
Home » Modeling » Papyrus » Problem with model-view update
Problem with model-view update [message #602627] Wed, 28 July 2010 10:01
Eclipse UserFriend
Hi,

I'm writing a plugin for Papyrus that implements notifyChanged estension point:

it checks if a generalization between two classes is created and then copies all the ports of superclass in the subclass.

I used getNotifier that returns a Generalization object and then I took the two classes with getSources and getTargets.

I used a RecordingCommand to:
copy the ports of superclass with EcoreUtil.Copier, then
I added them to subclass with subclass.getOwnedPorts().add(copiedPort)

I execute the command but here's what appens:

I can see the changes in the navigation bar, but I can't see them in the editor.

What is missing? What did I do wrong?

Thanks in advance, star123
Previous Topic:[Announce] Papyrus 0.7.0 is available
Next Topic:when will papyrus be supporting C++ code generation?
Goto Forum:
  


Current Time: Sun Jul 06 22:37:25 EDT 2025

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

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

Back to the top