Package com.k42b3.zubat

Examples of com.k42b3.zubat.MenuPanel


          {
            ConnectPanel win = new ConnectPanel(inst);

            win.pack();

            win.setCallback(new ConnectCallback(){

              public void onConnect(String host, String db, String user, String pw) throws Exception
              {
                doConnect(host, db, user, pw);
              }
View Full Code Here


    this.setTitle("Generate");

    this.setLayout(new BorderLayout());


    this.tm = new FileTemplate();

    JScrollPane scrTable = new JScrollPane(new JTable(this.tm));
   
    scrTable.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));   
   
View Full Code Here


    // columns
    this.table = new JTable();

    this.tm = new SqlTable(inst);

    this.table.setModel(this.tm);

    this.table.setEnabled(false);
   
View Full Code Here

  public void insert() throws Exception
  {
    Resource leftResource = Resource.getResourceById(this.getLeftResourceId());
    Resource rightResource = Resource.getResourceById(this.getRightResourceId());

    HandlerAbstract handlerLeft = HandlerFactory.factory(leftResource, this.getLeftPath());
    HandlerAbstract handlerRight = HandlerFactory.factory(rightResource, this.getRightPath());

    // build map
    FileMap.generate(handlerRight);

View Full Code Here

    {
      LsEntry entry = (LsEntry) list.get(i);

      if(entry.getAttrs().isDir())
      {
        items[i] = new Item(entry.getFilename(), Item.DIRECTORY);
      }
      else
      {
        byte[] content = this.getContent(path + "/" + entry.getFilename());
        String md5 = DigestUtils.md5Hex(Kadabra.normalizeContent(content));

        items[i] = new Item(entry.getFilename(), Item.FILE, md5);
      }
    }

    return items;
  }
View Full Code Here

    for(int i = 0; i < files.length; i++)
    {
      if(files[i].isDirectory())
      {
        items[i] = new Item(files[i].getName(), Item.DIRECTORY);
      }

      if(files[i].isFile())
      {
        byte[] content = this.getContent(path + "/" + files[i].getName());
        String md5 = DigestUtils.md5Hex(Kadabra.normalizeContent(content));

        items[i] = new Item(files[i].getName(), Item.FILE, md5);
      }
    }

    logger.info("Found " + items.length + " files");
View Full Code Here

    for(int i = 0; i < files.length; i++)
    {
      if(files[i].isDirectory())
      {
        items[i] = new Item(files[i].getName(), Item.DIRECTORY);
      }

      if(files[i].isFile())
      {
        byte[] content = this.getContent(path + "/" + files[i].getName());
        String md5 = DigestUtils.md5Hex(Kadabra.normalizeContent(content));

        items[i] = new Item(files[i].getName(), Item.FILE, md5);
      }
    }

    logger.info("Found " + items.length + " files");
View Full Code Here

  public void addExclude(int projectId, String pattern)
  {
    try
    {
      Exclude exclude = new Exclude();

      exclude.setProjectId(projectId);
      exclude.setPattern(pattern);

      exclude.insert();

      console.printf("Add exclude successful%n");
    }
    catch(Exception e)
    {
View Full Code Here

  public void deleteExclude(int excludeId)
  {
    try
    {
      Exclude exclude = Exclude.getExcludeById(excludeId);

      exclude.delete();

      console.printf("Delete exclude " + excludeId + " successful%n");
    }
    catch(Exception e)
    {
View Full Code Here

  {
    try
    {
      this.log = new ArrayList<String>();

      Project project = Project.getProjectById(projectId);

      project.getRightHandler().loadMap();

      this.mirrorFolder(project, true, "");

      console.printf("Found " + this.log.size() + " changes%n");

      project.close();
    }
    catch(Exception e)
    {
      handleException(e);
    }
View Full Code Here

TOP

Related Classes of com.k42b3.zubat.MenuPanel

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.