- if (log.isTraceEnabled())
- log.trace("Part activated: " + part.getTitle() + " - "
- + part.getClass());
-
- // Try to avoid NPE when closing the application
- IWorkbenchPartSite site = part.getSite();
- if (site == null)
- return;
- IWorkbenchWindow window = site.getWorkbenchWindow();
- if (window == null)
- return;
-
- // // Retrieve the service to enable/disable checkout button
- // ISourceProviderService sourceProviderService =
- // (ISourceProviderService) window
- // .getService(ISourceProviderService.class);
- // EditionSourceProvider esp = (EditionSourceProvider)
- // sourceProviderService
- // .getSourceProvider(EditionSourceProvider.EDITING_STATE);
- // if (part instanceof IVersionedItemEditor) {
- // IStatusLineManager manager = ((IEditorPart) part).getEditorSite()
- // .getActionBars().getStatusLineManager();
- // manager.setMessage(((IVersionedItemEditor) part)
- // .getlastUpdateMessage());
- //
- // }
- // if (part instanceof CmsEditable) {
- // CmsEditable editor = (CmsEditable) part;
- // // Processing the ability to checkout is delegated to the editor
- // esp.setCurrentItemEditingState(editor.isEditing());
- // } else {// force button to be disabled if another part has the focus.
- // esp.setCurrentItemEditingState(true);
- // }