eclipse plugin: Switch to the new interface for xtext 2.0
This commit is contained in:
parent
bf6cdd7454
commit
5f7e15624c
2 changed files with 6 additions and 7 deletions
|
@ -6,14 +6,14 @@ Bundle-Version: 1.0.3
|
|||
Bundle-SymbolicName: org.wesnoth.ui;singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: org.wesnoth;visibility:=reexport,
|
||||
org.eclipse.xtext.ui,
|
||||
org.eclipse.xtext.ui;bundle-version="2.0.0",
|
||||
org.eclipse.xtext.ui.shared;bundle-version="2.0.0",
|
||||
org.eclipse.xtext.xtext.ui;bundle-version="1.0.0",
|
||||
org.eclipse.ui.editors;bundle-version="3.5.0",
|
||||
org.eclipse.ui.ide;bundle-version="3.5.0",
|
||||
org.eclipse.xtext.ui.shared,
|
||||
org.eclipse.ui,
|
||||
org.eclipse.xtext.builder,
|
||||
org.antlr.runtime,
|
||||
org.eclipse.xtext.xtext.ui;bundle-version="1.0.0",
|
||||
org.eclipse.core.filesystem;bundle-version="1.3.0",
|
||||
org.wesnoth;bundle-version="1.0.0"
|
||||
Import-Package: org.apache.log4j
|
||||
|
|
|
@ -14,12 +14,11 @@ import org.eclipse.emf.ecore.EObject;
|
|||
import org.eclipse.emf.ecore.util.EcoreUtil;
|
||||
import org.eclipse.xtext.nodemodel.ILeafNode;
|
||||
import org.eclipse.xtext.nodemodel.INode;
|
||||
import org.eclipse.xtext.nodemodel.impl.AbstractNode;
|
||||
import org.eclipse.xtext.nodemodel.impl.CompositeNode;
|
||||
import org.eclipse.xtext.nodemodel.impl.LeafNode;
|
||||
import org.eclipse.xtext.resource.XtextResource;
|
||||
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor;
|
||||
import org.eclipse.xtext.xtext.ui.editor.syntaxcoloring.SemanticHighlightingCalculator;
|
||||
import org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator;
|
||||
import org.wesnoth.ui.editor.WMLEditor;
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
|
@ -29,7 +28,7 @@ import org.wesnoth.wml.WMLTag;
|
|||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
public class WMLSemanticHighlightingCalculator extends SemanticHighlightingCalculator
|
||||
public class WMLSemanticHighlightingCalculator implements ISemanticHighlightingCalculator
|
||||
{
|
||||
@Override
|
||||
public void provideHighlightingFor(XtextResource resource, IHighlightedPositionAcceptor acceptor)
|
||||
|
@ -119,7 +118,7 @@ public class WMLSemanticHighlightingCalculator extends SemanticHighlightingCalcu
|
|||
return (tag.getName().equals(editor.getCurrentHighlightedNode().getText()));
|
||||
}
|
||||
|
||||
private void highlightNode(AbstractNode node, String id, IHighlightedPositionAcceptor acceptor)
|
||||
private void highlightNode(INode node, String id, IHighlightedPositionAcceptor acceptor)
|
||||
{
|
||||
if (node == null || id == null)
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue