From: Timo Mueller <timo.muel...@bmw-carit.de> The added method calls the performOK method on the provided preference page to store the current content of the page. This callback is needed so the profile UI is able to propagate changes to the preference page it is part of.
Signed-off-by: Timo Mueller <timo.muel...@bmw-carit.de> --- .../src/org/yocto/sdk/ide/YoctoProfileSetting.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 f9cd7ce..7c2b8d4 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 @@ -10,6 +10,7 @@ *******************************************************************************/ package org.yocto.sdk.ide; +import org.eclipse.jface.preference.PreferencePage; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; @@ -32,9 +33,11 @@ public class YoctoProfileSetting { private Button btnConfigNew; private YoctoProfileElement profileElement; + private PreferencePage preferencePage; - public YoctoProfileSetting(YoctoProfileElement profileElement){ + public YoctoProfileSetting(YoctoProfileElement profileElement, PreferencePage preferencePage){ this.profileElement = profileElement; + this.preferencePage = preferencePage; } public void createComposite(Composite composite) { @@ -101,6 +104,10 @@ public class YoctoProfileSetting { btnConfigRename.setText(YoctoSDKMessages.getString(RENAME_PROFILE_TITLE)); } + private void saveChangesOnCurrentProfile() { + preferencePage.performOk(); + } + private void addConfigs(Combo combo) { for (String profile : profileElement.getProfiles()) { combo.add(profile); -- 1.7.11.7 _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto