Package hermes.browser.model.tree

Examples of hermes.browser.model.tree.ContextTreeModel


   public boolean doImport(Transferable t)
   {
      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);
View Full Code Here


      }
   }

   protected String getAbsoluteBinding(TreeNode leaf)
   {
      final ContextTreeModel model = (ContextTreeModel) getModel();
      final TreeNode[] path = (TreeNode[]) model.getPathToRoot(leaf);
      final StringBuffer rval = new StringBuffer();

      for (int i = 1; i < path.length; i++)
      {
         AbstractTreeNode node = (AbstractTreeNode) path[i];
View Full Code Here

     *
     * @see hermes.browser.tasks.Task#run()
     */
    public void invoke() throws Exception
    {
        final ContextTreeModel model = ContextTreeModelFactory.create(namingConfig);

        SwingUtilities.invokeAndWait(new Runnable()
        {
            public void run()
            {
View Full Code Here

       LoaderSupport.populateBean(contextBean, namingConfig.getProperties()) ;
      
       Context rootContext = contextBean.createContext() ;
      
       ContextTreeNode rootNode = new ContextTreeNode(namingConfig.getId(), namingConfig, rootContext) ;
       ContextTreeModel model = new ContextTreeModel(contextBean, rootNode) ;
      
       Hermes.ui.getDefaultMessageSink().add("Finished searching InitialContext "+ namingConfig.getId()) ;
     
       return model ;
   }
View Full Code Here

TOP

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

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.