blob: 8f0ad59db9ee8b62fbc8df434fda366f9eb96add [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 itemis AG (http://www.itemis.eu) 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
*******************************************************************************/
package org.eclipse.xtext.example.arithmetics.ui.autoedit;
import org.eclipse.jface.text.IDocument;
import org.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider;
public class AutoEditStrategy extends DefaultAutoEditStrategyProvider {
@Override
protected void configure(IEditStrategyAcceptor acceptor) {
super.configure(acceptor);
//acceptor.accept(newShortCuts("PI", "PI"));
acceptor.accept(new InterpreterAutoEdit(),IDocument.DEFAULT_CONTENT_TYPE);
}
}