blob: 396dcce1d554f244ee00a9c6591de54a13b82ec1 [file] [log] [blame]
package org.eclipse.ui.tests.api;
import org.eclipse.jface.action.IAction;
import org.eclipse.ui.*;
public class MockEditorActionDelegate extends MockActionDelegate
implements IEditorActionDelegate
{
private IEditorPart target;
/**
* Constructor for MockEditorActionDelegate
*/
public MockEditorActionDelegate() {
super();
}
/**
* @see IEditorActionDelegate#setActiveEditor(IAction, IEditorPart)
*/
public void setActiveEditor(IAction action, IEditorPart targetEditor) {
callHistory.add("setActiveEditor");
target = targetEditor;
}
/**
* Returns the active editor.
*/
public IEditorPart getActiveEditor() {
return target;
}
}