public static Object run(ActionContext actionContext) { if (actionContext.get("uiData") != null) { return actionContext.get("uiData"); } else { Thing self = (Thing) actionContext.get("self"); return UtilString.getString(self.getString("defaultNextNode"), actionContext); } }
public static Object run(ActionContext actionContext) throws OgnlException { Thing self = (Thing) actionContext.get("self"); Shell shell = (Shell) self.doAction("getShell", actionContext); DirectoryDialog dialog = new DirectoryDialog(shell, SWT.NONE); String filterPath = (String) self.doAction("getFilterPath", actionContext); if (filterPath != null && !"".equals(filterPath)) { dialog.setFilterPath(UtilString.getString(filterPath, actionContext)); } String message = self.getString("message"); if (message != null && !"".equals(message)) { dialog.setMessage(UtilString.getString(message, actionContext)); } String dir = dialog.open(); self.doAction("open", actionContext, UtilMap.toMap("fileName", dir)); return dir; }
public static Object getFinishLabel(ActionContext actionContext) { Thing self = (Thing) actionContext.get("self"); return UtilString.getString(self, "finishLabel", actionContext); }