public static void openEditConfirmDialog(final CmsNewResourceInfo resourceInfo) {

        I_CmsConfirmDialogHandler handler = new I_CmsConfirmDialogHandler() {

            public void onClose() {

                // noop
            }

            public void onOk() {

                String resourcePath = resourceInfo.getVfsPath();
                String siteRoot = CmsCoreProvider.get().getSiteRoot();
                if (resourcePath.startsWith(siteRoot)) {
                    resourcePath = resourcePath.substring(siteRoot.length());
                    // prepend slash if necessary
                    if (!resourcePath.startsWith("/")) {
                        resourcePath = "/" + resourcePath;
                    }
                }
                CmsSitemapController controller = CmsSitemapView.getInstance().getController();
                controller.leaveEditor(resourcePath);
            }
        };
        String dialogTitle = Messages.get().key(Messages.GUI_EDIT_MODELPAGE_CONFIRM_TITLE_0);
        String dialogContent = Messages.get().key(Messages.GUI_EDIT_MODELPAGE_CONFIRM_CONTENT_0);
        String buttonText = Messages.get().key(Messages.GUI_EDIT_MODELPAGE_OK_0);

        CmsConfirmDialog dialog = new CmsConfirmDialog(dialogTitle, dialogContent);
        dialog.getOkButton().setText(buttonText);
        dialog.setHandler(handler);
        dialog.center();
    }
public static void openEditConfirmDialog ( final CmsNewResourceInfo resourceInfo ) { I_CmsConfirmDialogHandler handler = new I_CmsConfirmDialogHandler ( ) { public void onClose ( ) { } public void onOk ( ) { String resourcePath = resourceInfo . getVfsPath ( ) ; String siteRoot = CmsCoreProvider . get ( ) . getSiteRoot ( ) ; if ( resourcePath . startsWith ( siteRoot ) ) { resourcePath = resourcePath . substring ( siteRoot . length ( ) ) ; if ( ! resourcePath . startsWith ( "/" ) ) { resourcePath = "/" + resourcePath ; } } CmsSitemapController controller = CmsSitemapView . getInstance ( ) . getController ( ) ; controller . leaveEditor ( resourcePath ) ; } } ; String dialogTitle = Messages . get ( ) . key ( Messages . GUI_EDIT_MODELPAGE_CONFIRM_TITLE_0 ) ; String dialogContent = Messages . get ( ) . key ( Messages . GUI_EDIT_MODELPAGE_CONFIRM_CONTENT_0 ) ; String buttonText = Messages . get ( ) . key ( Messages . GUI_EDIT_MODELPAGE_OK_0 ) ; CmsConfirmDialog dialog = new CmsConfirmDialog ( dialogTitle , dialogContent ) ; dialog . getOkButton ( ) . setText ( buttonText ) ; dialog . setHandler ( handler ) ; dialog . center ( ) ; }
Opens the confirmation dialog for editing a model page.<p>

@param resourceInfo the resource information bean which belongs to the model page to edit