Bug 267019

Summary: [Core] Problem to run papyrus when a diagram was already opened
Product: [Modeling] Papyrus Reporter: Patrick Tessier <Patrick.Tessier>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cedric.dumoulin
Version: 0.7.0Keywords: plan, usability
Target Milestone: M1   
Hardware: All   
OS: All   
Whiteboard: Usability
Attachments:
Description Flags
mylyn/context/zip none

Description Patrick Tessier CLA 2009-03-04 09:07:18 EST
During the developement, I launch Papyrus at runtime. I have mistake when a diagram was already opened. I have a null pointer exception.
Comment 1 Patrick Tessier CLA 2009-03-04 09:10:03 EST
rename the name of the task
Comment 2 Patrick Tessier CLA 2009-03-04 09:10:30 EST
Created attachment 127470 [details]
mylyn/context/zip

correction of the bug
Comment 3 Patrick Tessier CLA 2009-03-04 09:11:32 EST
I have added following tests:

if (PlatformUI.getWorkbench().getActiveWorkbenchWindow() != null) {
				if (PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() != null) {
					PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(IPapyrusUIConstants.MODEL_EXPLORER_VIEW_ID, null, IWorkbenchPage.VIEW_ACTIVATE);
				}
			}