/*******************************************************************************
* Copyright (c) 2016, 2017 itemis AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Alexander Nyßen (itemis AG) - initial API and implementation
* Tamas Miklossy (itemis AG) - add binding for template proposal provider (bug #321775)
*******************************************************************************/
package org.eclipse.gef.dot.internal.ui.language;
import org.eclipse.gef.dot.internal.ui.language.contentassist.DynamicTemplateProposalProvider;
import org.eclipse.gef.dot.internal.ui.language.highlighting.DotAntlrTokenToAttributeIdMapper;
import org.eclipse.gef.dot.internal.ui.language.highlighting.DotHighlightingConfiguration;
import org.eclipse.gef.dot.internal.ui.language.highlighting.DotSemanticHighlightingCalculator;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.xtext.ui.editor.contentassist.ITemplateProposalProvider;
import org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractAntlrTokenToAttributeIdMapper;
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfiguration;
import org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator;
/**
* Use this class to register components to be used within the IDE.
*/
public class DotUiModule
extends org.eclipse.gef.dot.internal.ui.language.AbstractDotUiModule {
public DotUiModule(AbstractUIPlugin plugin) {
super(plugin);
}
public Class<? extends ISemanticHighlightingCalculator> bindISemanticHighlightingCalculator() {
return DotSemanticHighlightingCalculator.class;
}
public Class<? extends IHighlightingConfiguration> bindIHighlightingConfiguration() {
return DotHighlightingConfiguration.class;
}
public Class<? extends AbstractAntlrTokenToAttributeIdMapper> bindAbstractAntlrTokenToAttributeIdMapper() {
return DotAntlrTokenToAttributeIdMapper.class;
}
@Override
public Class<? extends ITemplateProposalProvider> bindITemplateProposalProvider() {
return DynamicTemplateProposalProvider.class;
}
}