Package org.cfeclipse.snippet.snipex

Examples of org.cfeclipse.snippet.snipex.SnipEx


     
      String url = pm.getStringPref( prefKeys[i] );
      if( url.trim().length() > 0 ) {
        try {
          Object[] temp = new Object[1];
          temp[0] = new SnipEx( new URL( url ) , false);
          snipex = appendArrays(snipex, temp);
        } catch(MalformedURLException e) {
          System.err.println("Snipex URL failed:"+e);
        } catch(Exception e) {
          System.err.println("Snipex failed to load:"+e);
View Full Code Here


              e.printStackTrace(System.err);
            }
            //text.setText(snipReader.snippetFile.getName().replace(".xml",""));
            preview.setText(toPreview.toString());
          } else if(element instanceof SnipEx) {
            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());
View Full Code Here

   */
  public SnipExCategoriesContentProvider(String server, boolean fullReload) {
    this.server = server;
   
    try {
      snipexServer  = new SnipEx(new URL(server), fullReload);
    } catch (MalformedURLException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

      Library lib = (Library) firstElement;
      return lib.getID();
     
    }
    else if (firstElement instanceof SnipEx) {
      SnipEx snipEx = (SnipEx) firstElement;
      return snipEx.getID();
     
    }
    return "0";
  }
View Full Code Here

TOP

Related Classes of org.cfeclipse.snippet.snipex.SnipEx

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.