Opens the publish dialog without changes check.<p>
189936
protected void openPublish() {

        CmsPublishDialog.showPublishDialog(new HashMap<String, String>(), new CloseHandler<PopupPanel>() {

            /**
             * @see com.google.gwt.event.logical.shared.CloseHandler#onClose(CloseEvent)
             */
            public void onClose(CloseEvent<PopupPanel> closeEvent) {

                setEnabled(true);
            }
        }, new Runnable() {

            public void run() {

                openPublish();
            }

        }, m_editorHandler);
    }
82969
public void open() {
		Futures.transform(lcm, new Subscribe(subscriber));
		publishTask = Futures.transform(lcm, publisher);
	}
79307
private void publish(String buffer){
        CommandResult out = new CommandResult(myType);

        out.setContent(buffer);

        synchronized (lock) {
            publisher.publish(topic, out.toString());
        }
    }
137415
private static void openDialog(String uploadTarget) {

        try {
            A_CmsUploadDialog dialog = GWT.create(CmsUploadDialogImpl.class);
            dialog.setContext(new I_CmsUploadContext() {

                public void onUploadFinished(List<String> uploadedFiles) {

                    Window.Location.reload();
                }
            });
            dialog.setTargetFolder(uploadTarget);
            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));
        }
    }
608843
public void showPublishDialog() {

        CmsPublishDialog.showPublishDialog(new HashMap<String, String>(), new CloseHandler<PopupPanel>() {

            /**
             * @see com.google.gwt.event.logical.shared.CloseHandler#onClose(com.google.gwt.event.logical.shared.CloseEvent)
             */
            public void onClose(CloseEvent<PopupPanel> event) {

                deactivateCurrentButton();

            }
        }, new Runnable() {

            public void run() {

                showPublishDialog();
            }

        }, null);
    }
171377
@UiHandler("m_projectSelector")
    protected void onProjectChange(ValueChangeEvent<String> event) {

        if (m_initialized) {
            m_publishDialog.setProjectId(new CmsUUID(event.getValue()));
            m_publishDialog.setProjectChanged();
            m_publishDialog.updateResourceList();
        }
    }
1133698
protected void submit(Window window, CmsResourceTypeApp app) {

        if (isValid()) {
            createResourceType();
            try {
                OpenCms.getModuleManager().updateModule(m_cms, m_module);
                OpenCms.getResourceManager().initialize(m_cms);
                OpenCms.getWorkplaceManager().addExplorerTypeSettings(m_module);
                // re-initialize the workplace
                OpenCms.getWorkplaceManager().initialize(m_cms);
            } catch (CmsException e) {
                LOG.error("Unable to save resource type", e);
            }
            window.close();
            app.reload();
        }
    }
878712
public void openSettingsDailog() {

        CmsGlobalForm form = new CmsGlobalForm(this);
        openDialog(form, CmsVaadinUtils.getMessageText(Messages.GUI_SITE_GLOBAL_CONFIGURATION_0));
    }
1175514
protected void openGalleryDialog() {

        String title = org.opencms.gwt.client.Messages.get().key(
            org.opencms.gwt.client.Messages.GUI_GALLERY_SELECT_DIALOG_TITLE_0);
        final CmsFramePopup popup = new CmsFramePopup(title, buildGalleryUrl());
        popup.setCloseHandler(new Runnable() {

            public void run() {

                m_textbox.setGhostMode(false);

            }

        });
        popup.setId(m_id);
        popup.getFrame().setSize("700px", "490px");
        popup.center();

        CmsPushButton button = new CmsPushButton(I_CmsButton.DELETE_SMALL);
        button.setButtonStyle(ButtonStyle.FONT_ICON, null);
        button.setSize(Size.small);
        Style style = button.getElement().getStyle();
        style.setRight(4, Unit.PX);
        style.setTop(0, Unit.PX);
        style.setPosition(Position.ABSOLUTE);
        style.setCursor(Cursor.POINTER);
        button.addClickHandler(new ClickHandler() {

            /**
             * @see com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event.dom.client.ClickEvent)
             */
            public void onClick(ClickEvent event) {

                popup.hide();
            }
        });

        popup.insertFront(button);
    }
856148
protected void fireStart(CmsPublishJobEnqueued publishJob) {

        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_PUBLISH_JOB_START_0));
        }
        for (Iterator<I_CmsPublishEventListener> it = iterator(); it.hasNext();) {
            I_CmsPublishEventListener listener = it.next();
            try {
                listener.onStart(publishJob);
            } catch (Throwable t) {
                // catch every thing including runtime exceptions
                if (LOG.isErrorEnabled()) {
                    LOG.error(
                        Messages.get().getBundle().key(
                            Messages.ERR_PUBLISH_JOB_START_ERROR_1,
                            listener.getClass().getName()),
                        t);
                }
                if (publishJob.m_publishJob.getPublishReport() != null) {
                    publishJob.m_publishJob.getPublishReport().println(t);
                }
            }
        }
        // popup the start message
        boolean busyStart = ((System.currentTimeMillis() - publishJob.getEnqueueTime()) > 2000);
        boolean bigJob = ((publishJob.getPublishList().size() > 25)
            || (OpenCms.getStaticExportManager().getHandler() instanceof CmsAfterPublishStaticExportHandler));
        if (busyStart || bigJob) {
            String msgText = Messages.get().getBundle(publishJob.getLocale()).key(
                Messages.GUI_PUBLISH_JOB_STARTED_1,
                new Long(publishJob.getEnqueueTime()));
            m_publishEngine.sendMessage(publishJob.getUserId(), msgText, false);
        }
    }
1043579
async def open(self):
        """"""
        self.store.register(self)
        while not self.finished:
            message = await self.messages.get()
            await self.publish(message)
147995
public static void showPublishDialog(Runnable refreshAction) {

        showPublishDialog(new HashMap<String, String>(), null, refreshAction, null);
    }
709142
public synchronized void reload(boolean isStartup) {

        if ((OpenCms.getRunLevel() > OpenCms.RUNLEVEL_1_CORE_OBJECT)
            && OpenCms.getResourceManager().hasResourceType(TYPE_XML_BUNDLE)) {
            List<CmsResource> xmlBundles = Lists.newArrayList();
            List<CmsResource> propertyBundles = Lists.newArrayList();
            try {
                I_CmsResourceType xmlType = OpenCms.getResourceManager().getResourceType(TYPE_XML_BUNDLE);
                xmlBundles = m_cms.readResources("/", CmsResourceFilter.ALL.addRequireType(xmlType), true);
            } catch (Exception e) {
                logError(e, isStartup);
            }
            try {
                I_CmsResourceType propType = OpenCms.getResourceManager().getResourceType(TYPE_PROPERTIES_BUNDLE);
                propertyBundles = m_cms.readResources("/", CmsResourceFilter.ALL.addRequireType(propType), true);
            } catch (Exception e) {
                logError(e, isStartup);
            }
            try {

                synchronized (CmsResourceBundleLoader.class) {
                    CmsResourceBundleLoader.flushBundleCache();
                    for (String baseName : m_bundleBaseNames) {
                        CmsResourceBundleLoader.flushPermanentCache(baseName);
                    }
                    m_bundleBaseNames.clear();
                    for (CmsResource xmlBundle : xmlBundles) {
                        addXmlBundle(xmlBundle);
                    }
                    for (CmsResource propertyBundle : propertyBundles) {
                        addPropertyBundle(propertyBundle);
                    }
                    if (OpenCms.getWorkplaceManager() != null) {
                        OpenCms.getWorkplaceManager().flushMessageCache();
                    }
                }
            } catch (Exception e) {
                logError(e, isStartup);
            }
        }
    }
741279
private void init(final Runnable closeRunnable) {

        CmsVaadinUtils.readAndLocalizeDesign(this, CmsVaadinUtils.getWpMessagesForCurrentLocale(), null);

        //Fix the width. Dialog can only be used by calling static method which creates a wide window.
        CmsUserInfo info = new CmsUserInfo(m_user.getId(), "640px");
        CmsSessionInfo session = m_session == null ? getSessionForUser(m_user) : m_session;
        Iterator<String> iterator = getFurtherInfoLines(session).iterator();

        while (iterator.hasNext()) {
            info.addDetailLine(iterator.next());
        }
        m_layout.addComponent(info);

        if (session != null) {
            m_okButton.addClickListener(new ClickListener() {

                private static final long serialVersionUID = 3096577957489665752L;

                public void buttonClick(ClickEvent event) {

                    try {
                        A_CmsUI.get().changeProject(m_cms.readProject(session.getProject()));
                        A_CmsUI.get().changeSite(session.getSiteRoot());

                        String path = OpenCms.getSessionManager().switchUserFromSession(
                            m_cms,
                            CmsVaadinUtils.getRequest(),
                            m_cms.readUser(session.getUserId()),
                            session);

                        if (path == null) {
                            path = CmsVaadinUtils.getWorkplaceLink()
                                + "?_lrid="
                                + (new Date()).getTime()
                                + "#!"
                                + CmsFileExplorerConfiguration.APP_ID
                                + "/"
                                + session.getProject().getStringValue()
                                + "!!"
                                + session.getSiteRoot()
                                + "!!!!";
                        }
                        A_CmsUI.get().getPage().setLocation(path);
                        if (path.contains("workplace#")) {
                            A_CmsUI.get().getPage().reload();
                        }
                    } catch (CmsException e) {
                        //
                    }
                    closeRunnable.run();
                }

            });
        }
        setHideSwitchButton(session);

        m_cancelButton.addClickListener(new ClickListener() {

            private static final long serialVersionUID = -1033076596404978498L;

            public void buttonClick(ClickEvent event) {

                closeRunnable.run();

            }
        });
    }
589721
protected void openPublish() {

        HashMap<String, String> params = Maps.newHashMap();
        params.put(CmsPublishOptions.PARAM_CONTAINERPAGE, "" + CmsCoreProvider.get().getStructureId());
        params.put(CmsPublishOptions.PARAM_START_WITH_CURRENT_PAGE, "");
        params.put(CmsPublishOptions.PARAM_DETAIL, "" + m_controller.getData().getDetailId());
        CmsPublishDialog.showPublishDialog(params, new CloseHandler<PopupPanel>() {

            /**
             * @see com.google.gwt.event.logical.shared.CloseHandler#onClose(com.google.gwt.event.logical.shared.CloseEvent)
             */
            public void onClose(CloseEvent<PopupPanel> event) {

                deactivateCurrentButton();
                activateSelection();

            }
        }, new Runnable() {

            public void run() {

                openPublish();
            }

        }, m_controller.getContentEditorHandler());
    }
233133
protected void defaultNew() {

        CmsUUID referenceId = m_editableData.getStructureId();
        CmsCreateModeSelectionDialog.showDialog(referenceId, new AsyncCallback<String>() {

            public void onFailure(Throwable caught) {
                // is never called
            }

            public void onSuccess(String result) {

                openEditDialog(true, result, null);
                removeHighlighting();
            }
        });
    }
1122639
protected void checkPublishQueue() {

        // check the publish manager if the current thread is still active
        try {
            CmsPublishManager publishManager = OpenCms.getPublishManager();
            if (publishManager == null) {
                // this can happen during shutdown
                return;
            }
            // get the current publish job
            CmsPublishJobRunning publishJob = publishManager.getCurrentPublishJob();
            if (publishJob == null) {
                // try to start next job
                publishManager.checkCurrentPublishJobThread();
                return;
            }
            // get the thread id of the current publish job
            CmsUUID uid = publishJob.getThreadUUID();
            if ((uid == null) || (uid.isNullUUID())) {
                return;
            }
            // find the thread
            A_CmsReportThread thread = m_threads.get(uid);
            if (thread == null) {
                return;
            }
            // check if the report still has output and so is active
            if ((System.currentTimeMillis() - thread.getLastEntryTime()) > (UPDATE_MINUTES_INTERVAL
                * ONE_MINUTE_IN_MILLIS)) {
                // remove it
                m_threads.remove(thread);
                // abandon thread
                publishManager.abandonThread();
            }
        } catch (Throwable t) {
            LOG.error(Messages.get().getBundle().key(Messages.LOG_THREADSTORE_CHECK_PUBLISH_THREAD_ERROR_0), t);
        }
    }