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 215158 - JSR options must be saved for each skin
Summary: JSR options must be saved for each skin
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: ME SDK Integration (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Somol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-04 09:04 UTC by Petr Somol
Modified: 2012-09-10 11:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
changing devices in one configuration in project properties dialog (128.34 KB, image/png)
2012-07-04 09:04 UTC, Petr Somol
Details
profile setting after device change (103.95 KB, image/png)
2012-08-27 09:26 UTC, Stepan Zebra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Somol 2012-07-04 09:04:21 UTC
Created attachment 121720 [details]
changing devices in one configuration in project properties dialog

In Mobile Application Project Properties dialog go to Platform category. The attachment shows what happens when another device is selected in Device combo, and then the original one is selected back immediately (without even closing the dialog). The problem is that when choosing a device supporting a smaller set of JSRs, all those unsupported get unchecked configuration-wide. This becomes a nuisance when another device is later selected in the same configuration - then if more JSR are supported for such device, they all are unchecked and user must manually (re)check what is needed.

The correct behavior would prevent the need to re-check whatever JSRs re-appear after the change of Device. The last known state (checked/unchecked) should be remembered for each existing JSR, and such state should be restored in dialog whenever a previously unavailable JSR becomes available by change in Device combo.
Comment 1 Tomas Zezula 2012-07-04 09:46:01 UTC
One possible solution is to store the mapping Device ->[JSRs] into private project preferences.
When the Device is reselected the JSRs can be restored. A small disadvantage of this solution is that the nbproject/private/private.properties file will contain several non user properties but it's acceptable as the private folder is not shared.
Comment 2 Petr Somol 2012-07-10 16:00:05 UTC
fixed in jetmain:
http://hg.netbeans.org/jet-main/rev/99a614a5aa48

The current solution preserves the logic that selection/deselection of optional packages is per configuration. However, changing a device now does not erase those optional packages that are not supported by the particular device. This approach is more practical in cases when selection/deselection of a particular API is to be evaluated in context of various devices - there is no need to select/deselect separately for each device. The common selection is stored in private.properties per configuration, this keeps things less messy in private.properties than would be the case of storing the settings for each configuration-device combination separately.
Comment 3 Quality Engineering 2012-07-12 08:16:59 UTC
Integrated into 'main-golden', will be available in build *201207120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/99a614a5aa48
User: Petr Somol <psomol@netbeans.org>
Log: #215158 - JSR options must be saved for each skin
Comment 4 Marian Mirilovic 2012-08-03 09:27:33 UTC
Patch candidate ?
Comment 5 Stepan Zebra 2012-08-27 09:26:22 UTC
Created attachment 123599 [details]
profile setting after device change

When a device is switched in Project Properties, the active profile radio selector is not updated and it may remain set to an unsupported profile. Can this be fixed of scope of this issue as well?
Note that in New Project... wizards the radio buttons are being updated according to selected device.
Comment 6 Petr Somol 2012-08-29 12:20:26 UTC
(In reply to comment #5)
> Created attachment 123599 [details]
> profile setting after device change
> 
> When a device is switched in Project Properties, the active profile radio
> selector is not updated and it may remain set to an unsupported profile. Can
> this be fixed of scope of this issue as well?
> Note that in New Project... wizards the radio buttons are being updated
> according to selected device.

I discovered that this was a separate issue unrelated to #215158. It had been caused by #157499 fix.
Fix in jetmain:
http://hg.netbeans.org/jet-main/rev/601772b82890
Comment 7 Quality Engineering 2012-08-30 02:12:42 UTC
Integrated into 'main-golden', will be available in build *201208300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/601772b82890
User: Petr Somol <psomol@netbeans.org>
Log: #215158 comment 5 - correcting bug caused by wrong fix to #157499
Comment 8 Petr Somol 2012-08-30 20:53:44 UTC
due to time pressure before deadline:
99a614a5aa48 transplanted to c9d9eef42aa0
601772b82890 transplanted to 9a2219081d58
Comment 9 Quality Engineering 2012-09-01 11:11:53 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/c9d9eef42aa0
User: Petr Somol <psomol@netbeans.org>
Log: #215158 - JSR options must be saved for each skin
Comment 10 Stepan Zebra 2012-09-10 11:22:29 UTC
verified in 7.2.1