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 115348 - Import of annotation settings is broken
Summary: Import of annotation settings is broken
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-12 14:13 UTC by Jiri Prox
Modified: 2010-10-01 15:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (124.99 KB, image/png)
2007-09-12 14:14 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-09-12 14:13:41 UTC
Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709091200) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-b02
System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /home/jp159440/.netbeans/6.0beta1

Import of annotation settings is broken. Some items in annotations list misses icon and are aligned to the left. Several
annotation with unclear name is added. 
Steps to reproduce:
1) open 5.5.1
2) open OD -> Fonts & Colors -> Annotation
3) set the foreground of all items to the same color
4) open 6.0 and import setting
5) open OD -> Fonts & Colors -> Annotation
->See the screenshot.
Comment 1 Jiri Prox 2007-09-12 14:14:32 UTC
Created attachment 48648 [details]
screenshot
Comment 2 Vitezslav Stejskal 2007-09-13 10:58:07 UTC
I'll have a look at the bookmark annotation and pass this to other modules. Or file separate issues for debuger, jsp,
... if you want them to get to it sooner.
Comment 3 Jiri Prox 2008-04-11 00:41:28 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 4 Miloslav Metelka 2008-11-26 15:05:38 UTC
The problem likely is that the bookmark.xml file gets created in userdir and the path to the icon has changed between
5.5.1 and later versions:
 glyph="nbresloc:/org/netbeans/modules/editor/bookmarks/resources/bookmarkglyph.gif"
versus
 glyph="nbresloc:/org/netbeans/modules/editor/bookmarks/resources/bookmark_16.png"
I guess a similar problem applies to the other annotations.

As a quick workaround $userdir/Editors/AnnotationTypes/bookmark.xml (or the whole AnnotationTypes dir) can be removed
which should fix the problem (the particular annotation's attributes will of course be set to its default values).
Comment 5 Sergey Petrov 2009-04-15 12:17:53 UTC
6.5->6.7 (090413) bookmarks icon is correct, some strange messages like CTL_.. HINT_.. LBL_ is there and some of them do
not have icons, but in my opinion it should be handled either on importing or on options level, not to show annotations
for missed modules for example (I'm not sure it's the reason, but looks  reasonable).
Comment 6 David Strupl 2010-10-01 15:16:47 UTC
We are not going to fix importing settings from 5.5 to 6.x. Marking as wontfix.