Lines 360-365
Link Here
|
360 |
Iterator enum = clone.values().iterator(); |
360 |
Iterator enum = clone.values().iterator(); |
361 |
while (enum.hasNext()) { |
361 |
while (enum.hasNext()) { |
362 |
PageRec rec = (PageRec) enum.next(); |
362 |
PageRec rec = (PageRec) enum.next(); |
|
|
363 |
if (rec.subActionBars != null) |
364 |
rec.subActionBars.dispose(); |
363 |
removePage(rec); |
365 |
removePage(rec); |
364 |
} |
366 |
} |
365 |
|
367 |
|
Lines 533-538
Link Here
|
533 |
* method deal with the closing of the active part. Subclasses may extend. |
535 |
* method deal with the closing of the active part. Subclasses may extend. |
534 |
*/ |
536 |
*/ |
535 |
public void partClosed(IWorkbenchPart part) { |
537 |
public void partClosed(IWorkbenchPart part) { |
|
|
538 |
PageRec rec = getPageRec(part); |
536 |
// Update the active part. |
539 |
// Update the active part. |
537 |
if (activeRec != null && activeRec.part == part) { |
540 |
if (activeRec != null && activeRec.part == part) { |
538 |
activeRec.subActionBars.dispose(); |
541 |
activeRec.subActionBars.dispose(); |
Lines 543-552
Link Here
|
543 |
|
546 |
|
544 |
activeRec = null; |
547 |
activeRec = null; |
545 |
showPageRec(defaultPageRec); |
548 |
showPageRec(defaultPageRec); |
|
|
549 |
} else { |
550 |
if (rec != null && rec.subActionBars != null) |
551 |
rec.subActionBars.dispose(); |
546 |
} |
552 |
} |
547 |
|
553 |
|
548 |
// Find and remove the part page. |
554 |
// Find and remove the part page. |
549 |
PageRec rec = getPageRec(part); |
|
|
550 |
if (rec != null) |
555 |
if (rec != null) |
551 |
removePage(rec); |
556 |
removePage(rec); |
552 |
} |
557 |
} |