01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui;
11:
12: import org.eclipse.jface.action.IAction;
13: import org.eclipse.swt.widgets.Event;
14:
15: /**
16: * This interface is a mixin interface for action delegates, adding the ability to
17: * examine the triggering SWT event when it is run.
18: * If an action delegate implements this interface, then <code>runWithEvent(IAction, Event)</code>
19: * is called instead of <code>run(IAction)</code>.
20: * <p>
21: * Clients should implement this interface, in addition to <code>IActionDelegate</code>
22: * (or subinterface), if they need to examine the triggering event.
23: * Otherwise, they should simply implement <code>IActionDelegate</code> (or subinterface).
24: * <p>
25: *
26: * @since 2.0
27: * @deprecated Use org.eclipse.ui.IActionDelegate2 instead.
28: */
29: public interface IActionDelegateWithEvent {
30:
31: /**
32: * Performs this action, passing the SWT event which triggered it.
33: * <p>
34: * This method is called when the delegating action has been triggered.
35: * Implement this method to do the actual work.
36: * If an action delegate implements this interface, this method
37: * is called instead of <code>run(IAction)</code>.
38: * <p>
39: *
40: * @param action the action proxy that handles the presentation portion of the action
41: * @param event the SWT event which triggered this action being run
42: * @since 2.0
43: * @deprecated Use org.eclipse.ui.IActionDelegate2 instead.
44: */
45: public void runWithEvent(IAction action, Event event);
46:
47: }
|