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

Bug 470292

Summary: Copy Qualified Name in Package Explorer results in different content as in the Java editor
Product: [Eclipse Project] JDT Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: noopur_gupta
Version: 4.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Lars Vogel CLA 2015-06-16 10:55:42 EDT
"Copy Qualified Name" results in different content in the clipboard, depending where you trigger it.

---------
To test create a class, e.g. com.example.e4.rcp.todo.services.internal.MyContextFunction.java

Right click on the class in the PackageExplorer, and select "Copy Qualified Name"

Result:

/com.example.e4.rcp.todo.services/src/com/example/e4/rcp/todo/services/internal/MyContextFunction.java

Right click on the class in the open Java Editor, and select "Copy Qualified Name"

Result:

com.example.e4.rcp.todo.services.internal.MyContextFunction
---------

Not sure what the correct result is but the same action should not result in different content copied. To fix this, I suggest to either:

1.) Rename the action in Package Explorer
2.) Make actions behave the same
Comment 1 Noopur Gupta CLA 2015-06-18 03:40:36 EDT
See bug 232711 also.

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