public UISWTInstance getUISWTInstance() {
   UISWTInstanceImpl impl = mainWindow.getUISWTInstanceImpl();
   if (impl == null) {
     Debug.out("No uiswtinstanceimpl");
   }
   return impl;
 }
  // @see com.aelitis.azureus.ui.swt.UIFunctionsSWT#getSWTPluginInstanceImpl()
  public UISWTInstanceImpl getSWTPluginInstanceImpl() {
    try {
      return mainWindow.getUISWTInstanceImpl();
    } catch (Exception e) {
      Logger.log(new LogEvent(LOGID, "getSWTPluginInstanceImpl", e));
    }

    return null;
  }