Example #1
0
 private void createFolder(IFolder folder) {
   if (!folder.exists()) {
     IContainer parent = folder.getParent();
     if (parent instanceof IFolder) {
       createFolder((IFolder) parent);
     }
     try {
       if (!folder.exists()) {
         folder.create(true, true, new NullProgressMonitor());
       }
     } catch (CoreException e) {
       YangUIPlugin.log(e);
     }
   }
 }
 public YangEditorTemplatesPage() {
   setPreferenceStore(YangUIPlugin.getDefault().getPreferenceStore());
   setTemplateStore(YangTemplateAccess.getDefault().getTemplateStore());
   setContextTypeRegistry(YangTemplateAccess.getDefault().getContextTypeRegistry());
 }