Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » ComboViewer trigger selection
ComboViewer trigger selection [message #637393] Fri, 05 November 2010 10:55
Missing name Missing name is currently offline Missing name Missing name
Messages: 57
Registered: September 2009
Member
Hello,

I defined a ComboViewer in a xwt file, containing items. How can I integrated a trigger to catch item selection and desable others widgets of the xwt file.

<ComboViewer name="comboActions">
<ComboViewer.control name="theComboActions">
    <ComboViewer.control.items>
         <x:Array Type="k:String">
             <k:String>Validate</k:String>
             <k:String>Continue</k:String>
         </x:Array>					
    </ComboViewer.control.items>

    <ComboViewer.control.Triggers>

        <Trigger property="Selection" value="Validate">						
            <Setter property="enabled" value="false" targetName="groupContinue" />
            <Setter property="enabled" value="true" targetName="groupValidation" />
        </Trigger>
    //no effect
		

			
        <Trigger property="SelectionIndex" value="1">						
            <Setter property="enabled" value="true" targetName="groupContinue" />
            <Setter property="enabled" value="false" targetName="groupValidation" />
        </Trigger>
        //no effect too


					
    </ComboViewer.control.Triggers>
</ComboViewer.control>
			
</ComboViewer>


Have you got an idea ?

[Updated on: Fri, 05 November 2010 10:56]

Report message to a moderator

Previous Topic:RCP (Eclipse 3.6) into E4
Next Topic:How do I glue a 3.x plugin into e4
Goto Forum:
  


Current Time: Thu Oct 30 18:23:54 GMT 2014

Powered by FUDForum. Page generated in 0.01528 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software