Returns, whether the negative button of the example dialog should be shown, or not.

@return True, if the negative button should be shown, false otherwise
485114
private boolean shouldNegativeButtonBeShown() {
        SharedPreferences sharedPreferences =
                PreferenceManager.getDefaultSharedPreferences(getActivity());
        String key = getString(R.string.show_negative_button_preference_key);
        boolean defaultValue =
                getResources().getBoolean(R.bool.show_negative_button_preference_default_value);
        return sharedPreferences.getBoolean(key, defaultValue);
    }
703075
public function hasButton()
    {
        if (!empty($this->getButtonLabel())) {
            return true;
        }

        foreach ($this->tabs as $tab) {
            if (!empty($tab->getButtonLabel())) {
                return true;
            }
        }

        return false;
    }
89809
private boolean isWellFormed()
    {
        for (int i = 0 ; i < maxHeight ; i++)
        {
            int c = 0;
            for (Node node = head ; node != null ; node = node.next(i))
            {
                if (node.prev(i) != null && node.prev(i).next(i) != node)
                    return false;
                if (node.next(i) != null && node.next(i).prev(i) != node)
                    return false;
                c += node.size[i];
                if (i + 1 < maxHeight && node.parent(i + 1).next(i + 1) == node.next(i))
                {
                    if (node.parent(i + 1).size[i + 1] != c)
                        return false;
                    c = 0;
                }
            }
            if (i == maxHeight - 1 && c != size + 1)
                return false;
        }
        return true;
    }
324118
function () {

    	if( this.current === -1 ) return false;
        //if(!this.target) return;
        this.target.uiout();
        this.target.reset();
        this.target = null;
        this.current = -1;
        Roots.cursor();
        return true;

    }
1063209
protected final void attemptCloseDialog() {
        switch (buttonType) {
            case AlertDialog.BUTTON_NEGATIVE:
                dialog.cancel();
                break;
            case AlertDialog.BUTTON_NEUTRAL:
                dialog.cancel();
                break;
            case AlertDialog.BUTTON_POSITIVE:
                dialog.dismiss();
                break;
            default:
                break;
        }
    }
666428
public boolean validationAsBoolean()
   {
      if (this.getMessageadapter() == null || this.getMessageadapter().getMessagelisteners() == null
            || this.getMessageadapter().getMessagelisteners().isEmpty())
         return false;
      MessageListener mlmd = this.getMessageadapter().getMessagelisteners().get(0);
      if (mlmd.getMessagelistenerType() == null || mlmd.getActivationspec() == null
            || mlmd.getActivationspec().getActivationspecClass() == null)
         return false;
      return true;
   }
1332779
public boolean displayWarning(BugInstance bugInstance) {

        int priority = bugInstance.getPriority();
        if (priority > getMinPriorityAsInt()) {
            return false;
        }

        int rank = bugInstance.getBugRank();
        if (rank > getMinRank()) {
            return false;
        }

        BugPattern bugPattern = bugInstance.getBugPattern();

        // HACK: it is conceivable that the detector plugin which generated
        // this warning is not available any more, in which case we can't
        // find out the category. Let the warning be visible in this case.
        if (!containsCategory(bugPattern.getCategory())) {
            return false;
        }

        if (!displayFalseWarnings) {
            boolean isFalseWarning = !Boolean.valueOf(bugInstance.getProperty(BugProperty.IS_BUG, "true")).booleanValue();
            if (isFalseWarning) {
                return false;
            }
        }

        return true;
    }
1228052
boolean checkValidation() {

        boolean result;
        if (m_changedEntityIds.isEmpty()) {
            result = true;
        } else if (m_saveButton.isEnabled()) {
            result = true;
        } else {
            result = false;
            CmsNotification.get().send(Type.ERROR, m_saveButton.getDisabledReason());
        }
        return result;
    }
209369
public boolean somethingSelected() {
        boolean isSelected = false;
        if (input()) {
            WebElement webElement = element.getWebElement();
            if ("input".equalsIgnoreCase(webElement.getTagName())) {
                isSelected = webElement.isSelected();
            } else if (SELECT.equalsIgnoreCase(webElement.getTagName())) {
                Select dropdown = new Select(webElement);
                isSelected = !dropdown.getAllSelectedOptions().isEmpty();
            }
        }
        return isSelected;
    }
526316
public boolean onHelp(int iOptions)
    {
        String strPrevAction = this.getScreenURL();
        if ((strPrevAction == null) || (strPrevAction.length() == 0))
            return false;   // Can't handle help if I'm not the target screen.
        // Note: The following is a hack to make the demo screen stop displaying after the first help is pressed
        if (this.getProperty("displayInitialHelp") != null)
        	if ((this.getProperty("helplanguage") != null) && (this.getProperty("helplanguage").length() > 0))
        		if (this.getTask() != null)
        			if (this.getTask().getApplication() != null)
    		this.getTask().getApplication().setProperty("helplanguage", this.getTask().getApplication().getLanguage(true));
        strPrevAction = Utility.fixDisplayURL(strPrevAction, true, true, true, this);

        BaseAppletReference applet = null;
        if (this.getAppletScreen() != null)
        	if (this.getAppletScreen().getScreenFieldView() != null)
        		applet = (BaseAppletReference)this.getAppletScreen().getScreenFieldView().getControl();
        if (applet != null)
        	iOptions = applet.getHelpPageOptions(iOptions);
        if ((MenuConstants.HELP_WEB_OPTION & iOptions) == MenuConstants.HELP_WEB_OPTION)
            return this.getScreenFieldView().showDocument(strPrevAction, iOptions & 1);   // Not standalone
        else
        	return this.getAppletScreen().showHelpScreen(strPrevAction, iOptions);
    }
1024521
private void checkNegativeNumberExpression() {
        if ((numberFormat instanceof DecimalFormat) &&
            !numberFormat.equals(originalNumberFormat)) {
            String numberPattern = ((DecimalFormat)numberFormat).toPattern();
            if (!numberPattern.equals(originalNumberPattern)) {
                hasFollowingMinusSign = false;

                int separatorIndex = numberPattern.indexOf(';');
                // If the negative subpattern is not absent, we have to analayze
                // it in order to check if it has a following minus sign.
                if (separatorIndex > -1) {
                    int minusIndex = numberPattern.indexOf('-', separatorIndex);
                    if ((minusIndex > numberPattern.lastIndexOf('0')) &&
                        (minusIndex > numberPattern.lastIndexOf('#'))) {
                        hasFollowingMinusSign = true;
                        minusSign = ((DecimalFormat)numberFormat).getDecimalFormatSymbols().getMinusSign();
                    }
                }
                originalNumberPattern = numberPattern;
            }
            originalNumberFormat = numberFormat;
        }
    }
1223822
private JButton getBtnCancel() {
		if (btnCancel == null) {
			btnCancel = new JButton();
			btnCancel.setText(Constant.messages.getString("edit.find.button.cancel"));
			btnCancel.addActionListener(new java.awt.event.ActionListener() { 

				@Override
				public void actionPerformed(java.awt.event.ActionEvent e) {

					FindDialog.this.discard();
					FindDialog.this.dispatchEvent(new WindowEvent(FindDialog.this, WindowEvent.WINDOW_CLOSING));
				}
			});

		}
		return btnCancel;
	}
278940
public static boolean showRateDialogIfNeeded(final Context context, int themeId) {
        if (shouldShowRateDialog()) {
            showRateDialog(context, themeId);
            return true;
        } else {
            return false;
        }
    }
480724
public boolean isSentenceStart() {
    return posToken != null && JLanguageTool.SENTENCE_START_TAGNAME.equals(posToken.posTag) && !posToken.negation;
  }
637925
private function canValid() {
		if (class_exists('BetterButton'))
			return $this->form->buttonClicked() && $this->form->buttonClicked()->actionName()!="doDelete";
		else
			return true;
	}
74227
private boolean shouldTitleBeShown() {
        SharedPreferences sharedPreferences =
                PreferenceManager.getDefaultSharedPreferences(getActivity());
        String key = getString(R.string.show_bottom_sheet_title_preference_key);
        boolean defaultValue =
                getResources().getBoolean(R.bool.show_bottom_sheet_title_preference_default_value);
        return sharedPreferences.getBoolean(key, defaultValue);
    }
957885
public function isNegative(): bool
    {
        if ($this->number === 0 ){
            throw new IsZeroException('0 is neither positive or negative');
        }
        return (!is_int($this->number) && $this->number < 0 || $this->number < 0);
    }