Package org.cfeclipse.snippet.snipex

Examples of org.cfeclipse.snippet.snipex.Snippet


            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

//        if(lib.getDescription().matches(searchString) || lib.getName().matches(searchString)) {         
//          return true;
//        }
       
      } else {
        Snippet snip = (Snippet) element;
        if(snip.getDescription().matches(searchString) || snip.getName().matches(searchString)) {         
          return true;
        }
      }

      return false;
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

TOP

Related Classes of org.cfeclipse.snippet.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.