Package org.cfeclipse.snipex

Examples of org.cfeclipse.snipex.Library


                    allFiles.addAll(getFlattenedElements(childDirs[i]));
                }
            }
            //return getFlattenedElements
        } 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 {
          return ((File)parentElement).listFiles(snippetfilter);
        }
      }
    } else if(parentElement instanceof Library || parentElement instanceof SnipEx) {
      Library lib = (Library)parentElement;
      return SnipTreeView.appendArrays(lib.getLibraries().toArray(), lib.getSnippets().toArray());
    }
   
    return EMPTY_ARRAY;
  }
View Full Code Here

    if(parentElement == "root" && snipexServer != null){
      return new Object[]{snipexServer};
     
    }
    else if(parentElement instanceof Library || parentElement instanceof SnipEx) {
      Library lib = (Library)parentElement;
      return lib.getLibraries().toArray();
    }
   
   
   
    return new Object[0];
View Full Code Here

  public String getCategoryID(){
    ITreeSelection selection = (ITreeSelection)categoryTree.getSelection();
    Object firstElement = selection.getFirstElement();
   
    if (firstElement instanceof Library) {
      Library lib = (Library) firstElement;
      return lib.getID();
     
    }
    else if (firstElement instanceof SnipEx) {
      SnipEx snipEx = (SnipEx) firstElement;
      return snipEx.getID();
View Full Code Here

    ITreeSelection selection = (ITreeSelection)categoryPage.getCategoryTree().getSelection();
   
   
    Object firstElement = selection.getFirstElement();
    if (firstElement instanceof Library) {
      Library library = (Library) firstElement;
     
      //Get all the values
      String username = descriptionPage.getUserName();
      String useremail = descriptionPage.getUserEmail();
      String snippetName = descriptionPage.getSnippetName();
View Full Code Here

            SnipEx sx = (SnipEx)element;
            text.setText(sx.toString());
            preview.setText(sx.getSource().toString());
           
          } else if(element instanceof Library) {
            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

TOP

Related Classes of org.cfeclipse.snipex.Library

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.