Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-incubator-e4-dev] CSS DOM Binding

Hi Christopher.

>Angelo, I quickly glanced over your technique of CSS/SWT. I noticed you used the method of adding a Display filter on SWT.Show >events to do the styling.
Yes You can use SWT Filter  to apply style CSS but CSS engien has 2 strategies to apply styles :

1. SWT Filter : CSS engine can apply style by using SWT Filter
2. Iterate on child SWT components. It can apply CSS style if you call applyStyles with the SWT root (ex : Shell) and call it with true parameter. The last parametre s(true) tell to the CSS engine that it must iteracet to the child component and apply it CSS styles.

>Is there a better way to do this?
It's the two way that I have founded. SWT Filter looks like AWTEventListener for Swing.


>Do we need something from SWT to give a better notification of lifecycle than what we have now? Maybe the venerable SWT team can >answer this question.
I think yhe better solution is to have the capability to detect when SWT widget is added to the UI (like Swing).  But I believe it's not possible.

>Maybe someone can get the various methods of styling out there currently so we can learn about them:
>http://wiki.eclipse.org/E4/DeclarativeUI

>What do you think Angelo? Want to put your technique on the wiki so people learn about it?
Yes I will try to write something.

Olivier,

Please to meet you in this forum:)

TK-UI looks like Wazaabi (I have read long time the Wazaabi source, thank's Olivier),
but I have tried to improve it to :

1. manage any renderer (Swing, SWT)
2. manage better the binding between UI and DOM with JFace Databinding. So you can manage complex binding and bind JavaBean, Rhino Scriptable Object...
3. manage CSS styles.
4. add Script capability.

If you want I write some technical tomic about TK-UI, don't hestaite to contact me.

Regards Angelo

2008/5/28 Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>:
Hi Olivier,

Sounds like very interesting stuff. Is there a public repo? This would nicely fit into my prototype because I'm using EMF too there.

Last night I couldn't fall to asleep because I thought about Kevin's notice that an E4-RCP application should not look like Eclipse or any other RCP (Kevin you are the one to blame that I walk around like zombie today :-).

Maybe replacing the current rendering components with something like this: http://www.hexapixel.com/ribbon/ or because my prototype is radical JavaFX, Swing, Qt-Jambi or simply Nebula-Widgets like PShelf.

My current prototype has a seperate Model but the Control/View is wired in one class and I plan to split this and using a ServiceLocator to inject the View into the controller.

Tom

olivier@xxxxxxxxxxxx schrieb:

Jochen,

The last open source project I made was under LGPL. I don't have any
concern to place this one under EPL (but I never spent time to
investigate about their differences :-( )

About GEF :

I plan to use GEF on both sides, at the moment, I am just able to create
a viewer in a composite given this composite and an EMF model. (like an
outliner of the emf editor)
EMF model is displayed in the viewer using EditParts, there is 2
different POCs, one based on 'pure' draw2d figures and one based on SWT
controls.
I postponed the 'pure' draw2d engine because I need to redraw most of
the widgets from scratch. I will keep it and use it for example for
graphs (Zest) or more complex and graphical elements.


At the moment, are implemented :

* RowLayout,
* FillLayout
* RowData
* Composite
* Button
* Text

No more, I don't need more for my tests -;)

The user is able to :

Adding/Removing/Modifying/Reparenting  any element of the model
(Control, Layout, LayoutData...). using EMF editor or directly in the
EMF model using API.
Changes are directly refreshed to the displayed viewer.

Change states of displayed widgets like selecting button, filling
text... (and the changes are reflected into the the model, including
Adapter notification if existing)

I currently work on :

Using EMF Databing (by describing binding context using EMF, second model..)
Creating editPolicies allowing to edit (like in a visual editor) the
viewer.
In theory, it should be possible to change editpolicies at runtime, then
visualy editing a running viewer (toggle from runtime to Visual
Edition)... but I did not start to work on it, then I am not sure at all !!!

Olivier

Jochen Krause a écrit :
Olivier, that sounds great. Please add it to the wiki. Just fyi - your project needs to license the code under the EPL to be able to contribute to e4.

And one more question: Are you using GEF for the tooling or for the runtime side?

Jochen

-----Original Message-----
From: eclipse-incubator-e4-dev-bounces@xxxxxxxxxxx [mailto:eclipse-incubator-e4-dev-bounces@xxxxxxxxxxx] On Behalf Of olivier@xxxxxxxxxxxx
Sent: Wednesday, May 28, 2008 10:17 AM
To: E4 developer list
Subject: Re: [eclipse-incubator-e4-dev] CSS DOM Binding

Hi all,


I started, few monthes ago, a new open source project using EMF & GEF as a base for a Declarative UI engine.
Do you think I should add things to this wiki ?
My project is at the moment a POC (and probably less than that), I try to validate every declarative UI requirements before to start to publish it ;-)

Olivier

Christopher Aniszczyk a écrit :
 
Angelo, I quickly glanced over your technique of CSS/SWT. I noticed you used the method of adding a Display filter on SWT.Show events to do the styling. Is there a better way to do this? Do we need something from SWT to give a better notification of lifecycle than what we have now? Maybe the venerable SWT team can answer this question.

Maybe someone can get the various methods of styling out there currently so we can learn about them:
http://wiki.eclipse.org/E4/DeclarativeUI

What do you think Angelo? Want to put your technique on the wiki so people learn about it?

On Tue, May 27, 2008 at 7:11 PM, Angelo zerr <angelo.zerr@xxxxxxxxx <mailto:angelo.zerr@xxxxxxxxx>> wrote:

   Hi sorry

   for my new mail about TK-UI
   <http://tk-ui.sourceforge.net/index.html>, but I have started
   TK-UI features <http://tk-ui.sourceforge.net/features.html>
   documentation
   where I speak about DOM, CSS and Databinding into TK-UI.
   Is it possible to add the TK-UI features
   <http://tk-ui.sourceforge.net/features.html> link to the
   E4/Modeling <http://wiki.eclipse.org/E4/Modeling>?

   Don't hesitate to contact me if you have questions.

   Regards Angelo

   _______________________________________________
   eclipse-incubator-e4-dev mailing list
   eclipse-incubator-e4-dev@xxxxxxxxxxx
   <mailto:eclipse-incubator-e4-dev@xxxxxxxxxxx>
   https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev




--
Cheers,

~ Chris Aniszczyk
----------------------------------------------------------------------
--

_______________________________________________
eclipse-incubator-e4-dev mailing list
eclipse-incubator-e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev
     

_______________________________________________
eclipse-incubator-e4-dev mailing list
eclipse-incubator-e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev

 

_______________________________________________
eclipse-incubator-e4-dev mailing list
eclipse-incubator-e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev


--
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                               leiter softwareentwicklung/CSO
------------------------------------------------------------------------
eduard-bodem-gasse 8/3    A-6020 innsbruck      phone    ++43 512 935834

_______________________________________________
eclipse-incubator-e4-dev mailing list
eclipse-incubator-e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev


Back to the top