Examples of removeChild()


Examples of org.eclipse.wb.core.model.JavaInfo.removeChild()

        for (Iterator<JavaInfo> I = components.iterator(); I.hasNext();) {
          JavaInfo javaInfo = I.next();
          if (javaInfo instanceof RootPanelInfo) {
            I.remove();
            // break parent/child association
            javaInfo.removeChild(m_this);
            m_this.setParent(null);
          }
        }
      }
    });
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement.removeChild()

      IDOMElement parentNode;

      if (existingBean != null) {
        nextSibling = existingBean.getNextSibling();
        parentNode = (IDOMElement) existingBean.getParentNode();
        parentNode.removeChild(existingBean);
      }
      else {
        parentNode = (IDOMElement) document.getDocumentElement();
      }
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElement.removeChild()

    void remove(final IResource rsrc) {
        final IErlElement element = findElement(rsrc);
        if (element != null) {
            final IErlElement p = element.getParent();
            p.removeChild(element);
            final IErlElement ErlElement = element;
            try {
                ErlElement.close();
            } catch (final ErlModelException e) {
                ErlLogger.error(e);
View Full Code Here

Examples of org.exist.dom.NodeImpl.removeChild()

                if (parent == null || parent.getNodeType() != Node.ELEMENT_NODE) {
          throw new EXistException(
              "you cannot remove the document element. Use update "
                  + "instead");
        } else
          {parent.removeChild(transaction, node);}
        doc.getMetadata().clearIndexListener();
        doc.getMetadata().setLastModified(System.currentTimeMillis());
        modifiedDocuments.add(doc);
        broker.storeXMLResource(transaction, doc);
        notifier.notifyUpdate(doc, UpdateListener.UPDATE);
View Full Code Here

Examples of org.exoplatform.navigation.webui.TreeNode.removeChild()

                UIApplication uiApp = pcontext.getUIApplication();
                uiApp.addMessage(new ApplicationMessage("UINavigationNodeSelector.msg.systemnode-delete", null));
                return;
            }
            uiNodeSelector.getUserNodeLabels().remove(childNode.getId());
            parentNode.removeChild(childNode);
            uiNodeSelector.selectNode(parentNode);
        }
    }

    public TreeNode getSelectedNode() {
View Full Code Here

Examples of org.exoplatform.portal.mop.user.UserNode.removeChild()

            }

            for (UserNode userNode : rootNode.getChildren()) {
                if (page.getKey().equals(userNode.getPageRef())) {
                    // Remove pageNode
                    rootNode.removeChild(userNode.getName());
                    userPortal.saveNode(rootNode, null);

                    // Update navigation and UserToolbarGroupPortlet

                    String pageRef = page.getKey().format();
View Full Code Here

Examples of org.freeplane.plugin.workspace.model.AWorkspaceTreeNode.removeChild()

   * @param node
   */
  public void removeNodeFromParent(AWorkspaceTreeNode node) {
    this.hashStringKeyIndex.remove(node.getKey());
    AWorkspaceTreeNode parent = node.getParent();
    parent.removeChild(node);
    node.disassociateReferences();
    fireTreeNodesRemoved(this, parent.getTreePath(), null, new Object[] { node });
  }

  /**
 
View Full Code Here

Examples of org.fusesource.ide.camel.model.RouteContainer.removeChild()

  protected void doExecute() {
    if (selectedRoute != null) {
      boolean deleteIt = MessageDialog.openQuestion(Display.getCurrent().getActiveShell(), EditorMessages.deleteRouteCommandLabel, EditorMessages.deleteRouteCommandDescription);
      if (deleteIt) {
        RouteContainer model = designEditor.getModel();
        model.removeChild(selectedRoute);
        RouteSupport newRoute = null;
        if (model.getChildren().size()<1) {
          // no more routes - create one
          designEditor.addNewRoute();
        }
View Full Code Here

Examples of org.gatein.api.navigation.Node.removeChild()

    @ManagedOperation(name = OperationNames.REMOVE_RESOURCE, description = "Removes the navigation node")
    public void removeNode(@MappedPath("path") String path) {
        Node node = getNode(path, true);

        Node parent = node.getParent();
        parent.removeChild(node.getName());
        navigation.saveNode(parent);
    }

    @Managed("{path: .*}")
    @ManagedRole("administrators")
View Full Code Here

Examples of org.glassfish.flashlight.datatree.TreeNode.removeChild()

                    TreeNode parentNode = nodeList.get(0);
                    //Remove each of the child nodes
                    Collection<TreeNode> childNodes = parentNode.getChildNodes();
                    for (TreeNode childNode : childNodes) {
                        if (childNodeNames.contains(childNode.getName())) {
                            parentNode.removeChild(childNode);
                        }
                    }
                    if (!parentNode.hasChildNodes())
                        removeParentNode(parentNode);
                }
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.