@Override
public void apply(ICompletionReporter reporter) throws Exception
{
TestContext ctx = (TestContext) getContext();
IScriptProject project = ctx.getSourceModule().getScriptProject();
Test[] tests = TwigModelAccess.getDefault().getTests(project);
SourceRange range = getReplacementRange(ctx);
String prefix = ctx.getPrefix();
for (Test test : tests) {
if (CodeAssistUtils.startsWithIgnoreCase(test.getElementName(),
prefix)) {
test.setScriptProject(project);