if (prevPartition != null) {
region = new Region(previousOffset+1, region.getOffset() - previousOffset + region.getLength() - 1);
}
VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(Plugin.getDefault().getActiveFile());
TMLScriptRegion tmlScriptRegion = TMLScriptRegion.parse(region, document, offset, versionCompliance);
System.out.println(tmlScriptRegion.toString());
return tmlScriptRegion.createProposals().toArray(new ICompletionProposal[0]);
}
catch (Exception e) {
Plugin.getDefault().logError("Unable to compute completion proposal", e);
setErrorMessage(e.getMessage());
}