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 168609 - [68cat] Import of Favorites incomplete
Summary: [68cat] Import of Favorites incomplete
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords:
Depends on:
Blocks: 172748
  Show dependency tree
 
Reported: 2009-07-15 13:32 UTC by ulfzibis
Modified: 2009-10-22 23:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Favourites order after import (was as indicated by red numbers before import) (30.44 KB, image/png)
2009-09-21 17:43 UTC, ulfzibis
Details
Favourites order in 6.8M2 exported to zip (27.13 KB, image/png)
2009-10-16 11:05 UTC, ulfzibis
Details
Favourites order in 10151401 after import from 6.8M2 (26.16 KB, image/png)
2009-10-16 11:07 UTC, ulfzibis
Details
Favourites exported from 6.8M2 (4.99 KB, application/x-compressed)
2009-10-16 11:09 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2009-07-15 13:33:04 UTC
[ BUILD # : 6.7 ]
[ JDK VERSION : 1.6.* ]

If importing Favorites by Options->Import, the original order of the
favorites is lost.
Additionally Favorites tab is not added to "project's window".
Comment 1 Jiri Skrivanek 2009-07-16 12:36:48 UTC
It works for me. Order is preserved. Please, provide exact use case when it fails. And position of windows is not
transferred at all.
Comment 2 ulfzibis 2009-09-11 18:37:32 UTC
I can reproduce this issue on BUILD 200909081533.
Have exported favourites from 6.7.1, and then imported to BUILD 200909081533.
Comment 3 Jiri Skrivanek 2009-09-14 09:40:04 UTC
So, please add exact steps how to reproduce (what is not ordered correctly).
Comment 4 Jiri Skrivanek 2009-09-21 09:10:33 UTC
No response from reporter.
Comment 5 ulfzibis 2009-09-21 17:43:15 UTC
Created attachment 88038 [details]
Favourites order after import (was as indicated by red numbers before import)
Comment 6 ulfzibis 2009-09-21 17:44:38 UTC
Sorry for delay.
I guess order must be non-alphabetical before import.
Comment 7 ulfzibis 2009-09-21 17:48:21 UTC
Additionally it's not possible to move an item to the position before the current 1st one.
Comment 8 Jiri Skrivanek 2009-09-22 08:56:27 UTC
It is not clear for me? What was the state before import? Were there only 1, 2, 3, 4 items?
Comment 9 ulfzibis 2009-09-22 09:09:10 UTC
No, the other items followed the 4th item in given order (as they are alphabetically ordered).
Comment 10 Jiri Skrivanek 2009-09-22 10:03:06 UTC
I am lost. If I add a new item to Favorites, it is added to the end. Not sorted alphabetically. Please, could you
describe initial and final states. E.g.

source ide favorites: 1.5 src, 1.6_03 src, ..., 1.7_b70 share_classes, nio_charset, Projects
target ide before import: Home
target ide after import: 1.5 src, 1.6_03 src, ..., 1.7_b70 share_classes, Projects, nio_charset
Comment 11 ulfzibis 2009-09-22 10:17:22 UTC
I am lost. If I add a new item to Favorites, it is added to the end. Not sorted alphabetically.
You can drag and drop item by mouse to other position (except 1. position).

source ide favorites:
  Home, Projects, nio_charset, OpenJDK_jdk, 1.5 src, 1.6_03 src, ..., OpenJDK-b72_jdk
target ide before import:
  don't know, maybe 'Home'
target ide after import:
  1.5 src, 1.6_03 src, ..., 1.7_b70 share_classes, Home, OpenJDK-b63_jdk, OpenJDK-b72_jdk, Projects, nio_charset,
OpenJDK_jdk
Comment 12 Jiri Skrivanek 2009-09-22 13:50:47 UTC
OK, I tried it from NB6.7.1 to NB6.8dev and after import order of favorites items was exactly the same as in NB6.7.1. If
you are able to reproduce from scratch, please describe steps. Or send content of <source_userdir>/config/Favorites and
<target_userdir>/config/Favorites after import. Thanks.
Comment 13 ulfzibis 2009-09-22 17:25:35 UTC
Now I have tried to reproduce once more, and wondering, that it works as desired -> imported items are in original order
and existing items are NOT deleted.
So the "erroneous" experience maybe was before/at_same_time the filesystem patch, which was provided on first start of
200909200201.
Comment 14 Jiri Skrivanek 2009-09-23 08:35:57 UTC
You are right I did some changes. So hopefully everything works now. Nevertheless, thank you for your report.
Comment 15 ulfzibis 2009-10-16 11:02:59 UTC
Sorry, it's not perfect, as it could be.
See in attachments that item "Home" is located wrong after import from 6.8M2 to 200910151401.
Additionally I like to remember, that it is not possible to move an item directly to the before-first position.
Comment 16 ulfzibis 2009-10-16 11:05:55 UTC
Created attachment 89604 [details]
Favourites order in 6.8M2 exported to zip
Comment 17 ulfzibis 2009-10-16 11:07:22 UTC
Created attachment 89606 [details]
Favourites order in 10151401 after import from 6.8M2
Comment 18 ulfzibis 2009-10-16 11:09:22 UTC
Created attachment 89607 [details]
Favourites exported from 6.8M2
Comment 19 Jiri Skrivanek 2009-10-20 12:15:47 UTC
You are right. The problem is the Home item is treated a special way. It cannot be fixed completely because position of
Home is stored in config/.nbattrs and this file is not imported. But I set default position for Home to be on top of
favorites after import. User can easily move this single item to desired position.
core-main #13166a1e04f3

Comment 20 Quality Engineering 2009-10-22 23:38:36 UTC
Integrated into 'main-golden', will be available in build *200910221401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/13166a1e04f3
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #168609 - Set default position for Home.shadow. It satisfies that after import of settings it is at the priority position.