[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [riena-dev] AbstractDialogView and Jface Dialog

Hi Patrick,

it seems to me that there is no easy answer.

Riena's AbstractDialogView extends Dialog. Personally I don't think
it's a good solution to extend every possible dialog and provide a
Riena-flavor of it. What I personally would do (others may disagree)
is to use ridgets in a dialog without creating separate dialog 'view'
and dialog 'controller' classes.

You can always get a ridget for your widget manually by invoking:

I...Ridget ridget = (I...Ridget) SwtRidgetFactory.createRidget(widget);

This is the same technique we use in the snippets.

To know the correct cast look at the mappings between widget and
ridget in SwtControlRidgetMapper.

Hope this helps,
Elias.

On Sat, Jun 5, 2010 at 4:49 PM, Patrick <platinas.hy@xxxxxxxxx> wrote:
> Hi riena-dev,
>
>
>
> What is the best way to create a dialog when I want to create a JFace
> dialog, such as TitleAreaDialog or other complex JFace Dialog, but also
> wants to use the model of Riena’s AbstractDialogView?
>
>
>
> Thanks.
>
>
>
> Regards,
>
>
>
> Patrick He
>
> Email: platinas.hy@xxxxxxxxx
>
>
>
> _______________________________________________
> riena-dev mailing list
> riena-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/riena-dev
>
>



-- 
Elias Volanakis | Technical Lead | http://eclipsesource.com
elias@xxxxxxxxxxxxxxxxx | +1 503 929 5537 | @evolanakis