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 232749 - ME8SDK-RFE: ME8 Devices imported are shown as invalid
Summary: ME8SDK-RFE: ME8 Devices imported are shown as invalid
Status: RESOLVED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords: PLAN
Depends on:
Blocks: 232770
  Show dependency tree
 
Reported: 2013-07-15 22:20 UTC by gsshiva
Modified: 2013-08-20 13:29 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
ME8SDK Devices are displayed as invalid (35.49 KB, image/png)
2013-07-15 22:20 UTC, gsshiva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gsshiva 2013-07-15 22:20:58 UTC
Created attachment 137156 [details]
ME8SDK Devices are displayed as invalid

The list of ME8 SDK devices imported are shown in a strike-through style in red color, making them not available for applications to use (See Attached image). 

The reason for this is that a valid J2ME profile does not exist for those devices. The mobility plugin only understands IMP, IMP-NG and MIDP as valid profiles. In case ME8 the profile is MEEP. 

The following changes fixes the issue.
mobility.cldcplatform/src/org/netbeans/modules/mobility/cldcplatform/UEIEmulatorConfiguratorImpl.java
@@ -247,12 +247,12 @@
                 int i = name.lastIndexOf('-');
                 String version = name.substring(i + 1);
                 name = name.substring(0, i);
-                if (!foundMIDP || !("IMP".equals(name) || "IMP-NG".equals(name))) { //NOI18N
+                if (!foundMIDP || !("IMP".equals(name) || "IMP-NG".equals(name) || "MEEP".equals(name))) { //NOI18N
                     String dispName = dispNames.get(name);
                     try {
                         dispName = NbBundle.getMessage(UEIEmulatorConfiguratorImpl.class, name);
                     } catch (Exception ex) {}
-                    final String type = "CLDC".equals(name) ? J2MEPlatform.J2MEProfile.TYPE_CONFIGURATION : ("MIDP".equals(name) || "IMP".equals(name) || "IMP-NG".equals(name) ? J2MEPlatform.J2MEProfile.TYPE_PROFILE : J2MEPlatform.J2MEProfile.TYPE_OPTIONAL); //NOI18N
+                    final String type = "CLDC".equals(name) ? J2MEPlatform.J2MEProfile.TYPE_CONFIGURATION : ("MIDP".equals(name) || "IMP".equals(name) || "IMP-NG".equals(name) || "MEEP".equals(name) ? J2MEPlatform.J2MEProfile.TYPE_PROFILE : J2MEPlatform.J2MEProfile.TYPE_OPTIONAL); //NOI18N
                     final StringBuffer cp = new StringBuffer();
                     boolean def = true;
                     for ( final Object obj : e.getValue() ) {
Comment 1 Roman Svitanic 2013-08-20 13:17:31 UTC
Implemented on javame8_232770 branch.