if (part == MultiEditor.this && innerEditors != null) {
PartService partService = ((WorkbenchPage) getSite()
.getPage()).getPartService();
for (int i = 0; i < innerEditors.length; i++) {
IEditorPart editor = innerEditors[i];
IWorkbenchPartReference innerRef = ((PartSite) editor
.getSite()).getPartReference();
partService.firePartClosed(innerRef);
}
}
}
public void partDeactivated(IWorkbenchPartReference partRef) {
}
public void partOpened(IWorkbenchPartReference partRef) {
IWorkbenchPart part = partRef.getPart(false);
if (part == MultiEditor.this && innerEditors != null) {
PartService partService = ((WorkbenchPage) getSite()
.getPage()).getPartService();
for (int i = 0; i < innerEditors.length; i++) {
IEditorPart editor = innerEditors[i];
IWorkbenchPartReference innerRef = ((PartSite) editor
.getSite()).getPartReference();
partService.firePartOpened(innerRef);
}
}
}