blob: 5adf6551a65575d36b4a01f235181924e8aa4aeb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 xored software, Inc.
*
* 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:
* xored software, Inc. - initial API and Implementation (Alex Panchenko)
*******************************************************************************/
package org.eclipse.dltk.ui.templates;
/**
* This interface is responsible to expand tabs in the templates to whatever is
* configured in the editor.
*
* The idea is that internally templates are created with tabs and those tabs
* are expanded to spaces if needed in
* {@link ScriptTemplateContext#evaluate(org.eclipse.jface.text.templates.Template)}
*/
public interface IScriptTemplateIndenter {
/**
* @param sb
* target buffer
* @param indent
* indent of the current line
* @param line
* next line from the template
*/
void indentLine(StringBuffer sb, String indent, String line);
}