Package hermes.browser.dialog

Examples of hermes.browser.dialog.DestinationConfigDialog


      SwingUtilities.invokeAndWait(new Runnable()
      {
         public void run()
         {
            final DestinationConfigDialog dialog = new DestinationConfigDialog(HermesBrowser.getBrowser(), hermes.getId(), destination, config);

            dialog.pack();
            JideSwingUtilities.centerWindow(dialog);
            dialog.show();
           
            if (onOK != null)
            {
               onOK.run() ;
            }
View Full Code Here


         final HermesTreeNode hermesNode = HermesBrowser.getBrowser().getBrowserTree().getSelectedHermesNode();
         final DestinationConfig config = createDestinationConfig() ;

         config.setDomain(domain.getId());

         final DestinationConfigDialog dialog = new DestinationConfigDialog(HermesBrowser.getBrowser(), hermesNode.getHermes().getId(), null, config);

         dialog.addOKAction(new Runnable()
         {
            public void run()
            {
               try
               {
                  if (config.getName() != null)
                  {
                     HermesBrowser.getBrowser().addDestinationConfig(hermesNode.getHermes(), config);
                     HermesBrowser.getBrowser().saveConfig();                   
                  }
               }
               catch (Exception e)
               {
                  log.error(e.getMessage(), e);

                  JOptionPane.showMessageDialog(HermesBrowser.getBrowser(), e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
               }
            }
         });

         dialog.pack();
         JideSwingUtilities.centerWindow(dialog);
         dialog.show();

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

TOP

Related Classes of hermes.browser.dialog.DestinationConfigDialog

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.