<% /******************************************************************************* * Copyright (c) 2003, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ %> <%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.perspective.*, org.eclipse.wst.ws.internal.explorer.platform.constants.*, org.eclipse.wst.ws.internal.explorer.platform.actions.*, org.eclipse.wst.ws.internal.explorer.platform.engine.ActionEngine, java.net.*" %> <% String sessionId = request.getParameter(ActionInputs.SESSIONID); HttpSession currentSession = (HttpSession)application.getAttribute(sessionId); Controller controller = (Controller)currentSession.getAttribute("controller"); ActionEngine actionEngine = controller.getActionEngine(); String modeString = request.getParameter(ActionInputs.ACTION_ENGINE_MODE); if (modeString != null && modeString.length() > 0) { try { byte mode = Byte.parseByte(modeString); actionEngine.setMode(mode); } catch (Throwable t) { } } String playFileId = "playFileId"; %> <%=controller.getMessage("TITLE_ACTION_RECORDER")%>
<% String labelModePlay = controller.getMessage("FORM_LABEL_MODE_PLAY"); String labelModeStop = controller.getMessage("FORM_LABEL_MODE_STOP"); String labelModeRecord = controller.getMessage("FORM_LABEL_MODE_RECORD"); String labelSave = controller.getMessage("FORM_LABEL_SAVE"); byte mode = actionEngine.getMode(); String imgPlay = (mode == ActionEngine.MODE_PLAY) ? "images/elcl16/actionengine_play.gif" : "images/dlcl16/actionengine_play.gif"; String imgStop = (mode == ActionEngine.MODE_STOP) ? "images/elcl16/actionengine_stop.gif" : "images/dlcl16/actionengine_stop.gif"; String imgRecord = (mode == ActionEngine.MODE_RECORD) ? "images/elcl16/actionengine_record.gif" : "images/dlcl16/actionengine_record.gif"; String imgSave = "images/dlcl16/actionengine_save.gif"; %>
<%=labelModePlay%> <%=controller.getMessage("FORM_LABEL_MODE_PLAY")%> <%=labelModeStop%> <%=controller.getMessage("FORM_LABEL_MODE_STOP")%> <%=labelModeRecord%> <%=controller.getMessage("FORM_LABEL_MODE_RECORD")%> <%=labelSave%> <%=controller.getMessage("FORM_LABEL_SAVE")%>
<%=controller.getMessage("FORM_LABEL_PLAY_FILE")%>