{
completionResultSet.setHasAdditionalItems(false);
getExtLibs=false;
}
Project proj=ReplTopComponent.GetProjectFromDocument(document);
if (!getExtLibs)
{
proj=null;
CurrentList=Scenario1List;
}
else
CurrentList=Scenario1ListExtLib;
int listSize = CurrentList.size();
if (classname==null)
{
if (listSize > 0)
return CurrentList.iterator();
else
return ((Iterable)getresultsforscenario1fn.invoke(proj,jTextComponent,null,filter)).iterator();
}
else
{
gettingMethods=true;
return ((Iterable)getresultsforscenario1fn.invoke(proj,jTextComponent,Class.forName(classname),filter)).iterator();
}
} catch (Exception ex) {
//Exceptions.printStackTrace(ex);
return null;
}
}
private Iterator getResultsForScenario2(String filter)
{
try {
gettingMethods=false;
if (ctype==CompletionProvider.COMPLETION_ALL_QUERY_TYPE)
{
completionResultSet.setHasAdditionalItems(true);
getExtLibs=true;
}
else
{
completionResultSet.setHasAdditionalItems(false);
getExtLibs=false;
}
Project proj=ReplTopComponent.GetProjectFromDocument(document);
if (!getExtLibs)
{
proj=null;
CurrentList=Scenario2List;
}
else
CurrentList=Scenario2ListExtLib;
int listSize = CurrentList.size();
if (listSize > 0)
return CurrentList.iterator();
else
return ((Iterable)getresultsforscenario2fn.invoke(proj,jTextComponent,Symbol.create("clojure.core"),filter)).iterator();
} catch (Exception ex) {
//Exceptions.printStackTrace(ex);
return null;
}
}
private Iterator getResultsForScenario3(String classname,String filter)
{
try {
gettingMethods=false;
CurrentList=Scenario3List;
if (classname==null)
{
gettingMethods=true;
return ((Iterable)getresultsforscenario3fn.invoke(null,filter)).iterator();
}
else
{
gettingMethods=true;
return ((Iterable)getresultsforscenario3fn.invoke(Class.forName(classname),filter)).iterator();
}
} catch (Exception ex) {
//Exceptions.printStackTrace(ex);
return null;
}
}
private Iterator getResultsForScenario4()
{
try {
gettingMethods=false;
if (ctype==CompletionProvider.COMPLETION_ALL_QUERY_TYPE)
{
completionResultSet.setHasAdditionalItems(true);
getExtLibs=true;
}
else
{
completionResultSet.setHasAdditionalItems(false);
getExtLibs=false;
}
Project proj=ReplTopComponent.GetProjectFromDocument(document);
if (!getExtLibs)
{
proj=null;
CurrentList=Scenario4List;
}