blob: 09dbad3dd93b584c25bb7ea0af21f67ccdda1ca8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 xored software, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* xored software, Inc. - initial API and Implementation (Alex Panchenko)
*******************************************************************************/
package org.eclipse.dltk.ui.text.templates;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.templates.ContextTypeRegistry;
import org.eclipse.jface.text.templates.persistence.TemplateStore;
public interface ITemplateAccess {
public interface ITemplateAccessInternal {
void dispose();
String getPreferenceQualifier();
String getPreferenceKey();
}
/**
* Returns the template context type registry for the code generation
* templates.
*
* @return the template context type registry for the code generation
* templates
*/
ContextTypeRegistry getContextTypeRegistry();
/**
* Returns the template store for the code generation templates.
*
* @return the template store for the code generation templates
*/
TemplateStore getTemplateStore();
/**
* Returns the preference store used to create the template store returned
* by {@link #getTemplateStore()}.
*
* @return the preference store
*/
IPreferenceStore getTemplatePreferenceStore();
}