Package org.cfeclipse.snipex

Examples of org.cfeclipse.snipex.Snippet


        } else if(inputElement instanceof SnipEx || inputElement instanceof Library) {
          Library lib = ((Library)inputElement);
          Iterator it = lib.getSnippets().iterator();
         
          while( it.hasNext() ) {
            Snippet snip = (Snippet)it.next();
            if( snip.isTemplate() ) {
              allFiles.add(snip);
            }
          }
         
        }
View Full Code Here


     
    } else {
      if(element instanceof SnipEx || element instanceof Library) {
        return CFPluginImages.get(CFPluginImages.ICON_PACKAGE_SNIPEX);
      } else if(element instanceof Snippet) {
        Snippet snip = (Snippet)element;
        if(snip.isTemplate()) {
          return CFPluginImages.get(CFPluginImages.ICON_TEMPLATE_SNIP);
        } else {
          return CFPluginImages.get(CFPluginImages.ICON_SNIP);
        }
      }
View Full Code Here

            Library lib = (Library)element;
            text.setText(lib.getName());
            preview.setText(lib.getDescription());
           
          } else if(element instanceof Snippet) {
            Snippet snip = (Snippet)element;
            text.setText(snip.getDescription());
            preview.setText(snip.getStartText()+snip.getEndText());
           
          }
        }
      }
    });
View Full Code Here

      IFile activeFile = null;
      if (iep.getEditorInput() instanceof IFileEditorInput) {
        activeFile = ((IFileEditorInput) iep.getEditorInput()).getFile();
      }
     
      Snippet snip = (Snippet)element;
      startBlock = SnipVarParser.parse(snip.getStartText(),activeFile,this.getViewSite().getShell());
      endBlock = SnipVarParser.parse(snip.getEndText(),activeFile,this.getViewSite().getShell());
    }
   
   
    if (startBlock != null && endBlock != null) {
        tmpAction.setEnclosingStrings(startBlock,endBlock);
View Full Code Here

TOP

Related Classes of org.cfeclipse.snipex.Snippet

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.