@Override
    public void onModuleLoad() {

        super.onModuleLoad();
        if ((getDialogMode() != null) && getDialogMode().equals("button")) {
            exportOpenUploadDialog();
        } else {
            try {
                A_CmsUploadDialog dialog = GWT.create(CmsUploadDialogImpl.class);
                I_CmsUploadContext context = new I_CmsUploadContext() {

                    public void onUploadFinished(List<String> uploadedFiles) {

                        String closeLink = getCloseLink() + "?resource=";
                        Window.Location.assign(CmsCoreProvider.get().link(closeLink));
                    }
                };
                dialog.setContext(context);
                dialog.setTargetFolder(getTargetFolder());
                dialog.loadAndShow();
            } catch (Exception e) {
                CmsErrorDialog.handleException(
                    new Exception(
                        "Deserialization of dialog data failed. This may be caused by expired java-script resources, please clear your browser cache and try again.",
                        e));
            }
        }
    }
@ Override public void onModuleLoad ( ) { super . onModuleLoad ( ) ; if ( ( getDialogMode ( ) != null ) && getDialogMode ( ) . equals ( "button" ) ) { exportOpenUploadDialog ( ) ; } else { try { A_CmsUploadDialog dialog = GWT . create ( CmsUploadDialogImpl . class ) ; I_CmsUploadContext context = new I_CmsUploadContext ( ) { public void onUploadFinished ( List < String > uploadedFiles ) { String closeLink = getCloseLink ( ) + "?resource=" ; Window . Location . assign ( CmsCoreProvider . get ( ) . link ( closeLink ) ) ; } } ; dialog . setContext ( context ) ; dialog . setTargetFolder ( getTargetFolder ( ) ) ; dialog . loadAndShow ( ) ; } catch ( Exception e ) { CmsErrorDialog . handleException ( new Exception ( "Deserialization of dialog data failed. This may be caused by expired java-script resources, please clear your browser cache and try again." , e ) ) ; } } }
@see org.opencms.gwt.client.A_CmsEntryPoint#onModuleLoad()