Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] dynamically changing enumeration values

Hi Sanchali,

What I mean is that in case the intention is to modify some option value
from the option value handler call-back, the callback implementer should
not try to access/modify the UI control, but instead should modify the
option value, i.e. call one of the setOption() methods.
The UI control will be updated with the new option value automatically.

Mikhail

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Sanchali G. Kshirsagar
Sent: Thursday, August 17, 2006 10:36 AM
To: CDT General developers list.
Subject: RE: [cdt-dev] dynamically changing enumeration values

Hi Mikhail,

Would you explain more on how to directly modify the option value? Do
you mean we need to call the valueHandlers here and set the option value
directly? An example would be a great help.

Regards,
-Sanchali

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Sennikovsky, Mikhail
Sent: Wednesday, August 16, 2006 7:22 PM
To: wieant@xxxxxxxxx; CDT General developers list.
Subject: RE: [cdt-dev] dynamically changing enumeration values

Hi Wieant,

As Sanchali mentioned you don't need a direct access to the UI element
(i.e. combo box). Instead you should modify the option value directly
and the change will be reflected in UI.

The other problem is changing the list of enumeration values of
ENUMERATED option which is not possible currently.

You might want to raise an enhancement request in bugzilla regarding
this.

You might also want to look at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=134019 regarding multiple
enum selection.

I'll be happy to review/apply any patches/proposals regarding fixing any
of the above issues.

Mikhail

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Wieant Nielander
Sent: Wednesday, August 16, 2006 3:34 PM
To: CDT General developers list.
Subject: [cdt-dev] dynamically changing enumeration values


In the build options for our toolchains we generally have an enumeration
option to select the target CPU. For some toolchains the number of
possible
CPUs may however be quite large, and in order to facilitate CPU
selection
we would like to add another (enumeration) option that allows selection
of
a subset of CPUs (e.g. by manufacturer). 

Now my question is how to dynamically change the list of selectable
enumeration values based on another option setting, thus in the above
case
changing a manufacturer should change the list of selectable items in
the
CPU selection box?

I tried the 'valueHandler' option extension, but that only seems to
filter
the enumeration values on creation of the combo box.  The option
applicability calculator on the other hand does get called whenever an
option changes, but I couldn't find a way to get access to the required
combo box in order to change its items list.

Regards,
  Wieant
_______________________________________________
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