Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330558

Summary: [Compatibility] QuickAccess assumes all views are 3.x views
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3 CC: emoffatt, ob1.eclipse, pwebster, remy.suen
Version: 1.0   
Target Milestone: 4.1 M4   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 323506    
Attachments:
Description Flags
QuickAccess patch v1 none

Description Remy Suen CLA 2010-11-18 07:47:17 EST
+++ This bug was initially created as a clone of Bug #323506 +++

Created an attachment (id=177318)
Sample e4 view contribution

The e4 views can not be used in the Eclipse 4.0. Workbench processing assumes that all views are compatibility views (WorkbenchPage.java):

CompatibilityView compatibilityView = (CompatibilityView) part.getObject();

To duplicate:

- Launch Eclipse 4.0 with the atatched bundle
- In the quick access (Ctrl+3) type "cont" and select view "Contexts"
- See the ClassCastException at above line in WorkbenchPage
Comment 1 Remy Suen CLA 2010-11-18 07:48:33 EST
Created attachment 183377 [details]
QuickAccess patch v1

Change the code to open views with e4 APIs instead of 3.x APIs.
Comment 2 Remy Suen CLA 2010-11-18 07:49:33 EST
(In reply to comment #1)
> Created an attachment (id=183377) [details]
> QuickAccess patch v1

Fix released to CVS HEAD. You can now open e4 parts (that have their part descriptors added to the root application) via Ctrl+3.