Package org.eclipse.jface.text.templates

Examples of org.eclipse.jface.text.templates.ContextTypeRegistry


  }

  protected TemplateContextType getContextType(ITextViewer viewer, IRegion region) {
    TemplateContextType type = null;

    ContextTypeRegistry registry = getTemplateContextRegistry();
    if (registry != null)
      type = registry.getContextType(fContextTypeId);

    return type;
  }
View Full Code Here


  }

  protected TemplateContextType getContextType(ITextViewer viewer, IRegion region) {
    TemplateContextType type = null;

    ContextTypeRegistry registry = getTemplateContextRegistry();
    if (registry != null)
      type = registry.getContextType(fContextTypeId);

    return type;
  }
View Full Code Here

  }

  protected TemplateContextType getContextType(ITextViewer viewer, IRegion region) {
    TemplateContextType type = null;

    ContextTypeRegistry registry = getTemplateContextRegistry();
    if (registry != null) {
      type = registry.getContextType(fContextTypeId);
    }

    return type;
  }
View Full Code Here

      IRegion region) {

    // For now always return the context type for ALL PHP regions
    TemplateContextType type = null;

    ContextTypeRegistry registry = getTemplateContextRegistry();
    if (registry != null)
      type = registry.getContextType(contextTypeId);

    return type;
  }
View Full Code Here

  protected ContextTypeRegistry getTemplatesContextTypeRegistry() {
    return PHPUiPlugin.getDefault().getCodeTemplateContextRegistry();
  }

  protected String getTemplatesLocationMessage() {
    ContextTypeRegistry templateContextRegistry = getTemplatesContextTypeRegistry();
    TemplateContextType templateContextType = templateContextRegistry
        .getContextType(getTemplateContextTypeId());
    String name = templateContextType.getName();
    return NLS
        .bind(PHPUIMessages.newPhpFile_wizard_templatePage_phpTemplatesLocation,
            name);
View Full Code Here

  }

  @Override
  protected TemplateContextType getContextType(ITextViewer viewer,
      IRegion region) {
    ContextTypeRegistry registry = getTemplateContextRegistry();
    if (registry != null) {
      return registry.getContextType(contextTypeId);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.templates.ContextTypeRegistry

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.