From: "Timo Müller" <mail@timomueller.eu>
To: "Zhang, Jessica" <jessica.zhang@intel.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>,
Timo Mueller <timo.mueller@bmw-carit.de>
Subject: Re: [PATCH][eclipse-poky] plugin/sdk.ide: Pre-populate project specific profile form
Date: Wed, 26 Jun 2013 08:46:55 +0200 [thread overview]
Message-ID: <51CA8E5F.1090803@timomueller.eu> (raw)
In-Reply-To: <C6510F6D410BB64A8C15398EDC6B847C73C4F55E@ORSMSX103.amr.corp.intel.com>
Hi Jessica,
Zhang, Jessica wrote, On 25.06.2013 23:52:
> Hi Timo,
>
> How am I supposed to apply this patch? I tried to apply it against
master first, then the patch2 of your v3 patch series won't apply. If I
apply your v3 patch series first, then this patch won't apply after that...
I've messed up with the prefix, that's why it didn't apply. Sorry about
that. I'll resend the patch that will apply to the master.
>
> Thanks,
> Jessica
>
> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Timo Mueller
> Sent: Tuesday, June 25, 2013 8:33 AM
> To: yocto@yoctoproject.org
> Cc: Timo Mueller
> Subject: [yocto] [PATCH][eclipse-poky] plugin/sdk.ide: Pre-populate project specific profile form
>
> From: Timo Mueller <timo.mueller@bmw-carit.de>
>
> On initial setup the profile form is populated with the values from the previously selected target profile. This allows the user to quickly make project specific adaptions of an existing profile.
>
> If a project specific profile is already defined the form will show the values from this configuration.
>
> Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
> ---
> .../sdk/ide/preferences/YoctoSDKProjectPropertyPage.java | 14 ++++++++++++--
> 1 file changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
> index 9f99caf..408ce76 100644
> --- a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
> +++ b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoS
> +++ DKProjectPropertyPage.java
> @@ -31,14 +31,15 @@ import org.osgi.service.prefs.BackingStoreException;
> import org.yocto.sdk.ide.YoctoProfileElement;
> import org.yocto.sdk.ide.YoctoProfileSetting;
> import org.yocto.sdk.ide.YoctoProjectSpecificSetting;
> +import org.yocto.sdk.ide.YoctoSDKChecker;
> import org.yocto.sdk.ide.YoctoSDKChecker.SDKCheckRequestFrom;
> import org.yocto.sdk.ide.YoctoSDKChecker.SDKCheckResults;
> import org.yocto.sdk.ide.YoctoSDKMessages;
> -import org.yocto.sdk.ide.utils.YoctoSDKUtils;
> -import org.yocto.sdk.ide.utils.YoctoSDKUtilsConstants;
> import org.yocto.sdk.ide.YoctoSDKPlugin; import org.yocto.sdk.ide.YoctoUIElement; import org.yocto.sdk.ide.YoctoUISetting;
> +import org.yocto.sdk.ide.utils.YoctoSDKUtils;
> +import org.yocto.sdk.ide.utils.YoctoSDKUtilsConstants;
>
> public class YoctoSDKProjectPropertyPage extends PropertyPage implements
> IWorkbenchPropertyPage {
> @@ -288,6 +289,15 @@ public class YoctoSDKProjectPropertyPage extends PropertyPage implements
> public void switchToProjectSpecificProfile()
> {
> YoctoUIElement profileElement = getElemFromProjectPreferences(getProject());
> + SDKCheckResults result =
> +YoctoSDKChecker.checkYoctoSDK(profileElement);
> +
> + if ((result != SDKCheckResults.SDK_PASS)) {
> + /* Project specific profile has not yet been defined,
> + * leave settings from previously selected profile
> + */
> + return;
> + }
> +
> yoctoUISetting.setCurrentInput(profileElement);
> }
>
> --
> 1.8.1.4
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
If this is merged, the "Add target profile quick switch" patch series
has to be adapted slightly. I'll send a rework of the series in that case.
Best regards,
Timo
prev parent reply other threads:[~2013-06-26 6:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1372173542.git.timo.mueller@bmw-carit.de>
2013-06-25 15:32 ` [PATCH][eclipse-poky] plugin/sdk.ide: Pre-populate project specific profile form Timo Mueller
2013-06-25 21:52 ` Zhang, Jessica
2013-06-26 6:46 ` Timo Müller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51CA8E5F.1090803@timomueller.eu \
--to=mail@timomueller.eu \
--cc=jessica.zhang@intel.com \
--cc=timo.mueller@bmw-carit.de \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.