Bug 579401 - Copy Fully Qualified Name in Popup of Package Explorer of Class give path name instead of FQN
Summary: Copy Fully Qualified Name in Popup of Package Explorer of Class give path nam...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.23   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-24 05:28 EDT by Martijn Dashorst CLA
Modified: 2024-03-15 18:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.