Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Semantic Highlighting - breaking changes

Hi all,

I have just committed semantic highlighting changes.

API Changes:

The public API moved to the new org.eclipse.dltk.ui.editor.highlighting package, old package org.eclipse.dltk.internal.ui.editor.semantic.highlighting is not exported anymore.

PositionUpdater class changed to the ISemanticHighlighter interface and now it has methods:

- void initialize(IHighlightedPositionFactory factory, HighlightingStyle[] styles); - UpdateResult reconcile(org.eclipse.dltk.compiler.env.ISourceModule code, List currentPositions);

There are abstract implementations:
- org.eclipse.dltk.ui.editor.highlighting.AbstractSemanticHighlighter
- org.eclipse.dltk.ui.editor.highlighting.ASTSemanticHighlighter

AbstractScriptEditorColoringConfigurationBlock now has new method

protected ScriptTextTools getTextTools() {
 return null;
}

it should be overridden for semantic highlightings to be available in syntax coloring preferences.

ruby & tcl are updated, now I will update javascript.

If you have any questions ask.

Regards,
Alex


Back to the top