Examples of HermesTreeNode


Examples of hermes.browser.model.tree.HermesTreeNode

        {
            RowInfo row = (RowInfo) iter.next();

            if ( row.node instanceof HermesTreeNode)
            {
                HermesTreeNode treeNode = (HermesTreeNode) row.node;
                visitor.onHermes(treeNode.getHermes(), row.binding);
            }
            else if ( row.node instanceof DestinationConfigTreeNode)
            {
                DestinationConfigTreeNode treeNode = (DestinationConfigTreeNode) row.node;
                HermesTreeNode hermesNode = (HermesTreeNode) treeNode.getParent();

                visitor.onDestination(hermesNode.getHermes(), treeNode.getDestinationName(), treeNode.getDomain(), row.binding);
            }
        }
    }
View Full Code Here

Examples of hermes.browser.model.tree.HermesTreeNode

                return null;
            }
        }
        else if ( row.node instanceof HermesTreeNode)
        {
            final HermesTreeNode treeNode = (HermesTreeNode) row.node;

            switch (x)
            {
            case 0:
                return IconCache.getIcon("jms.connectionFactory");
            case 1:
                return treeNode.getHermes().getId();
            case 2:
                return row.binding;
            default:
                return null;
            }
View Full Code Here

Examples of hermes.browser.model.tree.HermesTreeNode

   public void onConnectionClosed(Hermes hermes)
   {
      if (hermesMap.containsKey(hermes.getId()))
      {
         final HermesTreeNode node = hermesMap.get(hermes.getId());
         node.setConnectionOpen(false);
      }
      else
      {
         cat.error("onConnectionClosed(), no such Hermes id=" + hermes.getId());
      }
View Full Code Here

Examples of hermes.browser.model.tree.HermesTreeNode

   public void onConnectionOpen(Hermes hermes)
   {
      if (hermesMap.containsKey(hermes.getId()))
      {
         final HermesTreeNode node = hermesMap.get(hermes.getId());
         node.setConnectionOpen(true);
      }
      else
      {
         cat.error("onConnectionOpen(), no such Hermes id=" + hermes.getId());
      }
View Full Code Here

Examples of hermes.browser.model.tree.HermesTreeNode

      {
         public void run()
         {
            if (hermesMap.containsKey(hermes.getId()))
            {
               final HermesTreeNode cfNode = (HermesTreeNode) hermesMap.get(hermes.getId());
               final DestinationConfigTreeNode dNode = new DestinationConfigTreeNode(cfNode, destinationConfig, cfNode.isCascadeNamespace());
               final DestinationConfigKeyWrapper key = new DestinationConfigKeyWrapper(hermes, destinationConfig);

               if (destinationMap.containsKey(key))
               {
                  cat.error("duplicate destination key=" + key);
               }
               else
               {
                  destinationMap.put(key, dNode);

                  if (cfNode.isCascadeNamespace())
                  {
                     try
                     {
                        if (cfNode.getHermes().getConnectionFactory() instanceof JNDIConnectionFactory)
                        {
                           TreeUtils.add(BrowserTreeModel.this, cfNode.getHermes(), destinationConfig.getName(), "/", cfNode, dNode);
                        }
                        else
                        {
                           TreeUtils.add(BrowserTreeModel.this, cfNode.getHermes(), destinationConfig.getName(), ".", cfNode, dNode);
                        }
                     }
                     catch (JMSException ex)
                     {
                        HermesBrowser.getBrowser().showErrorDialog(ex);
                     }
                  }
                  else
                  {
                     cfNode.add(dNode);
                     nodesWereInserted(cfNode, new int[] { cfNode.getIndex(dNode) });
                  }
               }
            }
         }
      });
View Full Code Here

Examples of hermes.browser.model.tree.HermesTreeNode

      {
         public void run()
         {
            if (hermesMap.containsKey(hermes.getId()))
            {
               final HermesTreeNode cfNode = (HermesTreeNode) hermesMap.get(hermes.getId());
               final DestinationConfigKeyWrapper key = new DestinationConfigKeyWrapper(hermes, destinationConfig);

               if (destinationMap.containsKey(key))
               {
                  final DestinationConfigTreeNode node = destinationMap.remove(key);

                  if (node != null)
                  {
                     if (node.getParent() == cfNode)
                     {

                        int index = cfNode.getIndex(node);
                        cfNode.remove(node);
                        nodesWereRemoved(cfNode, new int[] { index }, new Object[] { node });
                     }
                     else if (node.getParent() instanceof DestinationFragmentTreeNode)
                     {
                        AbstractTreeNode cleanup = node;
View Full Code Here

Examples of hermes.browser.model.tree.HermesTreeNode

         if (hermesMap.containsKey(hermes.getId()))
         {
            onHermesRemoved(hermes);
         }

         HermesTreeNode cfNode = new HermesTreeNode(hermes.getId(), hermes, this);
         HermesTreeNodeComparator comparator = new HermesTreeNodeComparator();

         hermesMap.put(hermes.getId(), cfNode);
         int i = 0;

         for (; i < jmsRootNode.getChildCount(); i++)
         {
            HermesTreeNode node = (HermesTreeNode) jmsRootNode.getChildAt(i);

            if (comparator.compare(cfNode, node) < 0)
            {
               break;
            }
View Full Code Here

Examples of hermes.browser.model.tree.HermesTreeNode

   {
      // cat.debug("onHermesRemoved, hermes=" + hermes);

      if (hermesMap.containsKey(hermes.getId()))
      {
         HermesTreeNode cfNode = (HermesTreeNode) hermesMap.get(hermes.getId());
         int index = jmsRootNode.getIndex(cfNode);

         if (jmsRootNode.isNodeChild(cfNode))
         {
            jmsRootNode.remove(cfNode);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.