XWT Triggers and Eclipse Helios [message #548022] |
Tue, 20 July 2010 09:07  |
Eclipse User |
|
|
|
Hello,
actually I would like to develop an SWT application under Eclipse Helios with XWT support, which works fine. But I am not able to get the "UI Trigger" to work.
My .xwt file looks like this:
<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"
x:Class="de.euroimmun.transferprojekt.Test" text="XWT Application">
<Shell.layout>
<RowLayout />
</Shell.layout>
<Button x:Style="CHECK" text="Check Button" x:Name="check1" />
<Button x:Style="CHECK" text="Check Button" x:Name="check2" />
<Shell.triggers>
<Trigger sourceName="check1" property="Selection" value="true">
<Setter targetName="check2" property="Text" value="Selected"/>
</Trigger>
</Shell.triggers>
</Shell>
The trigger doesn't do anything at all. Is it possible to use triggers in a plain SWT application? I would also like to use CSS Styles - all tutorials I found are like e4 plugins. Is this also possible under Eclipse Helios?
Thanks in advance.
Regards
Moritz
|
|
|
|
|
|
|
|
|
Re: XWT Triggers and Eclipse Helios [message #578950 is a reply to message #548022] |
Wed, 21 July 2010 02:36  |
Eclipse User |
|
|
|
Good morning,
after I added a whole bunch of libraries (I don't know which are actually relevant) to my project, the trigger is now working - although it only changes the text once:
If I deselect the button, it changes back to its original text - which is fine. But after that, if I select the button again, the text doesn't change anymore.
And I still need to figure out how to get CSS working ;)
Regards
|
|
|
Re: XWT Triggers and Eclipse Helios [message #579065 is a reply to message #578950] |
Thu, 22 July 2010 02:07  |
Eclipse User |
|
|
|
I have exactly the same problem with my triggers. Have you found any
solution?
It also seems to be a problem by using Button in a Composite (and Text in
Composite; ab):
<FilterButton>
<FilterButton.button.text>Refresh
</FilterButton.button.text>
<FilterButton.button.triggers>
<Trigger property="selection" value="True">
<Setter property="text.text" value="ww" targetName="ab"/>
</Trigger>
</FilterButton.button.triggers>
</FilterButton>
With this configuration it happens nothing.
|
|
|
Re: XWT Triggers and Eclipse Helios [message #579106 is a reply to message #578950] |
Thu, 22 July 2010 10:50  |
Eclipse User |
|
|
|
There are a lot of testcases in the plugins org.eclipse.e4.xwt.tests. Please
pick up one close to your requirement. If it doesn't work as expected,
please fill a bug and CC to me.
Best regards
Yves YANG
"Mo P." <moritzpavlik@gmx.de> wrote in message
news:i264h3$5uq$1@build.eclipse.org...
> Good morning,
>
> after I added a whole bunch of libraries (I don't know which are actually
> relevant) to my project, the trigger is now working - although it only
> changes the text once:
>
> If I deselect the button, it changes back to its original text - which is
> fine. But after that, if I select the button again, the text doesn't
> change anymore.
>
> And I still need to figure out how to get CSS working ;)
>
> Regards
>
>
|
|
|
Re: XWT Triggers and Eclipse Helios [message #579154 is a reply to message #578950] |
Thu, 22 July 2010 10:57  |
Eclipse User |
|
|
|
As for the CSS, you can check out the ocontact demo ported in XWT. The
source is under org.eclipse.e4.xwt/examples
Best regards
Yves YANG
"Mo P." <moritzpavlik@gmx.de> wrote in message
news:i264h3$5uq$1@build.eclipse.org...
> Good morning,
>
> after I added a whole bunch of libraries (I don't know which are actually
> relevant) to my project, the trigger is now working - although it only
> changes the text once:
>
> If I deselect the button, it changes back to its original text - which is
> fine. But after that, if I select the button again, the text doesn't
> change anymore.
>
> And I still need to figure out how to get CSS working ;)
>
> Regards
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05343 seconds