Search in sources :

Example 1 with ProjectTemplateStore

use of org.eclipse.jdt.internal.ui.viewsupport.ProjectTemplateStore in project mdw-designer by CenturyLinkCloud.

the class WorkspaceConfigurator method updateTemplate.

private void updateTemplate(TemplatePersistenceData data) {
    ProjectTemplateStore templateStore = new ProjectTemplateStore(null);
    TemplatePersistenceData[] dataElements = templateStore.getTemplateData();
    for (int i = 0; i < dataElements.length; i++) {
        String id = dataElements[i].getId();
        if (id != null && id.equals(data.getId())) {
            dataElements[i].setTemplate(data.getTemplate());
            break;
        }
    }
}
Also used : TemplatePersistenceData(org.eclipse.jface.text.templates.persistence.TemplatePersistenceData) ProjectTemplateStore(org.eclipse.jdt.internal.ui.viewsupport.ProjectTemplateStore)

Aggregations

ProjectTemplateStore (org.eclipse.jdt.internal.ui.viewsupport.ProjectTemplateStore)1 TemplatePersistenceData (org.eclipse.jface.text.templates.persistence.TemplatePersistenceData)1