}
}
@Override
public void selectionChanged(IAction action, ISelection selection) {
IWorkbenchWindow activeWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (extractAction == null) {
init(activeWindow);
if (extractAction != null) {
extractAction.update(selection);
}
} else {
if (activeWindow != null) {
IWorkbenchPage activePage = activeWindow.getActivePage();
if (activePage != null) {
IWorkbenchPart activePart = activePage.getActivePart();
if (activePart != null) {
IWorkbenchPartSite activeSite = activePart.getSite();
if (activeSite != null) {