Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 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 Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.ant.internal.ui.editor.templates;
public class AntTemplateAccess {
Key to store custom templates.
	private static final String CUSTOM_TEMPLATES_KEY"org.eclipse.ant.ui.customtemplates"//$NON-NLS-1$
The shared instance.
	private static AntTemplateAccess fgInstance;

The template store.
	private TemplateStore fStore;

The context type registry.
	private AntTemplateAccess() {
	}

Returns the shared instance.

Returns:
the shared instance
	public static AntTemplateAccess getDefault() {
		if ( == null) {
		}
		return ;
	}

Returns this plug-in's template store.

Returns:
the template store of this plug-in instance
		if ( == null) {
			try {
catch (IOException e) {
				AntUIPlugin.log(e);
			}
		}
		return ;
	}

Returns this plug-in's context type registry.

Returns:
the context type registry for this plug-in instance
		if ( == null) {
			// create and configure the contexts available in the template editor
		}
		return ;
	}
New to GrepCode? Check out our FAQ X