Bug 267019 - [Core] Problem to run papyrus when a diagram was already opened
Summary: [Core] Problem to run papyrus when a diagram was already opened
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: Usability
Keywords: plan, usability
Depends on:
Blocks:
 
Reported: 2009-03-04 09:07 EST by Patrick Tessier CLA
Modified: 2009-10-15 10:43 EDT (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (563 bytes, application/octet-stream)
2009-03-04 09:10 EST, Patrick Tessier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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);
				}
			}