Package hermes.browser.model.tree

Examples of hermes.browser.model.tree.NamingConfigTreeNode


        return doBytesMessageTransfer((Collection<byte[]>) t.getTransferData(MessagesTransferable.BYTE_FLAVOR));

      }
      if (t.isDataFlavorSupported(HermesAdministeredObjectTransferable.FLAVOR)) {
        if (getSelectionPath().getLastPathComponent() instanceof NamingConfigTreeNode) {
          final NamingConfigTreeNode namingConfigTreeNode = (NamingConfigTreeNode) getSelectionPath().getLastPathComponent();
          final Collection objects = (Collection) t.getTransferData(HermesAdministeredObjectTransferable.FLAVOR);
          final JNDIContextFactory contextFactory = new JNDIContextFactory(namingConfigTreeNode.getConfig());
          final BindToolDialog bindTool = new BindToolDialog(HermesBrowser.getBrowser(), contextFactory, "", objects);

          bindTool.pack();
          JideSwingUtilities.centerWindow(bindTool);
          bindTool.show();
View Full Code Here


        }
      }

      if (component instanceof NamingConfigTreeNode) {
        try {
          NamingConfigTreeNode nNode = (NamingConfigTreeNode) component;

          return nNode.getToolTipText();
        } catch (Exception ex) {
          log.error(ex.getMessage(), ex);
        }
      }
View Full Code Here

  public void actionPerformed(TreePath selectionPath) {

    if (selectionPath != null) {
      try {
        if (selectionPath.getLastPathComponent() instanceof NamingConfigTreeNode) {
          final NamingConfigTreeNode node = (NamingConfigTreeNode) selectionPath.getLastPathComponent();

          HermesBrowser.getBrowser().getActionFactory().createBrowseContextAction(node.getConfig());
         
        } else if (selectionPath.getLastPathComponent() instanceof DestinationConfigTreeNode) {
          final DestinationConfigTreeNode destinationNode = (DestinationConfigTreeNode) selectionPath.getLastPathComponent();
          final Hermes hermes = ((HermesTreeNode) destinationNode.getHermesTreeNode()).getHermes();
          final QueueBrowseAction qBrowser = HermesBrowser.getBrowser().getOpenQueueBrowser(destinationNode.getConfig()) ;
          if (qBrowser != null) {
            qBrowser.refresh() ;
          } else {
            HermesBrowser.getBrowser().getActionFactory().createQueueBrowseAction(hermes, destinationNode.getConfig());
          }
        } else if (selectionPath.getLastPathComponent() instanceof RepositoryTreeNode) {
          final RepositoryTreeNode repNode = (RepositoryTreeNode) selectionPath.getLastPathComponent();
          final Hermes hermes = HermesBrowser.getBrowser().getBrowserTree().getHermesAsMessageFactory();

          HermesBrowser.getBrowser().getActionFactory().createRepositoryBrowseAction(repNode.getRepository(), hermes);

        } else if (selectionPath.getLastPathComponent() instanceof MessageStoreTreeNode) {
          final MessageStoreTreeNode node = (MessageStoreTreeNode) selectionPath.getLastPathComponent();
          final Hermes hermes = HermesBrowser.getBrowser().getBrowserTree().getHermesAsMessageFactory();

          HermesBrowser.getBrowser().getActionFactory().createMessageStoreBrowseAction(node.getMessageStore(), hermes, null);

        } else if (selectionPath.getLastPathComponent() instanceof MessageStoreQueueTreeNode) {
          final MessageStoreQueueTreeNode queueNode = (MessageStoreQueueTreeNode) selectionPath.getLastPathComponent();

          if (queueNode.getParent() instanceof MessageStoreTreeNode) {
View Full Code Here

               JideSwingUtilities.centerWindow(dialog);
               dialog.setVisible(true) ;
            }
            else if (component instanceof NamingConfigTreeNode)
            {
               final NamingConfigTreeNode namingNode = (NamingConfigTreeNode) component;
               final EditNamingConfigDialog dialog = new EditNamingConfigDialog(HermesBrowser.getBrowser(), namingNode.getId(), HermesBrowser.getBrowser()
                     .getConfig().getNaming());

               dialog.pack();
               JideSwingUtilities.centerWindow(dialog);
               dialog.setVisible(true) ;
View Full Code Here

      }
   }

   public void onNamingAdded(NamingConfig namingConfig)
   {
      final NamingConfigTreeNode node = new NamingConfigTreeNode(namingConfig);

      namingNodeById.put(namingConfig.getId(), node);
      ctxRootNode.add(node);

      SwingUtilities.invokeLater(new Runnable()
View Full Code Here

      });
   }

   public void onNamingRemoved(NamingConfig namingConfig)
   {
      final NamingConfigTreeNode node = (NamingConfigTreeNode) namingNodeById.get(namingConfig.getId());

      if (node != null)
      {
         final int index = ctxRootNode.getIndex(node);
View Full Code Here

TOP

Related Classes of hermes.browser.model.tree.NamingConfigTreeNode

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.