Will be called when the user presses the OK button.

@see IPreferencePage#performOk()
508961
@Override
    public boolean performOk() {
        reportConfigurationTab.performOk();
        boolean analysisSettingsChanged = false;
        boolean reporterSettingsChanged = false;
        boolean needRedisplayMarkers = false;
        if (workspaceSettingsTab != null) {
            workspaceSettingsTab.performOK();
        }

        boolean pluginsChanged = false;
        // Have user preferences for project changed?
        // If so, write them to the user preferences file & re-run builder
        if (!currentUserPreferences.equals(origUserPreferences)) {
            pluginsChanged = !currentUserPreferences.getCustomPlugins().equals(origUserPreferences.getCustomPlugins());
            // save only if we in the workspace page OR in the project page with
            // enabled
            // project settings
            if (getProject() == null || enableProjectCheck.getSelection()) {
                try {
                    FindbugsPlugin.saveUserPreferences(getProject(), currentUserPreferences);
                } catch (CoreException e) {
                    FindbugsPlugin.getDefault().logException(e, "Could not store SpotBugs preferences for project");
                }
            }
            if(pluginsChanged) {
                FindbugsPlugin.applyCustomDetectors(true);
            }
        }

        analysisSettingsChanged = pluginsChanged || areAnalysisPrefsChanged(currentUserPreferences, origUserPreferences);

        reporterSettingsChanged = !currentUserPreferences.getFilterSettings().equals(origUserPreferences.getFilterSettings());

        boolean markerSeveritiesChanged = reportConfigurationTab.isMarkerSeveritiesChanged();

        needRedisplayMarkers = pluginsChanged || markerSeveritiesChanged || reporterSettingsChanged;

        boolean builderEnabled = false;

        if (getProject() != null) {
            builderEnabled = chkEnableFindBugs.getSelection();
            // Update whether or not FindBugs is run automatically.
            if (!natureEnabled && builderEnabled) {
                addNature();
            } else if (natureEnabled && !builderEnabled) {
                removeNature();
            }

            // update the flag to match the incremental/not property
            builderEnabled &= chkRunAtFullBuild.getSelection();
            boolean newSelection = enableProjectCheck.getSelection();
            if (projectPropsInitiallyEnabled != newSelection) {
                analysisSettingsChanged = true;
                FindbugsPlugin.setProjectSettingsEnabled(project, projectStore, newSelection);
            }
        }

        if (analysisSettingsChanged) {
            // trigger a Findbugs rebuild here
            if (builderEnabled) {
                runFindbugsBuilder();
                needRedisplayMarkers = false;
            } else {
                if (!getPreferenceStore().getBoolean(FindBugsConstants.DONT_REMIND_ABOUT_FULL_BUILD)) {
                    remindAboutFullBuild();
                }
            }
        }

        if (needRedisplayMarkers) {
            redisplayMarkers();
        }

        return true;
    }
1182376
public function onFinish()
    {
        if ($this->eofTerminated) {
            $this->requestFinished();
            $this->onResponse->executeAll($this, false);
            parent::onFinish();
            return;
        }
        if ($this->protocolError) {
            $this->onResponse->executeAll($this, false);
        } else {
            if (($this->state !== self::STATE_ROOT) && !$this->onResponse->isEmpty()) {
                $this->requestFinished();
            }
        }
        parent::onFinish();
    }
741593
def ok(self, *args, cb=None):
        """"""
        self.clear_widgets()
        if cb:
            cb()
        self.idx += 1
        self.advance_dialog()
1035242
@Override
    protected void doPerform() {
        if (isSourceDocumentRoot()) {
            getActions().contextClick().perform();
        } else {
            getActions().contextClick(getFirstElement()).perform();
        }
    }
899202
public void handleSuccess ()
    {
        if (_listener instanceof InvocationService.ConfirmListener) {
            reportRequestProcessed();
        } else if (_listener instanceof InvocationService.ResultListener && _resultSet) {
            reportRequestProcessed(_result);
        }
    }
206052
private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
        feedback = UserFeedback.Ok;
        synchronized (WAITER_LOCK) {
            okButton.setEnabled(false);
            cancelButton.setEnabled(false);
            WAITER_LOCK.notifyAll();
        }
    }
576151
protected void onOk() {

        final String title = m_linkTitle.getFormValueAsString();
        final String link = m_linkContent.getFormValueAsString();
        m_linkTitle.setEnabled(false);
        m_linkContent.setEnabled(false);
        m_okButton.setEnabled(false);
        if (m_isCreateNew) {
            final String fileName = m_fileName.getFormValueAsString();
            CmsRpcAction<Void> action = new CmsRpcAction<Void>() {

                @Override
                public void execute() {

                    CmsCoreProvider.getVfsService().createNewExternalLink(
                        title,
                        link,
                        fileName,
                        m_parentFolderPath,
                        this);
                }

                @Override
                protected void onResponse(Void result) {

                    hide();
                }
            };
            action.execute();
        } else {
            CmsRpcAction<Void> action = new CmsRpcAction<Void>() {

                @Override
                public void execute() {

                    CmsCoreProvider.getVfsService().saveExternalLink(
                        m_structureId,
                        title,
                        link,
                        CmsResource.getName(m_linkInfo.getSitePath()),
                        this);
                }

                @Override
                protected void onResponse(Void result) {

                    if (m_contextMenuHandler != null) {
                        m_contextMenuHandler.refreshResource(m_structureId);
                    }
                    hide();
                }
            };
            action.execute();
        }
    }
1140131
def check_ok_button(self):
        """"""
        login = self.login.text()
        password = self.password.text()
        url = self.url.text()
        if self.layers.count() >= 1 and login and password and url:
            self.ok_button.setEnabled(True)
        else:
            self.ok_button.setEnabled(False)
1202253
void setOkButtonEnabled() {

        m_ok.setEnabled(true);
        m_ok.setCaption(CmsVaadinUtils.getMessageText(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CLOSE_0));
        m_ok.removeClickListener(m_okClickListener);
        m_ok.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 5637556711524961424L;

            public void buttonClick(ClickEvent event) {

                closeDailog(true);
            }
        });
    }
732708
@Override
	public void handleRequest(final Request request) {
		// Clear pressed
		clearPressed();

		String requestValue = request.getParameter(getId());
		boolean pressed = "x".equals(requestValue);

		// Only process on a POST
		if (pressed && !"POST".equals(request.getMethod())) {
			LOG.warn("Button pressed on a request that is not a POST. Will be ignored.");
			return;
		}

		setPressed(pressed, request);
	}
1353311
protected void handleResponse(Object control) {
        this.sorted = (Boolean) invokeMethod("isSorted", responseControlClass, control);
        this.resultCode = (Integer) invokeMethod("getResultCode", responseControlClass, control);
	}
1127277
public void hangupReceived() {
        if (!isHangingUp) {
            isHangingUp = true;

            if (null != listenerReference) {
                // Disconnect will clear the listenerReference, so grab a reference to the
                // listener while it's still alive since the listener will be notified in a
                // different (UI) thread
                final Listener listener = listenerReference.get();

                new Handler(Looper.getMainLooper()).post(new Runnable() {
                    public void run() {
                        if (null != listener) {
                            listener.onHangup(RespokeCall.this);
                        }
                    }
                });
            }

            disconnect();
        }
    }
298061
def handle_user_input
      while true
        begin
          break if !wait_for_prompt
          input = $stdin.gets.chomp!
          execute_action(input, true)
        rescue SignalException => e
          return false
        end
      end
      wait
    end
476192
@Override
    public final void onCompleted(String pin) {
        resetStatus();
        if (isPinCorrect(pin)) {
            setResult(SUCCESS);
            finish();
        } else {
            setLabel(getString(R.string.message_invalid_pin));
        }
    }
903960
@UiHandler("m_editButton")
    void editAction(ClickEvent event) {

        m_clipboard.enableFavoritesEdit();
        m_buttonUsePanel.setVisible(false);
        m_buttonEditingPanel.setVisible(true);
    }
655293
function executeHooks(data, allHooks, checkHooks, creationMode) {
    var hooksToCall = creationMode ? allHooks : checkHooks;
    if (hooksToCall) {
        callHooks(data, hooksToCall);
    }
}
651235
public void onClickOk(CmsResource selected) {

        try {
            CmsResource target = selected;
            CmsResource source = m_context.getResources().get(0);
            CmsLocaleGroupService service = A_CmsUI.getCmsObject().getLocaleGroupService();
            service.attachLocaleGroupIndirect(source, target);
            m_context.finish(Arrays.asList(source.getStructureId()));
        } catch (CmsException e) {
            LOG.error(e.getLocalizedMessage(), e);
            m_context.error(e);
        }
    }