Package org.eclipse.wst.xml.core.internal.provisional.document

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument


      model = StructuredModelManager.getModelManager().getModelForRead(file);

      if (model == null) {
        return null;
      }
      IDOMDocument document = ((DOMModelImpl) model).getDocument();
      MultiTextEdit multiEdit = new MultiTextEdit();
      NodeList nodes = document.getElementsByTagNameNS(descriptor.getElementNamespaceURI(), descriptor.getElementName());
      for (int i = 0; i < nodes.getLength(); i++) {
        TextEdit edit = createRenameBeanIdTextEdit(nodes.item(i), oldBeanId, newBeanId);
        if (edit != null) {
          multiEdit.addChild(edit);
        }
View Full Code Here


      if (model == null) {
        return null;
      }
     
      IDOMDocument document = ((DOMModelImpl) model).getDocument();
      MultiTextEdit multiEdit = new MultiTextEdit();
      NodeList nodes = document.getDocumentElement().getChildNodes();
      for (int i = 0; i < nodes.getLength(); i++) {
        createRenameBeanRefsTextEdit(nodes.item(i), descriptor, oldBeanId, newBeanId, multiEdit);
      }
     
      if (multiEdit.hasChildren()) {
View Full Code Here

      model = StructuredModelManager.getModelManager().getModelForRead(file);

      if (model == null) {
        return null;
      }
      IDOMDocument document = ((DOMModelImpl) model).getDocument();
      MultiTextEdit multiEdit = new MultiTextEdit();
      NodeList nodes = document.getChildNodes();
      for (int j = 0; j < affectedElements.length; j++) {

        IJavaElement je = affectedElements[j];

        // check that the element we are about to change is on the file's classpath
View Full Code Here

    text.setEditable(true);
    text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));

    XmlBackedContentProposalProvider proposalProvider = null;

    IDOMDocument originalDocument = wizard.getOriginalDocument();
    IFile beanFile = wizard.getBeanFile();
    if (attributeName.equals(BeansSchemaConstants.ATTR_REF)) {
      proposalProvider = new WizardBeanReferenceContentProposalProvider(element, attributeName, beanFile,
          originalDocument);
    }
View Full Code Here

    text.setEditable(true);
    text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));

    XmlBackedContentProposalProvider proposalProvider = null;

    IDOMDocument originalDocument = wizard.getOriginalDocument();
    IFile beanFile = wizard.getBeanFile();
    if (attributeName.equals(BeansSchemaConstants.ATTR_REF)) {
      proposalProvider = new WizardPropertyBeanReferenceContentProposalProvider(element, attributeName, beanFile,
          originalDocument);
    }
View Full Code Here

    super.setUp();
    project = createPredefinedProject("Test");

    file = (IFile) project.findMember(name);
    model = (DOMModelImpl) StructuredModelManager.getModelManager().getModelForRead(file);
    IDOMDocument domDocument = model.getDocument();
    beansNode = domDocument.getDocumentElement();

    document = model.getStructuredDocument();

    ((BeansModel) BeansCorePlugin.getModel()).start();
    IBeansProject springProject = BeansCorePlugin.getModel().getProject(project);
View Full Code Here

          model = StructuredModelManager.getModelManager()
              .getModelForRead(file);

        }
        if (model != null) {
          IDOMDocument document = ((DOMModelImpl) model)
              .getDocument();
          rootElement = new WebflowState(WebflowModelUtils
              .getWebflowConfig(file));
          rootElement.init((IDOMNode) document.getDocumentElement(),
              null);
        }
      }
      catch (Exception e) {
        if (model != null) {
View Full Code Here

        model = StructuredModelManager.getModelManager()
            .getModelForRead(file);

      }
      if (model != null) {
        IDOMDocument document = ((DOMModelImpl) model).getDocument();
        IWebflowState webflowState = new WebflowState(WebflowModelUtils
            .getWebflowConfig(file));
        webflowState.init((IDOMNode) document.getDocumentElement(),
            null);
        return webflowState;
      }
    }
    catch (Exception e) {
View Full Code Here

        model = StructuredModelManager.getModelManager().getModelForRead(
            (IFile) getRootElement().getElementResource());

      }
      if (model != null) {
        IDOMDocument document = ((DOMModelImpl) model).getDocument();
        NamedNodeMap attributes = document.getDocumentElement().getAttributes();
        IDOMAttr schemaLocationNode = (IDOMAttr) attributes.getNamedItemNS(
            "http://www.w3.org/2001/XMLSchema-instance", "schemaLocation");
        String content = schemaLocationNode.getValue();
        isVersion1 = content.contains("spring-webflow-1");
      }
View Full Code Here

        if (model == null) {
          model = StructuredModelManager.getModelManager().getModelForRead(
              (IFile) parentConfig.getElementResource());
        }
        if (model != null) {
          IDOMDocument document = ((DOMModelImpl) model).getDocument();
          IWebflowState parentState = new WebflowState(parentConfig);
          parentState.init((IDOMNode) document.getDocumentElement(), null);

          state = WebflowModelXmlUtils.getStateById(parentState, parentStateId);
        }
      }
      catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument

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.