Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 417989 | Differences between
and this patch

Collapse All | Expand All

(-)a/bundles/org.eclipse.rap.jface/src/org/eclipse/jface/action/CoolBarManager.java (-4 / +10 lines)
Lines 66-71 Link Here
66
     */
66
     */
67
    private int itemStyle = SWT.NONE;
67
    private int itemStyle = SWT.NONE;
68
68
69
    private boolean inUpdate = false;
70
69
    /**
71
    /**
70
     * Creates a new cool bar manager with the default style. Equivalent to
72
     * Creates a new cool bar manager with the default style. Equivalent to
71
     * <code>CoolBarManager(SWT.NONE)</code>.
73
     * <code>CoolBarManager(SWT.NONE)</code>.
Lines 261-270 Link Here
261
    private void addCoolBarResizeListener() {
263
    private void addCoolBarResizeListener() {
262
      coolBar.addControlListener( new ControlAdapter() {
264
      coolBar.addControlListener( new ControlAdapter() {
263
        public void controlResized( ControlEvent event ) {
265
        public void controlResized( ControlEvent event ) {
264
          IContributionItem[] items = getItems();
266
          if( !inUpdate ) {
265
          for( int i = 0; i < items.length; i++ ) {
267
            IContributionItem[] items = getItems();
266
            IContributionItem item = items[ i ];
268
            for( int i = 0; i < items.length; i++ ) {
267
            item.update( SIZE );
269
              IContributionItem item = items[ i ];
270
              item.update( SIZE );
271
            }
268
          }
272
          }
269
        }
273
        }
270
      } );
274
      } );
Lines 850-855 Link Here
850
854
851
        try {
855
        try {
852
            coolBar.setRedraw(false);
856
            coolBar.setRedraw(false);
857
            inUpdate = true;
853
858
854
            // Refresh the widget data with the internal data structure.
859
            // Refresh the widget data with the internal data structure.
855
            refresh();
860
            refresh();
Lines 993-998 Link Here
993
            setDirty(false);
998
            setDirty(false);
994
        } finally {
999
        } finally {
995
            coolBar.setRedraw(true);
1000
            coolBar.setRedraw(true);
1001
            inUpdate = false;
996
        }
1002
        }
997
    }
1003
    }
998
1004

Return to bug 417989