/** * Factory method for error dialog. * * @param sourceComponent * one of the components insinde the owning window. * @param translationProvider * the translationProvider for labels. * @param locale * the locale used. * @return the created error dialog instance. */ public static ULCErrorDialog createInstance(ULCComponent sourceComponent, ITranslationProvider translationProvider, Locale locale) { ULCErrorDialog errorDialog; errorDialog = new ULCErrorDialog(UlcUtil.getVisibleWindow(sourceComponent)); errorDialog.translationProvider = translationProvider; errorDialog.locale = locale; errorDialog.initGui(); return errorDialog; }
/** * Factory method for error dialog. * * @param sourceComponent * one of the components insinde the owning window. * @param translationProvider * the translationProvider for labels. * @param locale * the locale used. * @return the created error dialog instance. */ public static ULCErrorDialog createInstance(ULCComponent sourceComponent, ITranslationProvider translationProvider, Locale locale) { ULCErrorDialog errorDialog; errorDialog = new ULCErrorDialog(UlcUtil.getVisibleWindow(sourceComponent)); errorDialog.translationProvider = translationProvider; errorDialog.locale = locale; errorDialog.initGui(); return errorDialog; }