01: package abbot.editor.editors;
02:
03: import java.lang.reflect.Method;
04: import java.util.ArrayList;
05:
06: import abbot.script.Action;
07:
08: /** Provide convenient editing of a Action step. */
09: public class ActionEditor extends CallEditor {
10:
11: public ActionEditor(Action action) {
12: super (action);
13: }
14:
15: // FIXME return the editor menu names instead
16: protected String[] getMethodNames(Method[] methods) {
17: ArrayList list = new ArrayList();
18: for (int i = 0; i < methods.length; i++) {
19: if (methods[i].getName().startsWith("action"))
20: list.add(methods[i].getName());
21: }
22: return (String[]) list.toArray(new String[list.size()]);
23: }
24: }
|