blob: 724b7b289c2542511edd95261ab5322a63d73c0d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Mylyn project committers and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.mylyn.internal.context.ui;
import org.eclipse.mylyn.internal.context.ui.actions.FocusOutlineAction;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IPartListener;
import org.eclipse.ui.IWorkbenchPart;
/**
* @author Mik Kersten
*/
public class ContentOutlineManager implements IPartListener {
public void partBroughtToTop(IWorkbenchPart part) {
// if (!ContextCorePlugin.getContextManager().isContextActive()) {
// return;
// } else {
if (part instanceof IEditorPart) {
IEditorPart editorPart = (IEditorPart) part;
FocusOutlineAction applyAction = FocusOutlineAction.getOutlineActionForEditor(editorPart);
if (applyAction != null) {
applyAction.update(editorPart);
}
}
// }
}
public void partActivated(IWorkbenchPart part) {
// ignore
}
public void partOpened(IWorkbenchPart part) {
// ignore
}
public void partClosed(IWorkbenchPart partRef) {
// ignore
}
public void partDeactivated(IWorkbenchPart partRef) {
// ignore
}
}