Package hermes.browser.actions

Examples of hermes.browser.actions.BrowseContextAction


     // NOP
   }

   public void actionPerformed(ActionEvent e)
   {
      final BrowseContextAction browseContext = (BrowseContextAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
      browseContext.update();
   }
View Full Code Here


     return path != null && path.getLastPathComponent() instanceof ConnectionFactoryTreeNode ;
   }

   public void actionPerformed(ActionEvent e)
   {
      final BrowseContextAction browseContext = (BrowseContextAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
      HermesBrowser.getBrowser().getBrowserTree().doTransfer(
            new JMSAdministeredObjectTransferable(new HermesConfigGroup(null, browseContext.getContextTree().getSelectedDestinations(), browseContext.getContextTree().getSelectedConnectionFactories())), TransferHandler.COPY);
   }
View Full Code Here

   public void actionPerformed(ActionEvent e)
   {
      try
      {
         final BrowseContextAction browseContext = (BrowseContextAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
         final ContextTreeNode node = (ContextTreeNode) browseContext.getContextTree().getSelectionPath().getLastPathComponent();
         final String binding = JOptionPane.showInputDialog(HermesBrowser.getBrowser(), "Enter Binding", "");

         if (binding != null && !binding.equals(""))
         {
            final Context context = node.getContextFactory().createContext();
View Full Code Here

   public void documentComponentActivated(DocumentComponentEvent event)
   {
      if (event.getDocumentComponent() instanceof BrowseContextAction)
      {
         final BrowseContextAction browseContext = (BrowseContextAction) event.getDocumentComponent();
         setEnabled(checkEnabled(browseContext.getContextTree().getSelectionPath()));

         addListener(event);
      }
      else
      {
View Full Code Here

   private void addListener(DocumentComponentEvent event)
   {
      if (event.getDocumentComponent() instanceof BrowseContextAction)
      {
         final BrowseContextAction browseContext = (BrowseContextAction) event.getDocumentComponent();

         browseContext.getContextTree().addTreeSelectionListener(this);
      }
   }
View Full Code Here

   private void removeListener(DocumentComponentEvent event)
   {
      if (event.getDocumentComponent() instanceof BrowseContextAction)
      {
         final BrowseContextAction browseContext = (BrowseContextAction) event.getDocumentComponent();

         browseContext.getContextTree().removeTreeSelectionListener(this);
      }
   }
View Full Code Here

         action.refresh();
      }
      else if (HermesBrowser.getBrowser().getDocumentPane().getActiveDocument() instanceof BrowseContextAction)
      {
         final BrowseContextAction action = (BrowseContextAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument() ;
                
         action.update() ;
      }
   }
View Full Code Here

   public void actionPerformed(ActionEvent e)
   {
      try
      {
         final BrowseContextAction browseContext = (BrowseContextAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
         final AbstractTreeNode node = (AbstractTreeNode) browseContext.getContextTree().getSelectionPath().getLastPathComponent();
         final String binding = JOptionPane.showInputDialog(HermesBrowser.getBrowser(), "Enter Binding", "");

         if (binding != null && !binding.equals(""))
         {
            if (node.getParent() instanceof ContextTreeNode)
View Full Code Here

   public void actionPerformed(ActionEvent e)
   {
      try
      {
         final BrowseContextAction browseContext = (BrowseContextAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
         final Set<AbstractTreeNode> treeNodes = new HashSet<AbstractTreeNode>();

         if (browseContext.getContextTree().getSelectionPaths() != null)
         {
            for (final TreePath treePath : browseContext.getContextTree().getSelectionPaths())
            {
               if (treePath.getLastPathComponent() instanceof AbstractTreeNode)
               {
                  treeNodes.add((AbstractTreeNode) treePath.getLastPathComponent());
               }
View Full Code Here

TOP

Related Classes of hermes.browser.actions.BrowseContextAction

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.