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

Bug 314073

Summary: [introduce indirection] Nothing happens while 'Introduce Indirection' when CU not on Build path
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 314227    

Description Deepak Azad CLA 2010-05-24 04:53:35 EDT
Build I20100520-1744

- New workspace
- Open a Java file placed anywhere on the file system (but is not on build path)
Use following snippet

package q;
public class B {
	void foo() {
		System.out.println();
		System.out.println();
	}
}
- Select 'foo'
- From the Menu bar 'Refactor' -> Introduce Indirection => Nothing happens

A dialog that the CU is not on the build path should come up.
Comment 1 Deepak Azad CLA 2010-05-24 05:37:18 EDT
This works when the java file is stored in a simple project - dialog that 'the CU is not on the build path' shows up.
Comment 2 Deepak Azad CLA 2010-05-25 04:52:08 EDT
Same problem in 3.5.2
Comment 3 Deepak Azad CLA 2010-07-31 09:06:38 EDT

*** This bug has been marked as a duplicate of bug 139197 ***