Skip to content
Snippets Groups Projects
Commit c2c28379 authored by Alberto Debiasi's avatar Alberto Debiasi
Browse files

added isEditorAreaVisible in PapyrusModelListener


Change-Id: I9617190723b9fbc1efb71dda4c5b5bcfce2f2d19
Signed-off-by: default avatarAlberto Debiasi <adebiasi@fbk.eu>
parent 54fb41ad
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,10 @@ public class PapyrusModelListener implements IPapyrusListener {
@Override
public void notifyChanged(Notification notification) {
Object notifier = notification.getNotifier();
if(notifier instanceof Class){
if((notifier instanceof Class)&(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().isEditorAreaVisible())){
Class cblock = (Class) notifier;
if(notification.getEventType() == StereotypeExtensionNotification.STEREOTYPE_APPLIED_TO_ELEMENT){
if(cblock.getAppliedStereotype(CONTRACT) != null){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment