Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Ridgets - SWT vs JFace
Ridgets - SWT vs JFace [message #9091] Mon, 01 September 2008 20:39 Go to next message
Eclipse UserFriend
Originally posted by: ekkehard.gentz-software.de

am I right, that Riena Ridgets only work 'around' SWT widgets -
not with JFace viewers ?

thx for info

ekke
Re: Ridgets - SWT vs JFace [message #9111 is a reply to message #9091] Tue, 02 September 2008 07:11 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
yes thats right.....Ridgets are wrapping or adapting SWT widgets. For some widgets they offer simular functionality like
JFace viewers. We dont accomplish that by reinventing the wheel but by using JFace viewers internally.

So for example the TreeRidget uses internally the TreeViewer. So in your view you only defines the Tree (widget) and
then in your controller you use the TreeRidget to bind your model and stuff like that. There is (of course) a testcase
"TreeRidgetTest" that shows you how that works.

Ridgets are nice here because its a uniform layer for all widgets and of course they offer additional functionality that
is not found in widgets or viewers (like markersupport).

christian


ekke schrieb:
> am I right, that Riena Ridgets only work 'around' SWT widgets -
> not with JFace viewers ?
>
> thx for info
>
> ekke
Re: Ridgets - SWT vs JFace [message #9152 is a reply to message #9111] Tue, 02 September 2008 07:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ekkehard.gentz-software.de

Christian Campo schrieb:
> yes thats right.....Ridgets are wrapping or adapting SWT widgets. For
> some widgets they offer simular functionality like JFace viewers. We
> dont accomplish that by reinventing the wheel but by using JFace viewers
> internally.

ok - I understand - this makes sense

>
> So for example the TreeRidget uses internally the TreeViewer. So in your
> view you only defines the Tree (widget) and then in your controller you
> use the TreeRidget to bind your model and stuff like that.

ok - so I'll only use SWT widgets in my Views designed by SWTdesigner


>There is (of
> course) a testcase "TreeRidgetTest" that shows you how that works.
>
I've seen this - and also noticed that the RCPMail sample uses the
SWTWidget Tree instead of the TreeViewer.
but I only wanted to be sure, that I understand it right - thats the
reason for my question

> Ridgets are nice here because its a uniform layer for all widgets and of
> course they offer additional functionality that is not found in widgets
> or viewers (like markersupport).
>
these additional cool features are the main reason I want to use it ;-)

but at the moment I have to figure out my design - workflow how I can
use SWTDesigner
and then make the changes for use of Riena - controller and ridgets.

If I don't find a practicable way to do this then I have to go without
Ridgets,
because the use of SWTDesigner is mandatory for my project

btw: do you have also tests for the use of Drag'n'Drop or is this out of
Riena focus
and all works as expected from a normal application ?

thx
ekke
Re: Ridgets - SWT vs JFace [message #9192 is a reply to message #9152] Tue, 02 September 2008 10:44 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Hi Ekke,

drag and drop is not outside the focus of Riena. We havnt just implemented it yet. However it really depends on where
you wonna drag from to where to. I remember about a discussion where you wanted to drag from the navigation tree to the
view. I guess we would need a good description of what kind of drag and drop (the term itself is not enough) and then we
have to see how and when that is implemented. (maybe you like to start a role as code contributor here :-) )

As for the SWT Designer discussion, if that is a pressing issue look at the Riena code snippet that already exists
http://wiki.eclipse.org/Riena_Snippets and then checkout the SWT Designer version that you probably own how that kind of
code can be generated. I think you can modify or enhance the generator to do this.

And then maybe write a little blog how you are doing. I will look at this matter and I will look into this soon, just
not sure how soon "soon" is.

BTW if that controller thing or better the seperation between view and controller is such a big issue, you see in the
Riena code snippets that you can do without it. There you have widgets and ridgets in the same class and method.

christian

ekke schrieb:
> Christian Campo schrieb:
>> yes thats right.....Ridgets are wrapping or adapting SWT widgets. For
>> some widgets they offer simular functionality like JFace viewers. We
>> dont accomplish that by reinventing the wheel but by using JFace
>> viewers internally.
>
> ok - I understand - this makes sense
>
>>
>> So for example the TreeRidget uses internally the TreeViewer. So in
>> your view you only defines the Tree (widget) and then in your
>> controller you use the TreeRidget to bind your model and stuff like that.
>
> ok - so I'll only use SWT widgets in my Views designed by SWTdesigner
>
>
>> There is (of course) a testcase "TreeRidgetTest" that shows you how
>> that works.
>>
> I've seen this - and also noticed that the RCPMail sample uses the
> SWTWidget Tree instead of the TreeViewer.
> but I only wanted to be sure, that I understand it right - thats the
> reason for my question
>
>> Ridgets are nice here because its a uniform layer for all widgets and
>> of course they offer additional functionality that is not found in
>> widgets or viewers (like markersupport).
>>
> these additional cool features are the main reason I want to use it ;-)
>
> but at the moment I have to figure out my design - workflow how I can
> use SWTDesigner
> and then make the changes for use of Riena - controller and ridgets.
>
> If I don't find a practicable way to do this then I have to go without
> Ridgets,
> because the use of SWTDesigner is mandatory for my project
>
> btw: do you have also tests for the use of Drag'n'Drop or is this out of
> Riena focus
> and all works as expected from a normal application ?
>
> thx
> ekke
Re: Ridgets - SWT vs JFace [message #574053 is a reply to message #9091] Tue, 02 September 2008 07:11 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
yes thats right.....Ridgets are wrapping or adapting SWT widgets. For some widgets they offer simular functionality like
JFace viewers. We dont accomplish that by reinventing the wheel but by using JFace viewers internally.

So for example the TreeRidget uses internally the TreeViewer. So in your view you only defines the Tree (widget) and
then in your controller you use the TreeRidget to bind your model and stuff like that. There is (of course) a testcase
"TreeRidgetTest" that shows you how that works.

Ridgets are nice here because its a uniform layer for all widgets and of course they offer additional functionality that
is not found in widgets or viewers (like markersupport).

christian


ekke schrieb:
> am I right, that Riena Ridgets only work 'around' SWT widgets -
> not with JFace viewers ?
>
> thx for info
>
> ekke
Re: Ridgets - SWT vs JFace [message #574118 is a reply to message #9111] Tue, 02 September 2008 07:28 Go to previous message
Eclipse UserFriend
Originally posted by: ekkehard.gentz-software.de

Christian Campo schrieb:
> yes thats right.....Ridgets are wrapping or adapting SWT widgets. For
> some widgets they offer simular functionality like JFace viewers. We
> dont accomplish that by reinventing the wheel but by using JFace viewers
> internally.

ok - I understand - this makes sense

>
> So for example the TreeRidget uses internally the TreeViewer. So in your
> view you only defines the Tree (widget) and then in your controller you
> use the TreeRidget to bind your model and stuff like that.

ok - so I'll only use SWT widgets in my Views designed by SWTdesigner


>There is (of
> course) a testcase "TreeRidgetTest" that shows you how that works.
>
I've seen this - and also noticed that the RCPMail sample uses the
SWTWidget Tree instead of the TreeViewer.
but I only wanted to be sure, that I understand it right - thats the
reason for my question

> Ridgets are nice here because its a uniform layer for all widgets and of
> course they offer additional functionality that is not found in widgets
> or viewers (like markersupport).
>
these additional cool features are the main reason I want to use it ;-)

but at the moment I have to figure out my design - workflow how I can
use SWTDesigner
and then make the changes for use of Riena - controller and ridgets.

If I don't find a practicable way to do this then I have to go without
Ridgets,
because the use of SWTDesigner is mandatory for my project

btw: do you have also tests for the use of Drag'n'Drop or is this out of
Riena focus
and all works as expected from a normal application ?

thx
ekke
Re: Ridgets - SWT vs JFace [message #574156 is a reply to message #9152] Tue, 02 September 2008 10:44 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Hi Ekke,

drag and drop is not outside the focus of Riena. We havnt just implemented it yet. However it really depends on where
you wonna drag from to where to. I remember about a discussion where you wanted to drag from the navigation tree to the
view. I guess we would need a good description of what kind of drag and drop (the term itself is not enough) and then we
have to see how and when that is implemented. (maybe you like to start a role as code contributor here :-) )

As for the SWT Designer discussion, if that is a pressing issue look at the Riena code snippet that already exists
http://wiki.eclipse.org/Riena_Snippets and then checkout the SWT Designer version that you probably own how that kind of
code can be generated. I think you can modify or enhance the generator to do this.

And then maybe write a little blog how you are doing. I will look at this matter and I will look into this soon, just
not sure how soon "soon" is.

BTW if that controller thing or better the seperation between view and controller is such a big issue, you see in the
Riena code snippets that you can do without it. There you have widgets and ridgets in the same class and method.

christian

ekke schrieb:
> Christian Campo schrieb:
>> yes thats right.....Ridgets are wrapping or adapting SWT widgets. For
>> some widgets they offer simular functionality like JFace viewers. We
>> dont accomplish that by reinventing the wheel but by using JFace
>> viewers internally.
>
> ok - I understand - this makes sense
>
>>
>> So for example the TreeRidget uses internally the TreeViewer. So in
>> your view you only defines the Tree (widget) and then in your
>> controller you use the TreeRidget to bind your model and stuff like that.
>
> ok - so I'll only use SWT widgets in my Views designed by SWTdesigner
>
>
>> There is (of course) a testcase "TreeRidgetTest" that shows you how
>> that works.
>>
> I've seen this - and also noticed that the RCPMail sample uses the
> SWTWidget Tree instead of the TreeViewer.
> but I only wanted to be sure, that I understand it right - thats the
> reason for my question
>
>> Ridgets are nice here because its a uniform layer for all widgets and
>> of course they offer additional functionality that is not found in
>> widgets or viewers (like markersupport).
>>
> these additional cool features are the main reason I want to use it ;-)
>
> but at the moment I have to figure out my design - workflow how I can
> use SWTDesigner
> and then make the changes for use of Riena - controller and ridgets.
>
> If I don't find a practicable way to do this then I have to go without
> Ridgets,
> because the use of SWTDesigner is mandatory for my project
>
> btw: do you have also tests for the use of Drag'n'Drop or is this out of
> Riena focus
> and all works as expected from a normal application ?
>
> thx
> ekke
Previous Topic:3-tiers solution with riena
Next Topic:Riena Software Update
Goto Forum:
  


Current Time: Wed Nov 26 16:45:42 GMT 2014

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

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