| /******************************************************************************* |
| * Copyright (c) 2000, 2004 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.ant.internal.ui.editor.templates; |
| |
| import org.eclipse.jface.text.IInformationControlCreator; |
| import org.eclipse.jface.text.IRegion; |
| import org.eclipse.jface.text.templates.Template; |
| import org.eclipse.jface.text.templates.TemplateContext; |
| import org.eclipse.jface.text.templates.TemplateProposal; |
| import org.eclipse.swt.graphics.Image; |
| |
| public class AntTemplateProposal extends TemplateProposal { |
| |
| public AntTemplateProposal(Template template, TemplateContext context,IRegion region, Image image) { |
| super(template, context, region, image); |
| } |
| |
| public AntTemplateProposal(Template template, TemplateContext context, IRegion region, Image image, int relevance) { |
| super(template, context, region, image, relevance); |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getInformationControlCreator() |
| */ |
| public IInformationControlCreator getInformationControlCreator() { |
| return new AntTemplateInformationControlCreator(); |
| } |
| } |