// fPairs = pairs;
this.editor = editor;
}
private PairBlock[] computePairRanges(final int offset, String contents) {
ISourceParser pp = null;
pp = DLTKLanguageManager.getSourceParser(RutaNature.NATURE_ID);
ModuleDeclaration md = null;// pp.parse(null, contents.toCharArray(),
// null);
IModelElement el = this.editor.getInputModelElement();
if (el != null && el instanceof ISourceModule) {
md = SourceParserUtil.getModuleDeclaration((ISourceModule) el, null);
}
if (md == null) {
md = (ModuleDeclaration) pp.parse(new ModuleSource(contents), null);
}
if (md == null) {
return new PairBlock[0];
}
final List result = new ArrayList();