This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219014 - Favorites window: Invoking the "copy file path" on a folder via shortcut will copy the path twice
Summary: Favorites window: Invoking the "copy file path" on a folder via shortcut will...
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 18:32 UTC by markiewb
Modified: 2012-10-01 12:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
2 paths copied to clipboard (32.58 KB, image/png)
2012-09-26 17:04 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-09-25 18:32:55 UTC
[ BUILD # : 201209232010 ]
[ JDK VERSION : 1.6.35 ]

Invoking the "copy file path" on a folder within the favorites window via
shortcut 
will copy the path twice. 

EXPECTED: clipboard contains only one path

Feature was introduced by #153728
Comment 1 Jaroslav Havlin 2012-09-26 09:36:37 UTC
I'm sorry, I cannot reproduce the bug.

> Invoking the "copy file path" on a folder within the favorites window via
> shortcut will copy the path twice.
Is this behavior the same for all folders?

When you copy the path, does your status line show text "2 paths were copied to clipboard", or "Copy to clipboard: <path>"?

Thanks.
Comment 2 markiewb 2012-09-26 17:04:19 UTC
Created attachment 124960 [details]
2 paths copied to clipboard

(In reply to comment #1)
> Is this behavior the same for all folders?

Yes, i tried it again using 2 others.


(In reply to comment #1)
> When you copy the path, does your status line show text "2 paths were copied to
> clipboard", or "Copy to clipboard: <path>"?

2 paths were copied to clipboard - see screenshot


Product Version: NetBeans IDE 7.3 Beta (Build 201209232010)
Java: 1.6.0_30; Java HotSpot(TM) 64-Bit Server VM 20.5-b03
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 3 Jaroslav Havlin 2012-09-27 10:02:27 UTC
http://hg.netbeans.org/core-main/rev/0c64d3ecba07
Fixed.

The action is sometimes passed two DataObjects for the same file, e.g. DataShadow and DataFolder.

Thank you for reporting.
Comment 4 Quality Engineering 2012-10-01 12:05:13 UTC
Integrated into 'main-golden', will be available in build *201210010929* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0c64d3ecba07
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #219014: Invoking the "copy file path" on a folder via shortcut will copy the path twice