unit.getResource().setPersistentProperty(
IDE.EDITOR_KEY, GroovyEditor.EDITOR_ID);
}
JavaEditor editor = (JavaEditor)EditorUtility.openInEditor(unit);
JavaSourceViewer viewer = (JavaSourceViewer)editor.getViewer();
JavaContentAssistInvocationContext context =
new JavaContentAssistInvocationContext(viewer, offset, editor);
IJavaCompletionProposalComputer computer =
new GroovyCompletionProposalComputer();