PyCreateClass pyCreateClass = new PyCreateClass();
String source = "MyClass(aa, bb, MyFoo())";
IDocument document = new Document(source);
ITextSelection selection = new TextSelection(document, 0, 0);
RefactoringInfo info = new RefactoringInfo(document, selection, new IGrammarVersionProvider() {
public int getGrammarVersion() throws MisconfigurationException {
return IGrammarVersionProvider.GRAMMAR_PYTHON_VERSION_2_7;
}
});