Example #1
0
 /** @see ISourceReference */
 public String getSource() throws JavaModelException {
   IBuffer buffer = getBuffer();
   if (buffer == null) {
     return null;
   }
   return buffer.getContents();
 }
Example #2
0
 /** @see ISourceReference */
 public ISourceRange getSourceRange() throws JavaModelException {
   IBuffer buffer = getBuffer();
   if (buffer != null) {
     String contents = buffer.getContents();
     if (contents == null) return null;
     return new SourceRange(0, contents.length());
   } else {
     return null;
   }
 }