}
public ShellContextImpl createUIContext()
{
Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
ShellContextImpl shellContextImpl = new ShellContextImpl(this, currentResource, listeners);
for (CommandExecutionListener listener : executionListeners)
{
shellContextImpl.addCommandExecutionListener(listener);
}
ExportManager exportManager = console.getExportManager();
if (exportManager != null)
{
Map<Object, Object> attributeMap = shellContextImpl.getAttributeMap();
for (String variableName : exportManager.getAllNames())
{
String variableValue = exportManager.getValue(variableName);
attributeMap.put(variableName, variableValue);
}