Java Code Examples for com.intellij.codeInsight.CodeInsightSettings#ALL
The following examples show how to use
com.intellij.codeInsight.CodeInsightSettings#ALL .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CamelHumpMatcher.java From consulo with Apache License 2.0 | 6 votes |
private MinusculeMatcher createMatcher(final boolean caseSensitive) { String prefix = applyMiddleMatching(myPrefix); NameUtil.MatcherBuilder builder = NameUtil.buildMatcher(prefix); if (caseSensitive) { int setting = CodeInsightSettings.getInstance().COMPLETION_CASE_SENSITIVE; if (setting == CodeInsightSettings.FIRST_LETTER) { builder = builder.withCaseSensitivity(NameUtil.MatchingCaseSensitivity.FIRST_LETTER); } else if (setting == CodeInsightSettings.ALL) { builder = builder.withCaseSensitivity(NameUtil.MatchingCaseSensitivity.ALL); } } if (myTypoTolerant) { builder = builder.typoTolerant(); } return builder.build(); }
Example 2
Source File: CamelHumpMatcher.java From consulo with Apache License 2.0 | 5 votes |
private boolean prefixMatchersInternal(final LookupElement element, final boolean itemCaseInsensitive) { for (final String name : element.getAllLookupStrings()) { if (itemCaseInsensitive && StringUtil.startsWithIgnoreCase(name, myPrefix) || prefixMatches(name)) { return true; } if (itemCaseInsensitive && CodeInsightSettings.ALL != CodeInsightSettings.getInstance().COMPLETION_CASE_SENSITIVE) { if (myCaseInsensitiveMatcher.matches(name)) { return true; } } } return false; }
Example 3
Source File: CodeCompletionPanel.java From consulo with Apache License 2.0 | 5 votes |
public void reset() { CodeInsightSettings codeInsightSettings = CodeInsightSettings.getInstance(); final String value; switch(codeInsightSettings.COMPLETION_CASE_SENSITIVE){ case CodeInsightSettings.ALL: value = CASE_SENSITIVE_ALL; break; case CodeInsightSettings.NONE: value = CASE_SENSITIVE_NONE; break; default: value = CASE_SENSITIVE_FIRST_LETTER; break; } myCaseSensitiveCombo.setSelectedItem(value); myCbSelectByChars.setSelected(codeInsightSettings.SELECT_AUTOPOPUP_SUGGESTIONS_BY_CHARS); myCbOnCodeCompletion.setSelected(codeInsightSettings.AUTOCOMPLETE_ON_CODE_COMPLETION); myCbOnSmartTypeCompletion.setSelected(codeInsightSettings.AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION); myCbAutocompletion.setSelected(codeInsightSettings.AUTO_POPUP_COMPLETION_LOOKUP); myCbAutopopupJavaDoc.setSelected(codeInsightSettings.AUTO_POPUP_JAVADOC_INFO); myAutopopupJavaDocField.setEnabled(codeInsightSettings.AUTO_POPUP_JAVADOC_INFO); myAutopopupJavaDocField.setText(String.valueOf(codeInsightSettings.JAVADOC_INFO_DELAY)); myCbParameterInfoPopup.setSelected(codeInsightSettings.AUTO_POPUP_PARAMETER_INFO); myParameterInfoDelayField.setEnabled(codeInsightSettings.AUTO_POPUP_PARAMETER_INFO); myParameterInfoDelayField.setText(String.valueOf(codeInsightSettings.PARAMETER_INFO_DELAY)); myCbShowFullParameterSignatures.setSelected(codeInsightSettings.SHOW_FULL_SIGNATURES_IN_PARAMETER_INFO); myCbAutocompletion.setSelected(codeInsightSettings.AUTO_POPUP_COMPLETION_LOOKUP); myCbSorting.setSelected(UISettings.getInstance().SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY); myCbAutocompletion.setText("Autopopup code completion" + (PowerSaveMode.isEnabled() ? " (not available in Power Save mode)" : "")); }
Example 4
Source File: CodeCompletionPanel.java From consulo with Apache License 2.0 | 5 votes |
@MagicConstant(intValues = {CodeInsightSettings.ALL, CodeInsightSettings.NONE, CodeInsightSettings.FIRST_LETTER}) private int getCaseSensitiveValue() { Object value = myCaseSensitiveCombo.getSelectedItem(); if (CASE_SENSITIVE_ALL.equals(value)){ return CodeInsightSettings.ALL; } else if (CASE_SENSITIVE_NONE.equals(value)){ return CodeInsightSettings.NONE; } else { return CodeInsightSettings.FIRST_LETTER; } }