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

Bug 345844

Summary: [assist] quickfix for adding "throws LiftingFailedException"
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.8   
Target Milestone: 2.0 RC1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
proposed implementation none

Description Stephan Herrmann CLA 2011-05-15 09:58:10 EDT
An org.objectteams.LiftingFailedException can be caused by non-statement
code, and also the error message is non-standard (contains link to OTJLD).
Therefor the standard quickfix for adding throws clause is not applicable
and we should add a quickfix of our own.
Comment 1 Stephan Herrmann CLA 2011-05-15 10:04:33 EDT
Created attachment 195665 [details]
proposed implementation

After directly invoking the JDT quickfix did not work, here's our own
implementation based on copy-n-paste from JDT but significantly simplified.
Comment 2 Stephan Herrmann CLA 2011-05-15 10:08:53 EDT
Released as r1588,9
Comment 3 Stephan Herrmann CLA 2011-05-17 16:44:57 EDT
Verified for 2.0 RC1 using build 201105161939.