Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] MBS (IManagedOptionValueHandler) questions

Hi Derek,

 

>What/How can I change a UI property so that it gets refreshed? I am currently

using option.setValue(newValue), but that is not causing a refresh.

There is no way for the tool-integrator to force update currently. As mentioned earlier, the page gets refreshed when it becomes visible and/or when a user changes some option on the page.

 

>An 'automatic' refresh after option.setValue() would be good...

The core knows nothing about UI so it can not refresh UI when the setValue is called. The only solution for this would be to implement the listener mechanism, but AFIK no one is planning to work on this currently.

 

Regards,

Mikhail

 

 

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Derek Morris
Sent: Wednesday, October 18, 2006 11:07 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] MBS (IManagedOptionValueHandler) questions

 

Mikhail,

 

Thanks for this. Please see a further question embedded below.

---

Derek

 

Sennikovsky, Mikhail wrote:

> Hi Derek,

>

>

> Please see my answers embedded below.

>

>

> Mikhail

>

>

> -----Original Message-----

> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]

> On Behalf Of Derek Morris

> Sent: Wednesday, October 18, 2006 3:20 PM

> To: CDT General developers list.

> Subject: [cdt-dev] MBS (IManagedOptionValueHandler) questions

>

>

> Hi,

>

>

> Note: I think you're going to hate this as I'm using this extension in a

> way

>

> that wasn't planned...

>

>

> In the plugin.xml have added an additional field to a compilers

> optionCategory,

>

> like this:

>

> <option

>

>     name='Paste area'

>

>     category='compiler.exe.debug'

>

>     id='paste'

>

>     valueType='string'

>

>     valueHandler='OptionValueHandler'

>

>     valueHandlerExtraArgument="paste"

>

>  ></option>

>

>

> I am using the OptionValueHandler to allow a user to paste tool options

> into a

>

> field which is then parsed to set the tool options in the properties

> GUI. This

>

> means I can copy and paste options between configurations and correctly

> set the

>

> properties GUI to match. This is working.

>

>

> The first question is that I would like to add this field to the main

> compiler

>

> page (under 'expert settings'), rather than one of the sub-pages. Is

> there a way

>

> to do this?

>

> */[Mikhail] It is not possible to extend/contribute to the main compiler

> page currently./*

>

>

>

> The second question is that after I have parsed the options, I wish to

> clear the

>

> entry field in the GUI. I am able to clear the value using

>

> (option.setValue("")), but this is not reflected in the GUI until I

> switch from

>

> the page and switch back again. Is there a way to get the entry field to be

>

> refreshed?

>

> */[Mikhail] The MBS functionality does not have the change notification

> mechanism currently. That is why MBS GUI has to refresh contents of each

> page to ensure that proper “live” values are displayed. Currently the

> refresh is performed in the following situations:/*

>

> */1.    /**/the page/tab becomes visible/*

>

> */2.    /**/the value of some UI property of the page gets changed/*

>

> */ /*

What/How can I change a UI property so that it gets refreshed? I am currently

using option.setValue(newValue), but that is not causing a refresh.

 

>

> */If you need some more flexible mechanism of UI contents update we

> might consider changing/enhancing the current MBS UI refresh mechanism./*

An 'automatic' refresh after option.setValue() would be good...

 

>

> */ /*

>

> */Regards,/*

>

> */Mikhail/*

>

>

> TIA

>

>

> --

>

> Derek

>

> _______________________________________________

>

> cdt-dev mailing list

>

> cdt-dev@xxxxxxxxxxx

>

> https://dev.eclipse.org/mailman/listinfo/cdt-dev

>

>

> ------------------------------------------------------------------------

>

> _______________________________________________

> cdt-dev mailing list

> cdt-dev@xxxxxxxxxxx

> https://dev.eclipse.org/mailman/listinfo/cdt-dev

 

_______________________________________________

cdt-dev mailing list

cdt-dev@xxxxxxxxxxx

https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top