[yocto] [RFC v2 13/18] plugins/sdk.ide: Add method to change values of the preference page
Timo Mueller
mail at timomueller.eu
Wed Jan 30 05:56:32 PST 2013
From: Timo Mueller <timo.mueller at bmw-carit.de>
When switching profile the values of the profile are retrieved from
the preference store. The UI is updated using the retrieved values.
Signed-off-by: Timo Mueller <timo.mueller at bmw-carit.de>
---
.../org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoProfileSetting.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoProfileSetting.java b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoProfileSetting.java
index 077dc28..105fd9c 100644
--- a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoProfileSetting.java
+++ b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoProfileSetting.java
@@ -88,6 +88,10 @@ public class YoctoProfileSetting {
String selectedItem = sdkCombo.getItem(sdkCombo.getSelectionIndex());
profileElement.setSelectedProfile(selectedItem);
+
+ if (preferencePage instanceof YoctoSDKPreferencePage) {
+ ((YoctoSDKPreferencePage) preferencePage).switchProfile(selectedItem);
+ }
}
};
--
1.7.11.7
More information about the yocto
mailing list