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

Bug 550745

Summary: getAdapter in WorkbenchPart should use generics as its RCP counterpart does
Product: [RT] RAP Reporter: Esteve Olm <esteve.olm>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.10   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/148891
Whiteboard:

Description Esteve Olm CLA 2019-09-04 08:38:12 EDT
Due to this change: 

https://git.eclipse.org/c/platform/eclipse.platform.ui.git/diff/bundles/org.eclipse.ui.workbench/Eclipse%20UI/org/eclipse/ui/part/WorkbenchPart.java?id=7a5f35e86e5c794672d1418e11bd561a2560b129

It is not possible to override getAdapter() in class extending (indirectly) any RAP WorkbenchPart. 

The compiler complains about a name clash because of lack of generics in WorkbenchPart implementation.
Comment 1 Eclipse Genie CLA 2019-09-04 09:23:29 EDT
New Gerrit change created: https://git.eclipse.org/r/148891