Examples of detach()


Examples of org.datanucleus.state.StateManager.detach()

        StateManager sm = findStateManager(obj);
        if (sm == null)
        {
            throw new NucleusUserException(LOCALISER.msg("010007", getApiAdapter().getIdForObject(obj)));
        }
        sm.detach(state);
    }

    /**
     * Detach a copy of the passed persistent object using the provided detach state.
     * If the object is of class that is not detachable it will be detached as transient.
View Full Code Here

Examples of org.dom4j.Attribute.detach()

  public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr)
      throws DOMException {
    Attribute attribute = attribute(oldAttr);

    if (attribute != null) {
      attribute.detach();

      return DOMNodeHelper.asDOMAttr(attribute);
    } else {
      throw new DOMException(DOMException.NOT_FOUND_ERR,
          "No such attribute");
View Full Code Here

Examples of org.dom4j.Element.detach()

        }

        try {
            XMLWriter xmlWriter = new XMLWriter(fileOutputStream, OutputFormat.createPrettyPrint());
            Element rootElement = settingsNode.getElement();
            rootElement.detach();

            Document document = DocumentHelper.createDocument(rootElement);

            xmlWriter.write(document);
        } catch (Throwable t) {
View Full Code Here

Examples of org.dom4j.Node.detach()

  private static void detachNodes(String xPath, Document doc) {
    List xpathres = doc.selectNodes(xPath);
    for (Iterator iter = xpathres.iterator(); iter.hasNext();) {
      Node element = (Node) iter.next();
      element.detach();
    }
  }

  private static void addStaticsPath(Element el_in, AssessmentInstance ai) {
    Element el_staticspath = (Element) el_in.selectSingleNode(STATICS_PATH);
View Full Code Here

Examples of org.eclipse.sapphire.Element.detach()

                    {
                        final Element element = getModelElement();
                       
                        for( String dependency : JumpActionHandler.this.dependencies )
                        {
                            element.detach( listener, dependency );
                        }
                    }
                }
            }
        );
View Full Code Here

Examples of org.eclipse.sapphire.ImageService.detach()

                                @Override
                                public void dispose()
                                {
                                    if( this.imageServiceListener != null )
                                    {
                                        imageService.detach( this.imageServiceListener );
                                    }
                                }
                            };
                        }
                        else if( getColumnCount() == 1 )
View Full Code Here

Examples of org.eclipse.sapphire.MasterVersionCompatibilityService.detach()

                        @Override
                        public void dispose()
                        {
                            super.dispose();
                           
                            service.detach( this.serviceListener );

                            if( property.definition() instanceof ImpliedElementProperty )
                            {
                                property.element().detach( this.propertyListener, property.name() + "/*" );
                            }
View Full Code Here

Examples of org.eclipse.sapphire.PossibleValuesService.detach()

        (
            new Runnable()
            {
                public void run()
                {
                    possibleValuesService.detach( possibleValuesServiceListener );
                    property.detach( propertyListener );
                }
            }
        );
    }
View Full Code Here

Examples of org.eclipse.sapphire.Property.detach()

        (
            new DisposeListener()
            {
                public void widgetDisposed( final DisposeEvent event )
                {
                    property.detach( propertyChangeListener );
                }
            }
        );
       
        initialize( this.propertyEditorPresentation, control );
View Full Code Here

Examples of org.eclipse.sapphire.samples.gallery.IValuePropertyActionsGallery.detach()

            new FilteredListener<DisposeEvent>()
            {
                @Override
                protected void handleTypedEvent( final DisposeEvent event )
                {
                    gallery.detach( listener, "Entities/*" );
                    element.detach( listener, propertyName );
                }
            }
        );
    }
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.