Package org.eclipse.wst.sse.core.internal.provisional

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.releaseFromRead()


              .getFile(new Path(location));
        }
      }
    } finally {
      if (structuredModel != null) {
        structuredModel.releaseFromRead();
      }
    }
    return file;
  }
 
View Full Code Here


      xmlModel = StructuredModelManager.getModelManager().getExistingModelForRead(getDocument());
      mq = ModelQueryUtil.getModelQuery(xmlModel);
    }
    finally {
      if (xmlModel != null) {
        xmlModel.releaseFromRead();
      }
    }
    return mq;
  }
View Full Code Here

        xmlNode = (IDOMNode) xmlModel.getIndexedRegion(offset);
      }
    }
    finally {
      if (xmlModel != null)
        xmlModel.releaseFromRead();
    }
    return xmlNode;
  }
}
View Full Code Here

    }

    if (model instanceof IDOMModel)
      return (IDOMModel) model;
    if (model != null)
      model.releaseFromRead();
    return null;
  }

  /**
   * @deprecated use computeStartEndLocation(int startOffset, String
View Full Code Here

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

                documentPosition, 0, null);
            addEmptyDocumentProposals(contentAssistRequest, context);
          }
        } finally {
          if (sModel != null) {
            sModel.releaseFromRead();
          }
        }
        if (contentAssistRequest == null) {
          Logger.logException(new IllegalStateException(
              "problem getting model")); //$NON-NLS-1$
View Full Code Here

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

        if (model != null) {
          baselocation = model.getBaseLocation();
        }
      } finally {
        if (model != null){
          model.releaseFromRead();
        }
      }
    }

    if (baselocation != null) {
View Full Code Here

      }
    } catch (Exception e) {
      ClickPlugin.log(e);
    } finally {
      if (null != model){
        model.releaseFromRead();
      }
    }
  }
 
  /**
 
View Full Code Here

                if (models == null) {
                  models = new ArrayList<IStructuredModel>();
                }
                models.add(model);
              } else {
                model.releaseFromRead();
              }
            }
          } catch(IOException ioe) {
            log.error("Warning.DefaultDTSkin.FailureLoadingStyleSheet", name, currentURL.toExternalForm(), ioe); //$NON-NLS-1$
          } finally {
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.