|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 3484-3489
Link Here
|
| 3484 |
|
3484 |
|
| 3485 |
if (partBeingActivated != null) { |
3485 |
if (partBeingActivated != null) { |
| 3486 |
if (partBeingActivated.getPart(false) != newPart) { |
3486 |
if (partBeingActivated.getPart(false) != newPart) { |
|
|
3487 |
// check if we're a nested editor reference |
| 3488 |
if (partBeingActivated instanceof EditorManager.InnerEditor) { |
| 3489 |
EditorReference outerEditor = (EditorReference) ((EditorManager.InnerEditor) partBeingActivated) |
| 3490 |
.getOuterEditor(); |
| 3491 |
// get all the sibling references |
| 3492 |
IEditorReference[] children = outerEditor.getChildren(); |
| 3493 |
if (children != null) { |
| 3494 |
for (int i = 0; i < children.length; i++) { |
| 3495 |
// there's a recursive activation request for a |
| 3496 |
// sibling reference, ignore it |
| 3497 |
if (children[i].getPart(false) == newPart) { |
| 3498 |
return; |
| 3499 |
} |
| 3500 |
} |
| 3501 |
} |
| 3502 |
} |
| 3503 |
|
| 3487 |
WorkbenchPlugin.log(new RuntimeException(NLS.bind( |
3504 |
WorkbenchPlugin.log(new RuntimeException(NLS.bind( |
| 3488 |
"WARNING: Prevented recursive attempt to activate part {0} while still in the middle of activating part {1}", //$NON-NLS-1$ |
3505 |
"WARNING: Prevented recursive attempt to activate part {0} while still in the middle of activating part {1}", //$NON-NLS-1$ |
| 3489 |
getId(newPart), getId(partBeingActivated)))); |
3506 |
getId(newPart), getId(partBeingActivated)))); |