예제 #1
0
 /** @see ISourceReference */
 public String getSource() throws JavaModelException {
   IBuffer buffer = getBuffer();
   if (buffer == null) {
     return null;
   }
   return buffer.getContents();
 }
예제 #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;
   }
 }