Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[riena-dev] 319338 - Theming gotcha - use RienaMessageDialog, not MessageDialog

Just wanted to share this tip:

one should use RienaMessageDialog instead of MessageDialog. The
benefit is that the first one is aware of the current theme, the later
one uses the native theme.

I've added the usual static convenience methods: openQuestion(...),
openInformation(...), openXYZ(...) to provide exactly the same API.
Thus one can write:

RienaMessageDialog.openQuestion(getShell(), title, message);
// themed version of: MessageDialog.openQuestion(getShell(), title, message);

Thanks go out to Thorsten for reporting this!

Elias.



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


Back to the top