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

Bug 114511

Summary: [move member type] generates unused import [refactoring]
Product: [Eclipse Project] JDT Reporter: Benno Baumgartner <benno.baumgartner>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Benno Baumgartner CLA 2005-11-01 09:02:08 EST
Version: 3.2.0
Build id: I20051031-2000

In InlineConstantRefactoring 1.69, select class
InlineConstantRefactoring.InlineTargetCompilationUnit.SourceRangeComputer and
run Refactor > Move Member Type to New File.

This generates a new file with the unused import
org.eclipse.jdt.core.dom.rewrite.TargetSourceRangeComputer.SourceRange;
Comment 1 Dirk Baeumer CLA 2005-11-01 09:48:33 EST
Tobias, can you please investigate.
Comment 2 Benno Baumgartner CLA 2005-12-09 05:12:01 EST
Maybe the new ContextSensitiveImportRewriteContext can help to solve the issue?

See also Bug 82166
Comment 3 Eclipse Genie CLA 2018-12-24 19:36:18 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.