Package net.sourceforge.veditor.templates

Examples of net.sourceforge.veditor.templates.TemplateWithIndent


   */
  public HdlTemplateProposal createProposal() {
    Region region = null;
    Image image;
    int relevance = 0;
    TemplateWithIndent templateX = null;
    DocumentTemplateContext context = null;
    Template template = null;

    image = VerilogPlugin.getPlugin().getImage(m_Element.GetImageName());
    context = new DocumentTemplateContext(new VhdlGlobalContext(), m_Doc,
        m_Offset, m_Length);
    //set the region to cover the text begin replaced
    region = new Region(m_Offset, m_Length);

    template = new Template(
        m_Element.getShortName(),
          getDescription(),
          VhdlGlobalContext.CONTEXT_TYPE,
        getString(),
        false);
   
    templateX = new TemplateWithIndent(template, m_Doc.getIndentString(m_Offset));

    return new HdlTemplateProposal(
        templateX,
        context,
        region,
View Full Code Here


          continue;
        }     
       
        if (template.matches(prefix, contextType.getId()) && template.getName().startsWith(prefix)){
          String indent = doc.getIndentString(offset);
          template = new TemplateWithIndent(template, indent);
          HdlTemplateProposal hdlTemplateProposal=new HdlTemplateProposal(template,
                                documnetTemplateContext,
                                region,
                                getTemplateImage(template),
                                getRelevance(template, prefix));
View Full Code Here

TOP

Related Classes of net.sourceforge.veditor.templates.TemplateWithIndent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.