Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 240118 - Copy Qualified Name copies a path instead
Summary: Copy Qualified Name copies a path instead
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 242887 243336 470292 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-09 02:24 EDT by Mariano Eloy Fernández Osca CLA
Modified: 2015-06-18 04:23 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariano Eloy Fernández Osca CLA 2008-07-09 02:24:28 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1. Locate a java class in the Package Explorer
2. Right-click, Copy Qualified Name
3. Paste it. The result is a slashed path instead of some.package.Classname


More information:
I don't recall this behaviour on Europa releases.
Comment 1 Frederic Fusier CLA 2008-07-09 06:05:53 EDT
It seems that neither IType.getFullyQualifiedName(...) nor IType.getTypeQualifiedName(...) methods are called while doing this action.
Move to JDT/UI to investigate further...
Comment 2 Dani Megert CLA 2008-07-09 07:04:42 EDT
Cannot reproduce using R3.4. Make sure you select a type and not the *.java resource.
Comment 3 Mariano Eloy Fernández Osca CLA 2008-07-10 02:13:48 EDT
That's correct Daniel, expanding the resource and right-clicking on the type element inside copies the qualified class name.
I am under the impression that I never needed to expand the resource on previous versions, but nevertheless, it works fine this way.
Comment 4 Dani Megert CLA 2008-07-10 03:01:19 EDT
> am under the impression that I never needed to expand
Mariano, you're of course right ;-) We added this feature for people that need the full path of the resource (*.java file, but also folders).
Comment 5 Dani Megert CLA 2008-08-04 03:32:31 EDT
*** Bug 242887 has been marked as a duplicate of this bug. ***
Comment 6 Dani Megert CLA 2008-08-06 14:45:05 EDT
*** Bug 243336 has been marked as a duplicate of this bug. ***
Comment 7 Noopur Gupta CLA 2015-06-18 03:40:36 EDT
*** Bug 470292 has been marked as a duplicate of this bug. ***
Comment 8 Lars Vogel CLA 2015-06-18 04:23:19 EDT
The label "Copy qualified name" is a bit confusing. I actually never noticed that the .java file is different handled than the C element. 

Good to know, not easy to fine out.