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

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


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

  private IHyperlink createJavaElementHyperlink(IJavaProject javaProject, String elementName, IRegion region) {
View Full Code Here


          lastOffset--;
          indexedRegion = model.getIndexedRegion(lastOffset);
        }
      }
      finally {
        model.releaseFromRead();
      }
    }

    return indexedRegion;
  }
View Full Code Here

          IndexedRegion r = model.getIndexedRegion(i);
          if (r != null) {
            overlappingIndexedRegions.add(r);
          }
        }
        model.releaseFromRead();
      }

      return Arrays.asList(overlappingIndexedRegions.toArray());
    }
View Full Code Here

      model = StructuredModelManager.getModelManager().getExistingModelForRead(doc);
      mq = ModelQueryUtil.getModelQuery(model);
    }
    finally {
      if (model != null)
        model.releaseFromRead();
    }
    return mq;
  }

View Full Code Here

      // purposes.
      // Logger.logException(e);
    }
    finally {
      if (model != null)
        model.releaseFromRead();
    }
    return translation;
  }

  /**
 
View Full Code Here

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

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

            fProjectionAnnotationModel.modifyAnnotations((Annotation[])deletions.toArray(new Annotation[1]), additions, (Annotation[])modifications.toArray(new Annotation[0]));
          }
        }
      } finally {
        if(model != null) {
          model.releaseFromRead();
        }
      }
    }
  }
 
View Full Code Here

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

    }
    if (model != null) {
      if (model instanceof IDOMModel) {
        definition = TaglibHyperlinkDetector.findDefinition((IDOMModel) model, fSearchName, fSearchType);
      }
      model.releaseFromRead();
    }
    return definition;
  }
}
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.