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 66889
Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/internal/presentations/PaneFolder.java (-2 / +9 lines)
Lines 13-19 Link Here
13
import java.util.ArrayList;
13
import java.util.ArrayList;
14
import java.util.Iterator;
14
import java.util.Iterator;
15
import java.util.List;
15
import java.util.List;
16
17
import org.eclipse.jface.util.Geometry;
16
import org.eclipse.jface.util.Geometry;
18
import org.eclipse.swt.SWT;
17
import org.eclipse.swt.SWT;
19
import org.eclipse.swt.custom.CTabFolder;
18
import org.eclipse.swt.custom.CTabFolder;
Lines 329-335 Link Here
329
        topCenterCache.flush();
328
        topCenterCache.flush();
330
        viewForm.changed(new Control[] {viewFormTopCenterProxy.getControl()});
329
        viewForm.changed(new Control[] {viewFormTopCenterProxy.getControl()});
331
    }
330
    }
332
    
331
332
	/*
333
	 * @since 3.6
334
	 */
335
	public void flushTopLeftSize() {
336
		topLeftCache.flush();
337
		viewForm.changed(new Control[] { viewFormTopLeftProxy.getControl() });
338
	}
339
333
    /**
340
    /**
334
     * Sets the top-center control (usually a toolbar), or null if none. Note
341
     * Sets the top-center control (usually a toolbar), or null if none. Note
335
     * that the control can have any parent.
342
     * that the control can have any parent.
(-)Eclipse UI/org/eclipse/ui/internal/presentations/defaultpresentation/DefaultTabFolder.java (-19 / +25 lines)
Lines 298-322 Link Here
298
        }
298
        }
299
    }
299
    }
300
300
301
    /* (non-Javadoc)
301
	/*
302
     * @see org.eclipse.ui.internal.presentations.util.AbstractTabFolder#setSelectedInfo(org.eclipse.ui.internal.presentations.util.PartInfo)
302
	 * (non-Javadoc)
303
     */
303
	 * 
304
    public void setSelectedInfo(PartInfo info) {
304
	 * @see
305
        String newTitle = DefaultTabItem.escapeAmpersands(info.contentDescription);
305
	 * org.eclipse.ui.internal.presentations.util.AbstractTabFolder#setSelectedInfo
306
        
306
	 * (org.eclipse.ui.internal.presentations.util.PartInfo)
307
        if (!Util.equals(titleLabel.getText(), newTitle)) {
307
	 */
308
            titleLabel.setText(newTitle);
308
	public void setSelectedInfo(PartInfo info) {
309
            titleLabel.setToolTipText(newTitle);
309
		String newTitle = DefaultTabItem
310
        }
310
				.escapeAmpersands(info.contentDescription);
311
    	
311
312
        if (!info.contentDescription.equals(Util.ZERO_LENGTH_STRING)) {
312
		if (!Util.equals(titleLabel.getText(), newTitle)) {
313
            paneFolder.setTopLeft(titleLabel);
313
			titleLabel.setText(newTitle);
314
            titleLabel.setVisible(true);
314
			titleLabel.setToolTipText(newTitle);
315
        } else {
315
		}
316
            paneFolder.setTopLeft(null);
316
317
            titleLabel.setVisible(false);
317
		if (!info.contentDescription.equals(Util.ZERO_LENGTH_STRING)) {
318
        }
318
			paneFolder.flushTopLeftSize();
319
    }
319
			paneFolder.setTopLeft(titleLabel);
320
			titleLabel.setVisible(true);
321
		} else {
322
			paneFolder.setTopLeft(null);
323
			titleLabel.setVisible(false);
324
		}
325
	}
320
326
321
    /* (non-Javadoc)
327
    /* (non-Javadoc)
322
     * @see org.eclipse.ui.internal.presentations.util.AbstractTabFolder#getPaneMenuLocation()
328
     * @see org.eclipse.ui.internal.presentations.util.AbstractTabFolder#getPaneMenuLocation()

Return to bug 66889