code: /*--------------------------------------------------------------*
    Copyright (C) 2006-2015 OpenSim Ltd.
  
    This file is distributed WITHOUT ANY WARRANTY. See the file
    'License' for details on this and other legal matters.
  *--------------------------------------------------------------*/
  
  package org.omnetpp.common.wizard;
  
  
  import org.eclipse.core.runtime.CoreException;
  
  import freemarker.template.TemplateException;
  
  /**
   * Extension interface for content templates.
   *
   * @author Andras
   */
  public interface IContentTemplateContributor {
  
      /**
       * Return extra template code, which will be included before each template.
       * May define functions, macros etc.
       */
      String getAdditionalTemplateCode() throws CoreException, TemplateException;
  
      /**
       * Called after the context is created. May add variables to the context.
       */
      void contributeToContext(CreationContext context) throws CoreException, TemplateException;
  
      /**
       * Called at the end of performFinish(). May perform additional tasks.
       */
      //FIXME TODO call this!
      void postPerformFinish() throws CoreException, TemplateException;
  
  }
  