Package org.eclipse.jface.text.templates.persistence

Examples of org.eclipse.jface.text.templates.persistence.TemplatePersistenceData


  }

  public void setProjectSpecific(String id, boolean projectSpecific) {
    Assert.isNotNull(fProjectStore);

    TemplatePersistenceData data = fProjectStore.getTemplateData(id);
    if (data == null) {
      return; // does not exist
    } else {
      data.setDeleted(!projectSpecific);
    }
  }
View Full Code Here


   */
  public static void setCodeTemplate(String templateId, String pattern,
      IScriptProject project) {
    TemplateStore codeTemplateStore = PHPUiPlugin.getDefault()
        .getCodeTemplateStore();
    TemplatePersistenceData data = codeTemplateStore
        .getTemplateData(templateId);
    Template orig = data.getTemplate();
    Template copy = new Template(orig.getName(), orig.getDescription(),
        orig.getContextTypeId(), pattern, true);
    data.setTemplate(copy);
  }
View Full Code Here

        datas.add(data[i].getId());
      }

      data = fInstanceStore.getTemplateData(false);
      for (int i = 0; i < data.length; i++) {
        TemplatePersistenceData orig = data[i];
        if (!datas.contains(orig.getId())) {
          TemplatePersistenceData copy = new TemplatePersistenceData(
              new Template(orig.getTemplate()), orig.isEnabled(),
              orig.getId());
          fProjectStore.add(copy);
          copy.setDeleted(true);
        }
      }
    }
  }
View Full Code Here

  }

  public void setProjectSpecific(String id, boolean projectSpecific) {
    Assert.isNotNull(fProjectStore);

    TemplatePersistenceData data = fProjectStore.getTemplateData(id);
    if (data == null) {
      return; // does not exist
    } else {
      data.setDeleted(!projectSpecific);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.templates.persistence.TemplatePersistenceData

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.