Package com.aelitis.azureus.ui.common.updater

Examples of com.aelitis.azureus.ui.common.updater.UIUpdatable


    if (skinView != null) {
      removeListener(skinView);

      if (skinView instanceof UIUpdatable) {
        UIUpdatable updateable = (UIUpdatable) skinView;
        try {
          UIFunctionsManager.getUIFunctions().getUIUpdater().removeUpdater(
              updateable);
        } catch (Exception e) {
          Debug.out(e);
View Full Code Here


   */
  public SkinView() {
    shownOnce = false;
   
    if (this instanceof UIUpdatable) {
      UIUpdatable updateable = (UIUpdatable) this;
      try {
        UIFunctionsManager.getUIFunctions().getUIUpdater().addUpdater(
            updateable);
      } catch (Exception e) {
        Debug.out(e);
View Full Code Here

 
  // @see com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter#skinObjectDestroyed(com.aelitis.azureus.ui.swt.skin.SWTSkinObject, java.lang.Object)
  public Object skinObjectDestroyed(SWTSkinObject skinObject, Object params) {
    SkinViewManager.remove(this);
    if (this instanceof UIUpdatable) {
      UIUpdatable updateable = (UIUpdatable) this;
      try {
        UIFunctionsManager.getUIFunctions().getUIUpdater().removeUpdater(
            updateable);
      } catch (Exception e) {
        Debug.out(e);
View Full Code Here

      return;
    }

    Object[] updateablesArray = updateables.toArray();
    for (int i = 0; i < updateablesArray.length; i++) {
      UIUpdatable updateable = (UIUpdatable) updateablesArray[i];
      if (updateable == null) {
        removeUpdater(updateable);
      }
      try {
        if (DEBUG_TIMER) {
          start = SystemTime.getCurrentTime();
        }
        updateable.updateUI();
        if (DEBUG_TIMER) {
          long diff = SystemTime.getCurrentTime() - start;
          if (diff > 0) {
            mapTimeMap.put(updateable, new Long(diff));
          }
        }
      } catch (Throwable t) {
        Logger.log(new LogEvent(LOGID,
            "Error while trying to update UI Element "
                + updateable.getUpdateUIName(), t));
      }
    }
    if (DEBUG_TIMER) {
      makeDebugToolTip(mapTimeMap);
    }
View Full Code Here

        new VivaldiView(false)
      };

      cPluginArea = (Composite) skinObject.getControl();

      final UIUpdatable updatable = new UIUpdatable() {
        public void updateUI() {
          Object[] views = topbarViews.toArray();
          for (int i = 0; i < views.length; i++) {
            try {
              IView view = (IView) views[i];
View Full Code Here

    shell.setLayout(new FillLayout());

    view.viewActivated();
    view.refresh();

    final UIUpdatable viewUpdater = new UIUpdatable() {
      public void updateUI() {
        view.refresh();
      }

      public String getUpdateUIName() {
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.common.updater.UIUpdatable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.