コード例 #1
0
 public UISWTInstance getUISWTInstance() {
   UISWTInstanceImpl impl = mainWindow.getUISWTInstanceImpl();
   if (impl == null) {
     Debug.out("No uiswtinstanceimpl");
   }
   return impl;
 }
コード例 #2
0
  // @see com.aelitis.azureus.ui.UIFunctions#refreshLanguage()
  public void refreshLanguage() {
    try {
      mainWindow.setSelectedLanguageItem();

    } catch (Exception e) {
      Logger.log(new LogEvent(LOGID, "refreshLanguage", e));
    }
  }
コード例 #3
0
 // @see com.aelitis.azureus.ui.UIFunctions#dispose(boolean, boolean)
 public boolean dispose(boolean for_restart, boolean close_already_in_progress) {
   try {
     return mainWindow.dispose(for_restart, close_already_in_progress);
   } catch (Exception e) {
     Logger.log(new LogEvent(LOGID, "Disposing MainWindow", e));
   }
   return false;
 }
コード例 #4
0
  // @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;
  }
コード例 #5
0
  public boolean viewURL(
      final String url,
      final String target,
      final double w,
      final double h,
      final boolean allowResize,
      final boolean isModal) {

    mainWindow
        .getShell()
        .getDisplay()
        .syncExec(
            new AERunnable() {
              public void runSupport() {
                String realURL = url;
                ContentNetwork cn = ContentNetworkUtils.getContentNetworkFromTarget(target);
                if (!realURL.startsWith("http")) {
                  if ("_blank".equals(target)) {
                    realURL = cn.getExternalSiteRelativeURL(realURL, false);
                  } else {
                    realURL = cn.getSiteRelativeURL(realURL, false);
                  }
                }
                if (target == null) {
                  if (UrlFilter.getInstance().urlCanRPC(realURL)) {
                    realURL = cn.appendURLSuffix(realURL, false, true);
                  }
                  BrowserWindow window =
                      new BrowserWindow(mainWindow.getShell(), realURL, w, h, allowResize, isModal);
                  window.waitUntilClosed();
                } else {
                  showURL(realURL, target);
                }
              }
            });
    return true;
  }
コード例 #6
0
 // @see com.aelitis.azureus.ui.swt.UIFunctionsSWT#getMainStatusBar()
 public IMainStatusBar getMainStatusBar() {
   if (mainWindow == null) {
     return null;
   }
   return mainWindow.getMainStatusBar();
 }
コード例 #7
0
 // @see com.aelitis.azureus.ui.swt.UIFunctionsSWT#getMainShell()
 public Shell getMainShell() {
   return mainWindow == null ? null : mainWindow.getShell();
 }
コード例 #8
0
 public void setHideAll(boolean hidden) {
   mainWindow.setHideAll(hidden);
 }