public static void openDialog(
        String title,
        String hookUri,
        List<String> uploadedFiles,
        final CloseHandler<PopupPanel> closeHandler) {

        if (hookUri.startsWith("#")) {
            List<CmsUUID> resourceIds = new ArrayList<CmsUUID>();
            if (uploadedFiles != null) {
                for (String id : uploadedFiles) {
                    resourceIds.add(new CmsUUID(id));
                }

            }
            CmsEmbeddedDialogHandler handler = new CmsEmbeddedDialogHandler(new I_CmsActionHandler() {

                public void leavePage(String targetUri) {

                    // TODO Auto-generated method stub

                }

                public void onSiteOrProjectChange(String sitePath, String serverLink) {

                    // TODO Auto-generated method stub

                }

                public void refreshResource(CmsUUID structureId) {

                    closeHandler.onClose(null);
                }
            });
            String dialogId = hookUri.substring(1);
            handler.openDialog(dialogId, CmsGwtConstants.CONTEXT_TYPE_FILE_TABLE, resourceIds);

        } else {
            Map<String, String> parameters = new HashMap<String, String>();
            parameters.put(I_CmsUploadConstants.PARAM_RESOURCES, Joiner.on(",").join(uploadedFiles));
            CmsPopup popup = CmsFrameDialog.showFrameDialog(
                title,
                CmsCoreProvider.get().link(hookUri),
                parameters,
                closeHandler);
            popup.setHeight(DIALOG_HEIGHT);
            popup.setWidth(CmsPopup.DEFAULT_WIDTH);
            popup.center();
        }
    }
public static void openDialog ( String title , String hookUri , List < String > uploadedFiles , final CloseHandler < PopupPanel > closeHandler ) { if ( hookUri . startsWith ( "#" ) ) { List < CmsUUID > resourceIds = new ArrayList < CmsUUID > ( ) ; if ( uploadedFiles != null ) { for ( String id : uploadedFiles ) { resourceIds . add ( new CmsUUID ( id ) ) ; } } CmsEmbeddedDialogHandler handler = new CmsEmbeddedDialogHandler ( new I_CmsActionHandler ( ) { public void leavePage ( String targetUri ) { } public void onSiteOrProjectChange ( String sitePath , String serverLink ) { } public void refreshResource ( CmsUUID structureId ) { closeHandler . onClose ( null ) ; } } ) ; String dialogId = hookUri . substring ( 1 ) ; handler . openDialog ( dialogId , CmsGwtConstants . CONTEXT_TYPE_FILE_TABLE , resourceIds ) ; } else { Map < String , String > parameters = new HashMap < String , String > ( ) ; parameters . put ( I_CmsUploadConstants . PARAM_RESOURCES , Joiner . on ( "," ) . join ( uploadedFiles ) ) ; CmsPopup popup = CmsFrameDialog . showFrameDialog ( title , CmsCoreProvider . get ( ) . link ( hookUri ) , parameters , closeHandler ) ; popup . setHeight ( DIALOG_HEIGHT ) ; popup . setWidth ( CmsPopup . DEFAULT_WIDTH ) ; popup . center ( ) ; } }
Opens a new upload property dialog.<p>

@param title the title for the dialog popup
@param hookUri the URI of the upload hook page
@param uploadedFiles the uploaded files
@param closeHandler the dialog close handler