public void refreshRobotList(final boolean withClear) {
final Runnable runnable = new Runnable() {
public void run() {
final IWindowManager windowManager = Container.getComponent(IWindowManager.class);
try {
windowManager.setBusyPointer(true);
repositoryManager.refresh(withClear);
List<IRobotSpecItem> robotList = repositoryManager.getRepositoryItems(onlyShowSource,
onlyShowWithPackage, onlyShowRobots, onlyShowDevelopment, false, ignoreTeamRobots, onlyShowInJar);
getAvailableRobotsPanel().setRobotList(robotList);
if (preSelectedRobots != null && preSelectedRobots.length() > 0) {
setSelectedRobots(preSelectedRobots);
preSelectedRobots = null;
}
} finally {
windowManager.setBusyPointer(false);
}
}
};
SwingUtilities.invokeLater(runnable);