Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » HowTo Display Validaton Status ICONS in a Form
HowTo Display Validaton Status ICONS in a Form [message #642816] Thu, 02 December 2010 19:26 Go to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
Messages: 118
Registered: March 2010
Senior Member
Hello,
I am uisng XWT validation mechanism to display my validation rules status to a Form.

I have managed to get the message into the Form using pure XWT - nothing in code-behind class, but I cannot seem to get the status ICON vz SWT.ICON_ERROR, etc into the Form.

Here is my XWT Form:

<Shell 
    xmlns="http://www.eclipse.org/xwt/presentation" 
    xmlns:x="http://www.eclipse.org/xwt" 
    x:Class="snippets.ui.e4.forms.headclient.FormPage" 
    text="XWT Forms Application" 
    x:Name="shell"
    dataContext="{StaticResource name}"
    bindingContext="{StaticResource bindContext}"
    xmlns:model="clr-namespace:snippets.ui.e4.databinding.model" 
    xmlns:v0="clr-namespace:snippets.ui.e4.databinding.validation.validators">
	<Shell.layout>
		<GridLayout/>
	</Shell.layout>
    	<Shell.Resources>
		<model:Name x:Key="name" />
        <BindingContext x:Key="bindContext" />
	</Shell.Resources>
    <Form x:Name="form" text="{Binding source={StaticResource bindContext}, path=status}" font="MS Sans Serif,5,BOLD">
    	<Form.layoutData>
    		<GridData grabExcessHorizontalSpace="true" horizontalAlignment="FILL"/>
    	</Form.layoutData>
    	<Form.body>
    		<Form.body.layout>
    			<GridLayout numColumns="2"/>
    		</Form.body.layout>
    		<Label text="Name" x:Name="nameLbl"/>
    		<Text x:Style="BORDER" x:Name="nameText" ModifyEvent="onModify" text="{Binding  Path=full, updateSourceTrigger=PropertyChanged, validationRule=v0:NameValidationRule}">
    			<Text.layoutData>
    				<GridData grabExcessHorizontalSpace="true" horizontalAlignment="FILL"/>
    			</Text.layoutData>
    		</Text>
    	</Form.body>
    </Form>
</Shell>
<!-- Forms API -->


Could someone point me in the correct direction please?

Thanks
Re: HowTo Display Validaton Status ICONS in a Form [message #733619 is a reply to message #642816] Wed, 05 October 2011 08:35 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
Did you ever find a solution?
Re: HowTo Display Validaton Status ICONS in a Form [message #741701 is a reply to message #733619] Wed, 19 October 2011 20:23 Go to previous messageGo to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
Messages: 118
Registered: March 2010
Senior Member
Sorry Alexy,
No, I have not found the solution. I have actually placed XWT aside until things are a bit clearer.
Re: HowTo Display Validaton Status ICONS in a Form [message #741705 is a reply to message #741701] Wed, 19 October 2011 20:28 Go to previous message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
Right, I see. Thanks!
Previous Topic:extension passing messages to e4 UI, how to?
Next Topic:EMF EditingDomain, Undo/Redo
Goto Forum:
  


Current Time: Thu Apr 25 10:32:30 GMT 2024

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

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

Back to the top