Package org.eclipse.php.internal.ui.editor.highlighter

Examples of org.eclipse.php.internal.ui.editor.highlighter.LineStyleProviderForPhp


  private Button fEnabler;
  private static Map<String, Position[]> highlightingPositionMap;
  private static Map<String, HighlightingStyle> highlightingStyleMap;

  public PHPSyntaxColoringPage() {
    fStyleProvider = new LineStyleProviderForPhp();
  }
View Full Code Here


    if (fText == null || fText.isDisposed() || fInput == null
        || fInput.length() == 0) {
      return;
    }
    IStructuredDocumentRegion node = fNodes;
    final LineStyleProviderForPhp styler = new LineStyleProviderForPhp();
    final Collection holdResults = new ArrayList();
    styler.prepareTextRegions(node, 0, fNodes.getEnd(), holdResults);

    for (Iterator iter = holdResults.iterator(); iter.hasNext();) {
      StyleRange element = (StyleRange) iter.next();
      fText.setStyleRange(element);
    }
View Full Code Here

  public void initColorsMap() {
    IModelManager mmanager = StructuredModelManager.getModelManager();
    setParser(mmanager.createStructuredDocumentFor(
        ContentTypeIdForPHP.ContentTypeID_PHP).getParser());

    styleProvider = new LineStyleProviderForPhp();
    Dictionary contextStyleMap = new Hashtable(styleProvider
        .getColorTypesMap());

    setContextStyleMap(contextStyleMap);
  }
View Full Code Here

    return configuredContentTypes;
  }

  public LineStyleProvider getLineStyleProvider() {
    if (fLineStyleProvider == null) {
      fLineStyleProvider = new LineStyleProviderForPhp();
    }
    return fLineStyleProvider;
  }
View Full Code Here

  public void setupViewer() {
    IModelManager mmanager = StructuredModelManager.getModelManager();
    setParser(mmanager.createStructuredDocumentFor(
        ContentTypeIdForPHP.ContentTypeID_PHP).getParser());

    styleProvider = new LineStyleProviderForPhp();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.editor.highlighter.LineStyleProviderForPhp

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.