| Summary: | [Presentations] Helios: ViewPart ToolBar appears Duplicated on RCP View | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Marco Lopes <marcolopespt> | ||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Eric Moffatt <emoffatt> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | pwebster, remy.suen | ||||
| Version: | 3.6.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marco Lopes
Might be related to bug 329754. This is the "generic" code i use to open views:
try{
IWorkbenchPage activePage=...getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage();
IViewReference viewreference=activePage.findViewReference(id, secondaryId);
IViewPart view=activePage.showView(id, secondaryId, IWorkbenchPage.VIEW_ACTIVATE);
if(viewreference==null){
/*
* initialize
* set icon
* set title
* set focus
* etc
*/
}
}catch(PartInitException e){
}
Marco, it may well be worth trying this once M6 comes out. While I cannot guarantee that this is a dup of 329754 the scenarios seem similar enough to warrant a try. Tested with Indigo Release Build id: 20110319-2305. FIXED. |