Bug 579401

Summary: Copy Fully Qualified Name in Popup of Package Explorer of Class give path name instead of FQN
Product: [Eclipse Project] JDT Reporter: Martijn Dashorst <martijn.dashorst>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.23   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Martijn Dashorst CLA 2022-03-24 05:28:19 EDT
Expected behavior:

When I right click in the package explorer and select Copy FQN, and paste the contents of the system clipboard I get the Java fully qualified class name.

E.G. When I perform this action on a class HelloWorld residing in package hello.world, in the folder /project/src/main/java/hello/world/HelloWorld.java, I expect to paste the value "hello.world.HelloWorld".

Actual behavior:

I get the full path name of the class, eg /project.src/main/java/hello/world/HelloWorld.java

This is in contrast to what the popup's tooltip shows and what happens when you copy the FQN from the Java editor (there the action performs as expected).
Comment 1 Eclipse Genie CLA 2024-03-15 18:10:39 EDT
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.