public static void showPreviewForResource(final CmsUUID structureId) {

        CmsRpcAction<CmsPreviewInfo> previewAction = new CmsRpcAction<CmsPreviewInfo>() {

            @Override
            public void execute() {

                CmsCoreProvider.getVfsService().getPreviewInfo(structureId, CmsCoreProvider.get().getLocale(), this);
                start(0, true);
            }

            @Override
            protected void onResponse(CmsPreviewInfo result) {

                stop(false);
                showPreviewForResource(result);
            }
        };
        previewAction.execute();
    }
public static void showPreviewForResource ( final CmsUUID structureId ) { CmsRpcAction < CmsPreviewInfo > previewAction = new CmsRpcAction < CmsPreviewInfo > ( ) { @ Override public void execute ( ) { CmsCoreProvider . getVfsService ( ) . getPreviewInfo ( structureId , CmsCoreProvider . get ( ) . getLocale ( ) , this ) ; start ( 0 , true ) ; } @ Override protected void onResponse ( CmsPreviewInfo result ) { stop ( false ) ; showPreviewForResource ( result ) ; } } ; previewAction . execute ( ) ; }
Shows the preview for the given resource.<p>

@param structureId the resource structure id