Package com.intellij.openapi.editor.colors

Examples of com.intellij.openapi.editor.colors.EditorColorsScheme


  private final UsageView myView;

  public UsageViewTreeCellRenderer(UsageView view) {
    myView = view;
    myPresentation = view.getPresentation();
    EditorColorsScheme colorsScheme = UsageTreeColorsScheme.getInstance().getScheme();
    myNumberOfUsagesAttribute = SimpleTextAttributes.fromTextAttributes(colorsScheme.getAttributes(UsageTreeColors.NUMBER_OF_USAGES));
  }
View Full Code Here


            initComponents();
        }
    }

    public void initComponents() {
        final EditorColorsScheme colorsScheme = myConsoleEditor.getColorsScheme();
        final DelegateColorScheme scheme = new DelegateColorScheme(colorsScheme) {
            @NotNull
            @Override
            public Color getDefaultBackground() {
                final Color color = getColor(ConsoleViewContentType.CONSOLE_BACKGROUND_KEY);
View Full Code Here

        final int localStartOffset = textRange.getStartOffset();
        String text;
        EditorHighlighter highlighter;
        if (consoleEditor instanceof EditorWindow) {
            EditorWindow editorWindow = (EditorWindow) consoleEditor;
            EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
            PsiFile file = editorWindow.getInjectedFile();
            final VirtualFile virtualFile = file.getVirtualFile();
            assert virtualFile != null;
            highlighter = HighlighterFactory.createHighlighter(virtualFile, scheme, getProject());
            String fullText = InjectedLanguageUtil.getUnescapedText(file, null, null);
View Full Code Here

        ClojureProjectSettings.getInstance(psiElement.getProject()).coloredParentheses) {
      IElementType type = ((LeafPsiElement) psiElement).getElementType();
      if (type == ClojureElementTypes.LEFT_PAREN || type == ClojureElementTypes.RIGHT_PAREN) {
        int level = getLevel(psiElement);
        if (level >= 0) {
          final EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
          TextAttributes attrs = ClojureBraceAttributes.getBraceAttributes(level, scheme.getDefaultBackground());
          annotationHolder.createInfoAnnotation(psiElement, null).setEnforcedTextAttributes(attrs);
        }
      }
    }
  }
View Full Code Here

        editorSettings.setVirtualSpace(false);

    }

    private void attachHighlighter(final EditorEx editor) {
        EditorColorsScheme scheme = editor.getColorsScheme();
        scheme.setColor(EditorColors.CARET_ROW_COLOR, null);
        editor.setHighlighter(createHighlighter(scheme));
    }
View Full Code Here

    }

    private static Color getHighlighterColor() {
        EditorColorsManager manager = EditorColorsManager.getInstance();
        if (manager != null) {
            EditorColorsScheme globalScheme = manager.getGlobalScheme();

            return globalScheme.getColor(EditorColors.SELECTION_FOREGROUND_COLOR);
        } else {
            return JBColor.getHSBColor(.0f, .37f, .99f);
        }
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.editor.colors.EditorColorsScheme

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.