On 05/22/2015 05:09 PM, Emmanuel Lécharny wrote:
> Hi Stefan,
> 
> what's the best strategy for error reporting ? More specifically, whn
> you expose a dialog box to get some user's input, we do check some of
> the values. If one of them is invalid, we currently change the font to
> red, but there is no place we say what's wrong, and that would be
> convenient.
> 
> What do you think would be the best approach ?
> - logging ? (that would be a bit useless, IMO, except for tracing the
> inputs)
> - status line ? (do we have one ?)
> - a special zone in each dialog/windo ?
> - a bullet associated to teh input box ?

My favorite is the third option (a special zone in each dialog/window).

You can implement that yourself, we have something similar e.g. in
EditObjectClassAliasesDialog.

Eclipse also has some classes that can be reused:
* org.eclipse.jface.dialogs.InputDialog for simple inputs
* org.eclipse.jface.dialogs.TitleAreaDialog which has a title area where
the error message is displayed

Kind Regards,
Stefan





Reply via email to