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.pde.internal.ui.tests.macro;
11:
12: import org.eclipse.swt.widgets.Widget;
13:
14: /**
15: * This interface is registered using extension point
16: * <code>org.eclipse.ui.macro</code> return unique identifier
17: * from a provided widget. The identifier must be reproducable
18: * between sessions so that it can be used to locate the
19: * widget on playback.
20: *
21: * @since 3.1
22: */
23: public interface IWidgetResolver {
24: /**
25: * Returns a unique identifier for the provided widget.
26: * @param widget the widget to identify
27: * @return unique identifier that can be used to locate the
28: * widget or <code>null</code> if none can be found.
29: */
30: String getUniqueId(Widget widget);
31: }
|