01: package org.eclipse.pde.internal.ui.tests.macro;
02:
03: import org.eclipse.core.runtime.IStatus;
04: import org.eclipse.core.runtime.Status;
05: import org.eclipse.jface.dialogs.MessageDialog;
06: import org.eclipse.swt.widgets.Shell;
07:
08: public class DefaultIndexHandler implements IIndexHandler {
09:
10: public DefaultIndexHandler() {
11: }
12:
13: public IStatus processIndex(final Shell shell, String indexId) {
14: final String message = "Index reached: " + indexId;
15:
16: final IStatus[] result = new IStatus[1];
17:
18: shell.getDisplay().syncExec(new Runnable() {
19: public void run() {
20: MessageDialog.openInformation(shell, "Macro Playback",
21: message);
22: result[0] = Status.OK_STATUS;
23: }
24: });
25: return result[0];
26: }
27: }
|