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

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel.releaseFromRead()


      }


      finally {
        if (xmlModel != null) {
          xmlModel.releaseFromRead();
        }
      }
    }
  }
View Full Code Here


    } finally {
      if (pushedPageVarProvider) {
        PageExpressionContext.getCurrent().popPageVarProvider(provider);
      }
      if (xmlModel != null) {
        xmlModel.releaseFromRead();
      }
    }
    return null;
  }
View Full Code Here

      IDOMModel model = (IDOMModel) manager.getModelForRead(id, stream,
          null);
      Element root = model.getDocument().getDocumentElement();
      Element resultEle = (Element) DOMUtil.cloneNodeDeepIgnoreError(
          getDestDocument(), root);
      model.releaseFromRead();
      return resultEle;
    } catch (Exception ex) {
      _log.error("Log.Error.HTMLStringTagConverter.Error", ex); //$NON-NLS-1$
      Element temp = createElement("div"); //$NON-NLS-1$
      temp.appendChild(createText("Error loading: " + ex.getMessage())); //$NON-NLS-1$
View Full Code Here

    } finally {
      ResourceUtils.ensureClosed(in);
     
      if (tldModel != null)
      {
          tldModel.releaseFromRead();
      }
    }

    return null;
  }
View Full Code Here

                    + IFileFolderConstants.PATH_SEPARATOR
                    + WebrootUtil
                        .getWebContentFolderName(_project)
                    + taglocation;
            }
            xmlModel.releaseFromRead();
          } catch (IOException e) {

            // Error in taglib locating.
            _log.error(
                "Error.ProjectResolver.GetlocationByURI.0", e); //$NON-NLS-1$
View Full Code Here

        if (translationAdapter != null)
          fTranslation = translationAdapter.getJSPTranslation();
      }
      finally {
        if (xmlModel != null) {
          xmlModel.releaseFromRead();
        }
      }
    }

    return fTranslation;
View Full Code Here

        }
        catch (CoreException e2) {
        }
        finally {
          if (domModel != null) {
            domModel.releaseFromRead();
          }
        }
      }
    }
  }
View Full Code Here

        }
      }
    }
    finally {
      if (xmlModel != null)
        xmlModel.releaseFromRead();
    }
    return translation;
  }

  /**
 
View Full Code Here

      exc.printStackTrace();
      // throw out exceptions on code assist.
    }
    finally {
      if (xmlModel != null) {
        xmlModel.releaseFromRead();
      }
    }
    ICompletionProposal[] results = new ICompletionProposal[0];
    if(collector != null) {
      results = collector.getJSPCompletionProposals();
View Full Code Here

        }
      }
    }
    finally {
      if (xmlModel != null)
        xmlModel.releaseFromRead();
    }
    return translation;
  }

  /**
 
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.