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

small fix on PapyrusModelListener


Change-Id: I9e3afe9f5498671acaf2d045d0bf0480d6b87cdb
Signed-off-by: default avatarAlberto Debiasi <adebiasi@fbk.eu>
parent 2d3b6764
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,10 @@ public class PapyrusModelListener implements IPapyrusListener {
public void notifyChanged(Notification notification) {
Object notifier = notification.getNotifier();
if((notifier instanceof Class)&(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().isEditorAreaVisible())){
if((PlatformUI.getWorkbench().getActiveWorkbenchWindow()!=null)
&&(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()!=null)
&&(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().isEditorAreaVisible())
&&(notifier instanceof Class)){
Class cblock = (Class) notifier;
if(notification.getEventType() == StereotypeExtensionNotification.STEREOTYPE_APPLIED_TO_ELEMENT){
......
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