Package org.jayasoft.woj.tools.dlbuilder.xmldescriptor.model

Examples of org.jayasoft.woj.tools.dlbuilder.xmldescriptor.model.XmlModule


            }
          }
        }
      }
      private void handleElement(XmlElement element) {
        XmlModule module;
          try {
            if (element instanceof XmlModule) {
              module = (XmlModule) element;
              _genericDownloader.clearDownloadList();
              _genericDownloader.enqueueDownload(module.getOrganisation(), module);
              _administrationConsole.setDownloadlist(_genericDownloader.getDownloadsList());
            }
          } catch (Exception e) {
            _administrationConsole.setErrorOcurred(e);
            e.printStackTrace();
View Full Code Here


  @Override
  public void refresh() {
    while (_model.getRowCount() != 0) {
      _model.removeRow(0);
    }
    XmlModule xmlMod = (XmlModule) getObjectShown();
    _model.addRow(new Object[] {"Name", xmlMod.getName()});
    _model.addRow(new Object[] {"Evicted prefix", xmlMod.getEvictedRevisionPrefix()});
    _model.addRow(new Object[] {"Evicted suffix", xmlMod.getEvictedRevisionSuffix()});
  }
View Full Code Here

          // Create download description
          List<String> problems =new ArrayList<String>();
          for (Iterator iter = orgSet.getOrganisations().iterator(); iter.hasNext();) {
            XmlOrganisation org = (XmlOrganisation) iter.next();
            for (Iterator iterator = org.getModules().iterator(); iterator.hasNext();) {
              XmlModule module = (XmlModule) iterator.next();
              try {
                downloader.enqueueDownload(org, module);
              } catch (Exception ex) {
                System.err.println("error while handling "+org.getName()+"/"+module.getName() + " : " +ex.getMessage());
                problems.add(org.getName()+ "/" + module.getName());
              }
            }
          }
         
          // Handle problems log
View Full Code Here

  @Override
  protected Collection<TreeNode> loadChildren() {
    Collection<TreeNode> col = new ArrayList<TreeNode>();
    if (getUserObject() instanceof XmlModule) {
      XmlModule module = (XmlModule) getUserObject();
      Set<XmlCategory> children = module.getCategories();
      for (XmlCategory cat : children) {
        col.add(new XmlCategoryTreeNode(cat));
      }
    } else {
      XmlLoopFolder lf = (XmlLoopFolder) getUserObject();
View Full Code Here

  @Override
  protected Collection<TreeNode> loadChildren() {
    Collection<TreeNode> col = new ArrayList<TreeNode>();
    if (getUserObject() instanceof XmlModule) {
      XmlModule module = (XmlModule) getUserObject();
      Set<XmlLoopFolder> children = module.getLoopFolders();
      for (XmlLoopFolder loopFolder : children) {
        col.add(new XmlLoopFolderTreeNode(loopFolder));
      }
    } else {
      XmlLoopFolder loopFolder = (XmlLoopFolder) getUserObject();
View Full Code Here

  }

  @Override
  protected Collection<TreeNode> loadChildren() {
    Collection<TreeNode> col = new ArrayList<TreeNode>();
    XmlModule module = (XmlModule) getUserObject();
    if (! module.getCategories().isEmpty())
      col.add(new XmlCategoriesListTreeNode(module));
    if (! module.getLoopFolders().isEmpty())
      col.add(new XmlLoopFolderListTreeNode(module));
    return col;
  }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.tools.dlbuilder.xmldescriptor.model.XmlModule

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.