blob: 656de17957708a05407a5fe9e2a9ebe1eae5b069 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2007 IBM Corporation 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.dltk.ruby.internal.ui.templates;
import org.eclipse.dltk.core.ISourceModule;
import org.eclipse.dltk.ui.templates.ScriptTemplateContext;
import org.eclipse.dltk.ui.templates.ScriptTemplateContextType;
import org.eclipse.jface.text.IDocument;
public class RubyUniversalTemplateContextType extends ScriptTemplateContextType {
public static final String CONTEXT_TYPE_ID = "rubyUniversalTemplateContextType"; //$NON-NLS-1$
public RubyUniversalTemplateContextType() {
// empty constructor
}
public RubyUniversalTemplateContextType(String id) {
super(id);
}
public RubyUniversalTemplateContextType(String id, String name) {
super(id, name);
}
public ScriptTemplateContext createContext(IDocument document, int offset,
int length, ISourceModule sourceModule) {
return new RubyTemplateContext(this, document, offset, length, sourceModule);
}
}