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

Bug 28022

Summary: cannot refactor/move static field to interface[refactoring]
Product: [Eclipse Project] JDT Reporter: Jeff Sparkes <jsparkes>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: akiezun, andreas.krueger, jeff_brown, skeet
Version: 2.1   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jeff Sparkes CLA 2002-12-10 10:11:42 EST
Our local java style is to share string contants in interfaces.  I would like
to be able to move a constant field into an interface that the current class
implements.  However, when I select a static field and select refactor/move from
the popup menu, and then browse the list of target classes, interfaces are not
shown.  For fields, interfaces should also be selectable.
Comment 1 Adam Kiezun CLA 2002-12-18 07:53:59 EST
could enable that at some point
Comment 2 Andreas Krüger CLA 2003-01-08 08:15:22 EST
This is related to bug 22109.
Comment 3 Jon Skeet CLA 2003-01-09 06:26:42 EST
Note that this means that the refactoring of "Move Fields" *from* an interface
is entirely useless, as you can only see classes, but you can't move interface
fields to a class...
Comment 4 Adam Kiezun CLA 2003-02-20 09:41:14 EST
if someone spent their vote on this, then i should inversigate maybe, eh?
Comment 5 Jon Skeet CLA 2003-02-20 09:51:04 EST
Sounds good to me :)

Admittedly I've just gone through giving a vote to each bug I reported as a
first pass, as it means that at some time in the past it's bothered me, but in
this case it really was a pain when I had to edit round it.

(It also ends up being a bit embarrassing when you *do* try a refactoring which
you can't possibly end up using :)
Comment 6 Adam Kiezun CLA 2003-02-20 10:11:17 EST
will reopen for 2.2
Comment 7 Adam Kiezun CLA 2003-04-25 12:05:26 EDT
reop
Comment 8 Adam Kiezun CLA 2003-04-25 13:26:46 EDT
*** Bug 12083 has been marked as a duplicate of this bug. ***
Comment 9 Adam Kiezun CLA 2003-07-14 13:15:50 EDT
let's investigate
Comment 10 Dirk Baeumer CLA 2003-09-03 13:19:16 EDT
Fixed for I-build > I20030903.
Comment 11 Markus Keller CLA 2003-10-07 09:26:05 EDT
Fixed with fix 3 for bug 37756.
Comment 12 Dirk Baeumer CLA 2003-10-08 06:14:33 EDT
start verifying...
Comment 13 Dirk Baeumer CLA 2003-10-08 06:17:53 EDT
verified