Exemplo n.º 1
0
 /**
  * Returns this plug-in's template store.
  *
  * @return the template store of this plug-in instance
  */
 public TemplateStore getTemplateStore() {
   if (fStore == null) {
     fStore =
         new ContributionTemplateStore(
             getContextTypeRegistry(),
             PhingUi.getDefault().getPreferenceStore(),
             CUSTOM_TEMPLATES_KEY);
     try {
       fStore.load();
     } catch (IOException e) {
       PhingUi.log(e);
     }
   }
   return fStore;
 }