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 147394 - Java ME platform not marked with icon
Summary: Java ME platform not marked with icon
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-09-16 16:09 UTC by Lukas Hasik
Modified: 2008-10-08 15:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wtk dir not recognized -> wrong icon (40.28 KB, image/jpeg)
2008-09-17 00:17 UTC, Lukas Hasik
Details
Fix (15.35 KB, patch)
2008-09-24 16:53 UTC, _ tboudreau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-09-16 16:09:47 UTC
Product Version: NetBeans IDE Dev (Build 200809150201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: F:\netbeans\userdir\nb65-oslo

-Tools > Java Platforms > Add Platform > Java ME MIDP Platform Emulator
-browse to a directory where is a WTK (or other valid j2me platform)
-> platform is not marked by the proper icon
+P2 because it is regression 
-platform is recognized correctly but the users will be confused by the inconsistence in IDE
Comment 1 Lukas Hasik 2008-09-17 00:17:43 UTC
Created attachment 69989 [details]
wtk dir not recognized -> wrong icon
Comment 2 Petr Suchomel 2008-09-17 08:38:35 UTC
IMHO, not a regression on MP side, there was some change elsewhere which caused this
Comment 3 _ tboudreau 2008-09-23 21:47:30 UTC
Strong suspicion that the bug is in org.netbeans.modules.java.platform.wizard.PlatformInstallIterator.initialize() - it gets a list of all available instances of 
PlatformInstall, but only the 0th one is used to determine which item should be badged.  I'll have a full checkout on a Windows machine in a couple of hours 
and should be able to determine if that's what's going on.
Comment 4 _ tboudreau 2008-09-24 16:52:10 UTC
Actually, if this is a regression, it is a very old one - reading the code, this cannot have worked since auto-detection
of ME platforms was added in 2005.  Anyway, it is easy enough to borrow some code from java.platform to implement our
own file chooser which does this.
Comment 5 _ tboudreau 2008-09-24 16:53:12 UTC
Created attachment 70496 [details]
Fix
Comment 6 Lukas Hasik 2008-09-24 17:07:16 UTC
will it work with the idea of additional plugins for j2me platforms? I'd say yes but I just pointed out that it has to
be tested.
Comment 7 Lukas Hasik 2008-09-24 17:23:19 UTC
I just wanted to be sure and so I started 6.5 Beta. I can confirm that the cldc platforms are not badged too. 
Anyway, the behavior is regression to the behavior that the users used to have in 6.1 (and with other platform types)
Comment 8 _ tboudreau 2008-09-24 17:40:56 UTC
 103668:f99c0785ed4d
Comment 9 Lukas Hasik 2008-10-08 15:29:45 UTC
verified 8/10