Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [DataBinding] DOM & XAML binding and bugs correction
[DataBinding] DOM & XAML binding and bugs correction [message #325928] Mon, 03 March 2008 14:13 Go to next message
Angelo ZERR is currently offline Angelo ZERRFriend
Messages: 122
Registered: July 2009
Senior Member
Hi,

I have starting to refactor TK-UI (see at http://tk-ui.sourceforge.net/)
API to manage binding between DOM (element, attribute...) and UI (Swing,
SWT) with JFace Databinding.

Just for information, TK-UI is API where you can describe your UI with XML
(XUL, XHTML, XForms...).

1. DOM & XAML binding

Today I can manage XHTML grammar where HTML element are bounded with UI
SWT or Swing with JFace Databinding (ex : <input type="text" value="bla
bla bla"> is rendered with SWT Text and SWT TextObservableValue is bounded
with AttrObservableValue (IObservableValue wich observe value of DOM
Attribute).

I have started too to manage binding with attribute expression like XAML :
Today I can manage this XHTML content :

<input id="MyTextBox" type="text" value="bla bla bla />
<input type="text" value="{Binding ElementName=MyTextBox, Path=value}" />

So the second input text is bounded with value attribute of the first
input.

Another sample is

<input type="checkbox" id="checkViewTextBox" checked="true" />
<input type="text" visible="{Binding ElementName=checkViewTextBox,
Path=checked}" />

When checkbox is checked, the input text is visible and false otherwise.

2. SWT JFace Databinding bugs/new features

I would like to say I have correct some bugs into SWT JFace Databinding
(see at
http://uface.googlecode.com/svn/trunk/org.ufacekit.ui.jface. databinding/)
:

ButtonObservableText => observe text of SWT Button.
ButtonObservableValue=> correction bug to initialise selectionValue filed into
ButtonObservableValue constructor.
ComboEditableObservableValue=> observe editable value of Combo (only
doGetValue works)
SliderObservableValue => observe slider value. See
org.ufacekit.ui.jface.databinding.example.properties.backgro und.BindBetweenSliderAndTextBackground
sample. There are 3 sliders (R, G, B) which manage background property of
SWT Text.

3. Bind events

I have created bind events project at
http://uface.googlecode.com/svn/trunk/org.ufacekit.ui.databi nding.events/
which extends DatabindingContext to manage binding between two kind of
event.

For instance with that, I can bind SWT event with DOM event. So I can bind
SWT MouseEvent with DOM MouseEvent. If you are interested by this toipc, I
could tell you more.

Regards Angelo
Re: [DataBinding] DOM & XAML binding and bugs correction [message #325932 is a reply to message #325928] Mon, 03 March 2008 14:54 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
[...]
> 2. SWT JFace Databinding bugs/new features
>
> I would like to say I have correct some bugs into SWT JFace Databinding
> (see at
> http://uface.googlecode.com/svn/trunk/org.ufacekit.ui.jface. databinding/) :
> ButtonObservableText => observe text of SWT Button.
> ButtonObservableValue=> correction bug to initialise selectionValue
> filed into ButtonObservableValue constructor.
> ComboEditableObservableValue=> observe editable value of Combo (only
> doGetValue works)
> SliderObservableValue => observe slider value. See
> org.ufacekit.ui.jface.databinding.example.properties.backgro und.BindBetweenSliderAndTextBackground
> sample. There are 3 sliders (R, G, B) which manage background property
> of SWT Text.

IMHO you should contribute those bugs/features back upstream (create
bugzillas for each of them).

Tom

--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [DataBinding] DOM & XAML binding and bugs correction [message #325951 is a reply to message #325932] Tue, 04 March 2008 07:28 Go to previous messageGo to next message
Angelo ZERR is currently offline Angelo ZERRFriend
Messages: 122
Registered: July 2009
Senior Member
Hi Tom,

Ok I will do that as soon as I have time.

Are you interested by my work about DOM and UI Databinding?

Regards Angelo
Re: [DataBinding] DOM & XAML binding and bugs correction [message #325952 is a reply to message #325951] Tue, 04 March 2008 07:48 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi Angelo,

Just to clarify what I meant. You should only contribute the SWT
bugfixes to upstream Eclipse-Projects.

Tom

Angelo schrieb:
> Hi Tom,
>
> Ok I will do that as soon as I have time.
>
> Are you interested by my work about DOM and UI Databinding?
>
> Regards Angelo
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [DataBinding] DOM & XAML binding and bugs correction [message #325953 is a reply to message #325952] Tue, 04 March 2008 08:01 Go to previous messageGo to next message
Angelo ZERR is currently offline Angelo ZERRFriend
Messages: 122
Registered: July 2009
Senior Member
Ok, I will do that.
Re: [DataBinding] DOM & XAML binding and bugs correction [message #326032 is a reply to message #325952] Thu, 06 March 2008 04:57 Go to previous messageGo to next message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
What about bug fixes to the data binding plug-ins?

"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:fqius7$rsj$1@build.eclipse.org...
> Hi Angelo,
>
> Just to clarify what I meant. You should only contribute the SWT bugfixes
> to upstream Eclipse-Projects.
>
> Tom
>
> Angelo schrieb:
>> Hi Tom,
>>
>> Ok I will do that as soon as I have time.
>>
>> Are you interested by my work about DOM and UI Databinding?
>>
>> Regards Angelo
>>
>
>
> --
> B e s t S o l u t i o n . at
> ------------------------------------------------------------ --------
> Tom Schindl JFace-Committer
> ------------------------------------------------------------ --------
Re: [DataBinding] DOM & XAML binding and bugs correction [message #326042 is a reply to message #326032] Thu, 06 March 2008 08:53 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I meant those ;-) The bugfixes for SWT-Observables!

Tom

Boris Bokowski schrieb:
> What about bug fixes to the data binding plug-ins?
>
> "Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
> news:fqius7$rsj$1@build.eclipse.org...
>> Hi Angelo,
>>
>> Just to clarify what I meant. You should only contribute the SWT bugfixes
>> to upstream Eclipse-Projects.
>>
>> Tom
>>
>> Angelo schrieb:
>>> Hi Tom,
>>>
>>> Ok I will do that as soon as I have time.
>>>
>>> Are you interested by my work about DOM and UI Databinding?
>>>
>>> Regards Angelo
>>>
>>
>> --
>> B e s t S o l u t i o n . at
>> ------------------------------------------------------------ --------
>> Tom Schindl JFace-Committer
>> ------------------------------------------------------------ --------
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:Shared instance of refresh icon?
Next Topic:Deleting all lines starting with // in all the java files of a java project
Goto Forum:
  


Current Time: Sat Nov 09 05:03:21 GMT 2024

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

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

Back to the top