Hi Timo,

So what's the purpose of "Project Specific Settings", my understanding is it's 
something that only local to project instead of global name space, e.g. 
profile?  OK, I've played a little bit of toggling between profiles, and 
project specific setting and notice the following behaviors that can be 
confusing:

1. As your preference that user can specify "project specific settings".  I've 
noticed for this case, if I haven't entered any project specific settings via 
the preference wizard, it'll always copy the profile settings prior to its 
selection, then in this case I don't think it makes much sense since we already 
have the profiles to cover all the settings

2.  OK, now let's move to the case of that I do have explicit setup a project 
specific settings in the project property view apply it and exit the window.  
After that, in the drop down list, when I toggle between the options, e.g. I 
have two profiles besides the project specific settings, then every time after 
I made the selection and check in the project properties view, the settings 
matches my selection.  So this is good and consistent behavior.

3. If  inside the project properties window, I uncheck the "Use project 
specific settings" box, and select a profile then apply the changes close the 
window.  Now in the drop down list I will see both the "project specific 
setting" and the selected profile are selected. Then next time when I go back, 
and re-check "Use project specific settings" box, my project specific setting 
will be gone, instead the settings will show as my previous profile settings.

Overall, I think we still need to play a little bit more of different setting 
selections via different approaches, some of the inconsistent behavior can get 
user lost.

Thanks,
Jessica
-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Timo Mueller
Sent: Friday, June 21, 2013 5:45 AM
To: [email protected]
Cc: Timo Mueller
Subject: [yocto] [PATCHv2 0/8][eclipse-poky] Add target profile quick switch

From: Timo Mueller <[email protected]>

Changes in v2:
Handle error when project specific profile is not configured more gracefully. 
Instead of showing an error message the button is now greyed out.

Patches 01..07 contain the implementation with the greyed out menu button.

After playing around with the two options discussed in the first patch series, 
I started to prefer inserting a different button in the menu allowing the user 
to quickly navigate to the project preferences instead of just greying it out. 
I've added this in the last patch of the series, so you can compare yourself.

>From original cover letter
<snip>
if a user wants to change the used target profile of a project he currently has 
to open the project preferences. This can be tedious if he has to switch the 
profile often.

This is a small addition which allows the user to quickly switch the used 
target profile of a project. Instead of having to open the project preferences 
the user can select the project in the navigator and then choose the desired 
target profile from a drop-down menu in the toolbar or from the project menu.
</snip>

01: Small i18n fix
02..04: Refactoring the project specific utils
05..06: Introduce the target profile toolbar switch
07: Adds the target profile switch to the project menu
08: Experimental: Add button to open project preferences

Best regards,
Timo

Timo Mueller (8):
  plugins/sdk.ide: Use an internationalized dialog title
  plugins/sdk.ide: Extract project specific util methods
  plugins/sdk.ide: Move project specific util methods
  plugins/sdk.ide: Remove project context from method names
  plugins/sdk.ide: Add command to switch the target profile
  plugins/sdk.ide: Add profile switch menu to the toolbar
  plugins/sdk.ide: Add profile switch menu to the project menu
  plugins/sdk.ide: Add project configuration button

 .../OSGI-INF/l10n/bundle.properties                |   4 +
 plugins/org.yocto.sdk.ide/plugin.xml               |  96 ++++++++-
 .../sdk/ide/ProjectSpecificContributionItem.java   |  91 ++++++++
 .../sdk/ide/TargetProfileContributionItem.java     | 125 +++++++++++
 .../org/yocto/sdk/ide/YoctoSDKMessages.properties  |   5 +
 .../src/org/yocto/sdk/ide/YoctoUISetting.java      |   3 +-
 .../sdk/ide/actions/ProfileSwitchHandler.java      | 134 ++++++++++++
 .../natures/YoctoSDKAutotoolsProjectNature.java    |   3 +-
 .../ide/preferences/YoctoSDKPreferencePage.java    |  11 +-
 .../preferences/YoctoSDKProjectPropertyPage.java   | 130 ++---------
 .../sdk/ide/utils/ProjectPreferenceUtils.java      | 240 +++++++++++++++++++++
 .../src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java | 118 ----------
 .../ide/wizard/NewYoctoProjectTemplateProcess.java |   3 +-
 13 files changed, 717 insertions(+), 246 deletions(-)  create mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/ProjectSpecificContributionItem.java
 create mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/TargetProfileContributionItem.java
 create mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ProfileSwitchHandler.java
 create mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/ProjectPreferenceUtils.java

--
1.8.1.4

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to