Bug 55216

Summary: Generalize Type should tell me why generalization is not possible [refactoring]
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Frank Tip <tip>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: mn
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2004-03-18 09:04:21 EST
When a supertype is grayed out in the Generalize Type dialog, the user doesn't
know why the generalization to that type is not possible.

One deeply burried method call can be enough to prevent the refactoring, and
when the user is informed about that, he can remove it and proceed. I imagine an
"Advanced" button which shows the offending usages for each disabled supertype.
Comment 1 Dirk Baeumer CLA 2004-03-19 06:41:14 EST
Frank, I like this idea. What do you think ?
Comment 2 Frank Tip CLA 2004-03-19 21:41:50 EST
I agree this is a good idea. Generalize Type is currently considering
only one declaration at the time, so it's not hard to generate "reasons"
why a declaration cannot be generalized. I will put this on my to-do list.

  -Frank