Examples of TreeInfo


Examples of com.google.gdt.eclipse.designer.model.widgets.TreeInfo

            "    }",
            "  }",
            "}");
    frame.refresh();
    // prepare widgets
    TreeInfo tree = (TreeInfo) frame.getChildrenWidgets().get(0);
    TreeItemInfo item_1 = tree.getItems().get(0);
    TreeItemInfo item_2 = tree.getItems().get(1);
    assertThat(item_1.getItems()).isEmpty();
    // do MOVE
    flowContainer_MOVE(item_1, item_2, null);
    assertThat(item_1.getItems()).containsOnly(item_2);
    assertEditor(
View Full Code Here

Examples of com.persistit.Management.TreeInfo

    private void updateTreeListModel(final String volumeName, final TreeInfo[] array) {
        _treeListModel.clear();
        if (array == null)
            return;
        for (int index = 0; index < array.length; index++) {
            final TreeInfo info = array[index];
            final TreeItem item = new TreeItem();
            item._volumeName = volumeName;
            item._treeName = info.getName();
            final int selectedSize = _selectedTreeListModel.size();
            boolean alreadySelected = false;
            for (int selectedIndex = 0; selectedIndex < selectedSize; selectedIndex++) {
                if (_selectedTreeListModel.getElementAt(selectedIndex).equals(item)) {
                    alreadySelected = true;
View Full Code Here

Examples of com.persistit.Management.TreeInfo

    private void updateTreeListModel(String volumeName, TreeInfo[] array) {
        _treeListModel.clear();
        if (array == null)
            return;
        for (int index = 0; index < array.length; index++) {
            TreeInfo info = array[index];
            TreeItem item = new TreeItem();
            item._volumeName = volumeName;
            item._treeName = info.getName();
            int selectedSize = _selectedTreeListModel.size();
            boolean alreadySelected = false;
            for (int selectedIndex = 0; selectedIndex < selectedSize; selectedIndex++) {
                if (_selectedTreeListModel.getElementAt(selectedIndex).equals(item)) {
                    alreadySelected = true;
View Full Code Here

Examples of com.persistit.Management.TreeInfo

    private void updateTreeListModel(final String volumeName, final TreeInfo[] array) {
        _treeListModel.clear();
        if (array == null)
            return;
        for (int index = 0; index < array.length; index++) {
            final TreeInfo info = array[index];
            final TreeItem item = new TreeItem();
            item._volumeName = volumeName;
            item._treeName = info.getName();
            final int selectedSize = _selectedTreeListModel.size();
            boolean alreadySelected = false;
            for (int selectedIndex = 0; selectedIndex < selectedSize; selectedIndex++) {
                if (_selectedTreeListModel.getElementAt(selectedIndex).equals(item)) {
                    alreadySelected = true;
View Full Code Here

Examples of org.jboss.console.manager.interfaces.TreeInfo

      this.root = new RootWrapper (this.tree);
   }
  
   public boolean refreshTree (boolean force) throws Exception
   {
      TreeInfo tmpTree = null;
     
      if (!force && this.tree != null)
      {
         // first check if that is necessary
         //
View Full Code Here

Examples of org.jboss.console.manager.interfaces.TreeInfo

   /**
    * @jmx:managed-operation
    */
   public synchronized TreeInfo getTreeForProfile (String profile)
   {
      TreeInfo currentTree = (TreeInfo)currentTrees.get(profile);

      if (currentTree == null)
      {
         HashSet resourcesToManage = new HashSet ();
         TreeInfo result = new DefaultTreeInfo ();
         ArrayList pluginsSubset = getPluginsSubsetForProfile (profile);
         HashSet resourcesAlreadyScanned = new HashSet ();

         result.setRootResources (new ManageableResource[] {bootstrapResource});

         // Bootstrap tree creation
         //
         resourcesToManage.add (bootstrapResource);

         while (resourcesToManage.size () > 0)
         {
            ManageableResource currentResource = (ManageableResource)resourcesToManage.iterator ().next ();

            // pre-clean resources environment
            //
            resourcesToManage.remove (currentResource);
            resourcesAlreadyScanned.add (currentResource);

            Iterator iter = getTreesForResource(currentResource, profile, pluginsSubset);
            while (iter.hasNext ())
            {
               TreeNode subTree = (TreeNode)iter.next ();
               result.addTreeToResource (currentResource, subTree);
               HashSet subResources = findSubResources (subTree);
               if (subResources != null && subResources.size () > 0)
               {
                  Iterator subsRes = subResources.iterator ();
                  while (subsRes.hasNext ())
                  {
                     ManageableResource subRes = (ManageableResource)subsRes.next ();
                     if (!resourcesAlreadyScanned.contains (subRes))
                        resourcesToManage.add (subRes);
                  }
               }


            }
         }

         this.treeVersion++;
         result.setTreeVersion (this.treeVersion);
         try
         {
            TreeNodeMenuEntry[] base = new TreeNodeMenuEntry[]
            {
               new SimpleTreeNodeMenuEntryImpl ("Update tree", new RefreshTreeAction (false)),
               new SimpleTreeNodeMenuEntryImpl ("Force update tree", new RefreshTreeAction (true)),
            };

            if (enableShutdown)
            {
               result.setRootMenus (new TreeNodeMenuEntry[]
                  {
                     base[0],
                     base[1],
                     new SeparatorTreeNodeMenuEntry (),
                     new SimpleTreeNodeMenuEntryImpl ("Shutdown JBoss instance",
                        new MBeanAction (new ObjectName("jboss.system:type=Server"),
                                          "shutdown", new Object[0], new String[0])
                     ),
                     new SimpleTreeNodeMenuEntryImpl ("Shutdown and Restart JBoss instance",
                        new MBeanAction (new ObjectName("jboss.system:type=Server"),
                                          "exit", new Object[] {new Integer (10)},
                                          new String[] {"int"})
                     ),
                     new SimpleTreeNodeMenuEntryImpl ("HALT and Restart JBoss instance",
                        new MBeanAction (new ObjectName("jboss.system:type=Server"),
                                          "halt", new Object[] {new Integer (10)},
                                          new String[] {"int"})
                     )
                  }
               );
            }
            else
            {
               result.setRootMenus (base);
            }

            result.setHomeAction(new HttpLinkTreeAction (this.mainLinkUrl));
            result.setIconUrl (this.mainLogoUrl);
         }
         catch (Exception bla) {}

         currentTree = result;

View Full Code Here

Examples of org.jboss.console.manager.interfaces.TreeInfo

    * Only return the tree if the actual version is bigger than the known version
    * @jmx:managed-operation
    */
   public synchronized TreeInfo getUpdateTreeForProfile (String profile, long knownVersion)
   {
      TreeInfo currentTree = (TreeInfo)currentTrees.get(profile);

      if (this.treeVersion > knownVersion || currentTree==null)
         return getTreeForProfile (profile);
      else
         return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.