Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Problem with model-view update
Problem with model-view update [message #602627] Wed, 28 July 2010 14:01
123star  is currently offline 123star Friend
Messages: 70
Registered: June 2010
Member
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: Fri Jul 03 11:53:07 GMT 2020

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

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

Back to the top