|
Lines 495-506
Link Here
|
| 495 |
* @param newPageIndex the index of the activated page |
495 |
* @param newPageIndex the index of the activated page |
| 496 |
*/ |
496 |
*/ |
| 497 |
protected void pageChange(int newPageIndex) { |
497 |
protected void pageChange(int newPageIndex) { |
| 498 |
// XXX: Workaround for 1GCN531: SWT:WIN2000 - CTabFolder child's visibility is false on notification |
|
|
| 499 |
Control control = getControl(newPageIndex); |
| 500 |
if (control != null) { |
| 501 |
control.setVisible(true); |
| 502 |
} |
| 503 |
// XXX: End workaround |
| 504 |
setFocus(); |
498 |
setFocus(); |
| 505 |
IEditorPart activeEditor = getEditor(newPageIndex); |
499 |
IEditorPart activeEditor = getEditor(newPageIndex); |
| 506 |
IEditorActionBarContributor contributor = getEditorSite() |
500 |
IEditorActionBarContributor contributor = getEditorSite() |
|
Lines 511-526
Link Here
|
| 511 |
.setActivePage(activeEditor); |
505 |
.setActivePage(activeEditor); |
| 512 |
} |
506 |
} |
| 513 |
if (activeEditor != null) { |
507 |
if (activeEditor != null) { |
| 514 |
//Workaround for 1GAUS7C: ITPUI:ALL - Editor not activated when restored from previous session |
|
|
| 515 |
//do not need second if once fixed |
| 516 |
ISelectionProvider selectionProvider = activeEditor.getSite() |
508 |
ISelectionProvider selectionProvider = activeEditor.getSite() |
| 517 |
.getSelectionProvider(); |
509 |
.getSelectionProvider(); |
| 518 |
if (selectionProvider != null) { |
|
|
| 519 |
SelectionChangedEvent event = new SelectionChangedEvent( |
510 |
SelectionChangedEvent event = new SelectionChangedEvent( |
| 520 |
selectionProvider, selectionProvider.getSelection()); |
511 |
selectionProvider, selectionProvider.getSelection()); |
| 521 |
((MultiPageSelectionProvider) getSite().getSelectionProvider()) |
512 |
((MultiPageSelectionProvider) getSite().getSelectionProvider()) |
| 522 |
.fireSelectionChanged(event); |
513 |
.fireSelectionChanged(event); |
| 523 |
} |
|
|
| 524 |
} |
514 |
} |
| 525 |
} |
515 |
} |
| 526 |
|
516 |
|