Assert.isNotNull(parentViewSite);
parentSite = parentViewSite;
subActionBars = new SubActionBars(parentViewSite.getActionBars(), this);
// Initialize the service locator.
IServiceLocatorCreator slc = (IServiceLocatorCreator) parentSite
.getService(IServiceLocatorCreator.class);
this.serviceLocator = (ServiceLocator) slc.createServiceLocator(
parentViewSite, null, new IDisposable(){
public void dispose() {
// TODO: Commented out due to Eclipse 4.2 incompatibility
/*final Control control = ((PartSite)parentViewSite).getPane().getControl();
if (control != null && !control.isDisposed()) {