Package hermes.browser.dialog

Examples of hermes.browser.dialog.BindToolDialog


      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();

          return true;
        }
      }
    } catch (Exception ex) {
View Full Code Here


      try
      {
         final ContextTreeModel model = (ContextTreeModel) getModel();
         final String bindingRoot = getAbsoluteBinding((TreeNode) getSelectionPath().getLastPathComponent());
         final Collection objects = (Collection) t.getTransferData(HermesAdministeredObjectTransferable.FLAVOR);
         final BindToolDialog bindTool = new BindToolDialog(HermesBrowser.getBrowser(), model.getContextFactory(), bindingRoot, objects);

         log.debug("got " + objects.size() + " objects to bind relative to " + bindingRoot);

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

         return true;
      }
      catch (Exception e)
      {
View Full Code Here

TOP

Related Classes of hermes.browser.dialog.BindToolDialog

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.