gpt4 book ai didi

org.netbeans.spi.editor.highlighting.ZOrder类的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 04:43:31 26 4
gpt4 key购买 nike

本文整理了Java中org.netbeans.spi.editor.highlighting.ZOrder类的一些代码示例,展示了ZOrder类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZOrder类的具体详情如下:
包路径:org.netbeans.spi.editor.highlighting.ZOrder
类名称:ZOrder

ZOrder介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-refactoring

@Override
  public HighlightsLayer[] createLayers(Context context) {
    return new HighlightsLayer[] {
      //"above" mark occurrences (1000)
      HighlightsLayer.create(InstantRenamePerformer.class.getName(), ZOrder.CARET_RACK.forPosition(1075), false, InstantRenamePerformer.getHighlightsBag(context.getDocument())),
    };
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-spellchecker

public HighlightsLayer[] createLayers(Context ctx) {
  OffsetsBag bag = getBag(ctx.getComponent());
  return new HighlightsLayer[] {
    HighlightsLayer.create(SpellcheckerHighlightLayerFactory.class.getName(), ZOrder.CARET_RACK.forPosition(30), true, bag),
  };
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf

public HighlightsLayer[] createLayers(Context context) {
    //LexerBasedHighlightLayer semantic = LexerBasedHighlightLayer.getLayer(SemanticHighlighter.class, context.getDocument());
    GsfSemanticLayer semantic = GsfSemanticLayer.getLayer(SemanticHighlighter.class, context.getDocument());
    semantic.clearColoringCache();
    
    return new HighlightsLayer[] {
      HighlightsLayer.create(SemanticHighlighter.class.getName() + "-1", ZOrder.SYNTAX_RACK.forPosition(1000), false, semantic),
//            HighlightsLayer.create(SemanticHighlighter.class.getName() + "-2", ZOrder.SYNTAX_RACK.forPosition(1500), false, SemanticHighlighter.getImportHighlightsBag(context.getDocument())),
      //the mark occurrences layer should be "above" current row and "below" the search layers:
      HighlightsLayer.create(MarkOccurrencesHighlighter.class.getName(), ZOrder.CARET_RACK.forPosition(50), false, MarkOccurrencesHighlighter.getHighlightsBag(context.getDocument())),
      //"above" mark occurrences, "below" search layers:
      HighlightsLayer.create(InstantRenamePerformer.class.getName(), ZOrder.CARET_RACK.forPosition(75), false, InstantRenamePerformer.getHighlightsBag(context.getDocument())),
    };
  }

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-ruby-rhtml

public HighlightsLayer[] createLayers(Context context) {
    return new HighlightsLayer[]{ HighlightsLayer.create(
      "rhtml-embedded-ruby-scriplets-highlighting-layer", //NOI18N
      ZOrder.BOTTOM_RACK.forPosition(100), 
      true, 
      new EmbeddedSectionsHighlighting(context.getDocument())
    )};
  }
} // End of Factory class

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mobility-editor

public HighlightsLayer[] createLayers(Context context) {
  return new HighlightsLayer[]{
    HighlightsLayer.create(PROP_HIGLIGHT_HEADER_LAYER,
    ZOrder.SYNTAX_RACK.forPosition(120),
    true,
    new HeadersHighlighting(context.getDocument())),
    HighlightsLayer.create(PROP_HIGLIGHT_BLOCKS_LAYER,
    ZOrder.BOTTOM_RACK.forPosition(110),
    true,
    new BlocksHighlighting(context.getDocument()))
  };
}

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-languages

public HighlightsLayer[] createLayers (Context context) {
    Document document = context.getDocument ();
//        try {
//            if (LanguagesManager.getDefault ().getLanguage (mimeType).getParser () == null)
//                return null;
      return new HighlightsLayer[] {
        HighlightsLayer.create (
          "GLF Semantic Coloring", 
          ZOrder.SYNTAX_RACK.forPosition (10), 
          false, 
          new SemanticHighlightsLayer (document)
        ),
        HighlightsLayer.create (
          "GLF Languages Coloring", 
          ZOrder.SYNTAX_RACK.forPosition (11), 
          false, 
          new LanguagesHighlightsLayer (document)
        ),
        HighlightsLayer.create (
          "GLF Token Highlighting", 
          ZOrder.SHOW_OFF_RACK.forPosition (0), 
          false, 
          new TokenHighlightsLayer (document)
        )
      };
//        } catch (LanguageDefinitionNotFoundException ex) {
//            return null;
//        }
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-highlight

@Override
  public HighlightsLayer[] createLayers(Context context) {
    if (SEMANTIC_DISABLED) {
      return new HighlightsLayer[]{
            HighlightsLayer.create(
            MarkOccurrencesHighlighter.class.getName(),
            ZOrder.CARET_RACK.forPosition(1000),
            true,
            MarkOccurrencesHighlighter.getHighlightsBag(context.getDocument())),};
    } else {
    return 
      new HighlightsLayer[] {
        HighlightsLayer.create(
          SemanticHighlighter.class.getName(), 
          ZOrder.SYNTAX_RACK.forPosition(2000),
          true,
          SemanticHighlighter.getHighlightsBag(context.getDocument())),
        HighlightsLayer.create(
          MarkOccurrencesHighlighter.class.getName(), 
          ZOrder.CARET_RACK.forPosition(1000),
          true,
          MarkOccurrencesHighlighter.getHighlightsBag(context.getDocument())),
      };
    }
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com