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 192181 - multiple Subversion import folders selected
Summary: multiple Subversion import folders selected
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 16:20 UTC by gholmer
Modified: 2011-03-15 09:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (20.09 KB, image/png)
2010-11-19 16:21 UTC, gholmer
Details
Browse Repository Folders dialog screenshot (46.21 KB, image/pjpeg)
2011-02-09 09:19 UTC, Stepan Zebra
Details
svn repository (26.45 KB, application/octet-stream)
2011-03-08 13:48 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gholmer 2010-11-19 16:20:25 UTC
[ BUILD # : 201011190001 ]
[ JDK VERSION : 1.6.22 ]

Steps to reproduce:

1) Right-click project, select "Versioning / Import into Subversion
Repository".
2) Click "Next" after entering repo information.
3) In "Repository Folder" step, click "Browse" (in this case, the default was
"tasklist-prime").
4) Multiple entries are selected (see screenshot).
Comment 1 gholmer 2010-11-19 16:21:00 UTC
Created attachment 103107 [details]
screenshot
Comment 2 Stepan Zebra 2011-02-09 09:19:32 UTC
Created attachment 105780 [details]
Browse Repository Folders dialog screenshot

Bug reproduced on Windows XP machine with latest build:

Product Version: NetBeans IDE 7.0 Beta 2 (Build 201102052128)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 3 Ondrej Vrabec 2011-03-07 16:09:38 UTC
fix: http://hg.netbeans.org/core-main/rev/282f4885ba33
Comment 4 Quality Engineering 2011-03-08 05:50:13 UTC
Integrated into 'main-golden', will be available in build *201103080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/282f4885ba33
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #192181 - multiple Subversion import folders selected
Comment 5 Stepan Zebra 2011-03-08 08:18:28 UTC
Product Version: NetBeans IDE Dev (Build 201103080000)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Linux version 2.6.32-29-generic running on i386; UTF-8; en_US (nb)

Bug has been fixed in Import dialog, however still occurs in Checkout dialog.
Comment 6 Ondrej Vrabec 2011-03-08 13:46:30 UTC
caused by an improved performance fix in ETable: #70bd83e8f43f
How to reproduce:
1) Unpack attached subversion repository somewhere
2) Invoke Subversion -> Checkout
3) Enter file://PATH_TO_THE_REPOSITORY, click on Next
4) Enter 195877 as Repository Folder and click on Browse
5) For a while (when other folders are being loaded from the repository), the 195877 folder is correctly selected, but when the nodes are loaded and input into the model, the selection is changed and all nodes are selected.
Comment 7 Ondrej Vrabec 2011-03-08 13:48:25 UTC
Created attachment 106821 [details]
svn repository
Comment 8 Martin Entlicher 2011-03-10 18:45:21 UTC
It looks like this is just swing behavior.
JTable.tableRowsInserted() calls DefaultListSelectionModel.insertIndexInterval(), where it adds selection to the inserted lines when the original index was selected. Therefore it stretches the selection.
So according to the Swing implementation, this behavior is correct!
Comment 9 Martin Entlicher 2011-03-14 16:01:07 UTC
I've introduced ETableSelectionModel, which changes the original Swing behavior and does not extend the selection with inserted lines.
Fixed by changeset:   190985:6d91003a89b2
http://hg.netbeans.org/main/rev/6d91003a89b2
Comment 10 Quality Engineering 2011-03-15 09:49:17 UTC
Integrated into 'main-golden', will be available in build *201103150400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6d91003a89b2
User: mentlicher@netbeans.org
Log: #192181 Introduce ETableSelectionModel to prevent from automatic selection of inserted lines.