|
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() |