Package org.eclipse.php.internal.ui.viewsupport

Examples of org.eclipse.php.internal.ui.viewsupport.ProjectTemplateStore


  public PHPCodeTemplateBlock(IStatusChangeListener context,
      IProject project, IWorkbenchPreferenceContainer container) {
    super(context, project, getAllKeys(), container);

    fTemplateStore = new ProjectTemplateStore(project);
    try {
      fTemplateStore.load();
    } catch (IOException e) {
      PHPUiPlugin.log(e);
    }
View Full Code Here


  @Override
  protected ProjectTemplateStore getTemplateStore() {

    IProject project = getProject();

    ProjectTemplateStore templateStore;
    if (ProjectTemplateStore.hasProjectSpecificTempates(project)) {
      templateStore = new ProjectTemplateStore(project);
    } else {
      templateStore = new ProjectTemplateStore(null);
    }

    try {
      templateStore.load();
    } catch (IOException e) {
      // Ignore the error.
    }
    return templateStore;
View Full Code Here

  private static Template getCodeTemplate(String id, IScriptProject sp) {
    if (sp == null)
      return PHPUiPlugin.getDefault().getCodeTemplateStore()
          .findTemplateById(id);
    ProjectTemplateStore projectStore = new ProjectTemplateStore(
        sp.getProject());
    try {
      projectStore.load();
    } catch (IOException e) {
      PHPUiPlugin.log(e);
    }
    return projectStore.findTemplateById(id);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.viewsupport.ProjectTemplateStore

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.