[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [Dltk-dev] How to listen for interpreter changes?
|
- From: Gabriel Petrovay <gabipetrovay@xxxxxxxxx>
- Date: Wed, 16 Sep 2009 15:21:39 +0200
- Delivered-to: dltk-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=3AnamvSdTfNKojxlB8bdwSQXYTqn7mMpJW/XrlDVmLo=; b=F1jMMtuev7vYGwTJY4auWLaBTX3saVBTxHwKuC/bNOUWZysq9450vDIMqP48JhZq67 EQNslMdi+LjTDq7io1D4UvlWVJ8bBl51i1rXbDFVdXXmPeAKDnWrQDPIU0u8/qp7Nfyj rHqCRK01SbzsE5wKeLNm6tm/Hu3nZyhV1RZ5o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=sOEBZ2GrDTqQY/hN9o8nakU3Vf8d0VDuO82YwUdcPBA4B/6+o/QLOJgUmQAi402Hm+ cc6I1BO6CCFPJn4e293nuHnMtcpvpkhKIcZ6gIpP6IrgPbuksBuABk4t0UYf3jBkVp09 LUeUsgmL3VisW23UjFiFxo2j8dZf6UfyoKNRc=
Hi, there is a problem with the previous described way of doing this:
>From the MyBuildPathsPropertyPage.performOK() method I see no way to
access the new interpreter. This is because I cannot acces data from
the private fBuildPathsBlock in the parent class. With the help of
ScriptRuntime this is also impossible since the flushing of the
project buildpath occurs is performed in a job.
Any ideas how to solve this problem of interpreter change events (on a
project basis)?
Thanks!
Gabriel
On Wed, Sep 16, 2009 at 2:32 PM, Gabriel Petrovay
<gabipetrovay@xxxxxxxxx> wrote:
> Hi again,
>
> Should I overwrite the performOK method of the BuildPathsPropertyPage
> class? Of course, this only captures the project specific changes. The
> remaining events (changing the default workspace interpreter) still
> needs to be treated separately (with the help of an
> IInterpreterInstallChangedListener).
>
> Do you see this as the right approach?
>
> Thank!
> Gabriel
>
> On Wed, Sep 16, 2009 at 2:13 PM, Gabriel Petrovay
> <gabipetrovay@xxxxxxxxx> wrote:
>> Hi Andrei,
>>
>> The IInterpreterInstallChangedListener is only notified when workspace
>> interpreter changes occur (adding, removing, editing or changing the
>> default one). What I need is a listener like that but for projects
>> (when the user changes the interpreter of the project I have to
>> perform custom actions depending on the chosen interpreter). Any
>> solution for this?
>>
>> Thanks!
>>
>> Gabriel
>>
>> On Tue, Sep 15, 2009 at 6:57 AM, Andrei Sobolev
>> <andrei.sobolev@xxxxxxxxx> wrote:
>>> Hi Gabriel,
>>>
>>> You could use
>>> org.eclipse.dltk.launching.ScriptRuntime.addInterpreterInstallChangedListener()
>>> method to register listener.
>>>
>>> Best regards,
>>> Andrei Sobolev.
>>>>
>>>> Hi,
>>>>
>>>> Is there a way one can listen for interpreter changes (This event can
>>>> appear either by changing the Eclipse preference or the project
>>>> property).
>>>>
>>>> Thanks!
>>>>
>>>> Regards,
>>>> Gabriel
>>>>
>>>>
>>>
>>> _______________________________________________
>>> dltk-dev mailing list
>>> dltk-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/dltk-dev
>>>
>>
>>
>>
>> --
>> MSc Gabriel Petrovay
>> Mobile: +41(0)787978034
>> www.28msec.com
>>
>
>
>
> --
> MSc Gabriel Petrovay
> Mobile: +41(0)787978034
> www.28msec.com
>
--
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com