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.
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
Created attachment 69989 [details] wtk dir not recognized -> wrong icon
IMHO, not a regression on MP side, there was some change elsewhere which caused this
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.
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.
Created attachment 70496 [details] Fix
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.
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)
103668:f99c0785ed4d
verified 8/10