| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- ******************************************************************************* --> |
| <!-- * Copyright (c) 2011 University of Illinois All rights reserved. This program --> |
| <!-- * and the accompanying materials are made available under the terms of the --> |
| <!-- * Eclipse Public License v1.0 which accompanies this distribution, and is --> |
| <!-- * available at http://www.eclipse.org/legal/epl-v10.html --> |
| <!-- * --> |
| <!-- * Contributors: --> |
| <!-- * Albert L. Rossi - design and implementation --> |
| <!-- ****************************************************************************** --> |
| <resource-manager-builder xmlns="http://org.eclipse.ptp/rm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="resource_manager_type.xsd" name="browse-example"> |
| <control-data> |
| <property name="path1" visible="true"/> |
| <property name="path2" visible="true"/> |
| <property name="path3" visible="true"/> |
| <property name="path4" visible="true"/> |
| <managed-files> |
| <file-staging-location>${ptp_rm:directory#value}</file-staging-location> |
| <file name="input"> |
| <path>${ptp_rm:path3#value}</path> |
| </file> |
| </managed-files> |
| <script> |
| <line> |
| <arg>path1 = ${ptp_rm:path1#value}</arg> |
| </line> |
| <line> |
| <arg>path2 = ${ptp_rm:path2#value}</arg> |
| </line> |
| <line> |
| <arg>path3 = ${ptp_rm:path3#value}</arg> |
| </line> |
| <line> |
| <arg>path4 = ${ptp_rm:path4#value}</arg> |
| </line> |
| </script> |
| <submit-interactive name="submit-interactive"> |
| <arg>echo</arg> |
| <arg>$VAR_1</arg> |
| <arg>$VAR_2</arg> |
| <arg>$VAR_3</arg> |
| <arg>$VAR_4</arg> |
| <environment name="VAR_1" value="${ptp_rm:path1#value}"/> |
| <environment name="VAR_2" value="${ptp_rm:path2#value}"/> |
| <environment name="VAR_3" value="${ptp_rm:path3#value}"/> |
| <environment name="VAR_4" value="${ptp_rm:path4#value}"/> |
| </submit-interactive> |
| <launch-tab> |
| <dynamic> |
| <title>Paths</title> |
| <composite> |
| <layout> |
| <grid-layout numColumns="4" makeColumnsEqualWidth="false" horizontalSpacing="10" verticalSpacing="15"/> |
| </layout> |
| <!-- row 1 --> |
| <widget type="label" style="SWT.LEFT"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/> |
| </layout-data> |
| <fixed-text>Browse URI: </fixed-text> |
| </widget> |
| <widget type="browse" uri="true" style="SWT.BORDER" readOnly="false" title="Browse" saveValueTo="path1"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.FILL" widthHint="200" horizontalSpan="2" grabExcessHorizontal="true"/> |
| </layout-data> |
| <sub-layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" widthHint="100" horizontalSpan="1" grabExcessHorizontal="false"/> |
| </sub-layout-data> |
| </widget> |
| <!-- row 2 --> |
| <widget type="label" style="SWT.LEFT"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/> |
| </layout-data> |
| <fixed-text>Browse Dir Path: </fixed-text> |
| </widget> |
| <widget type="browse" uri="false" directory="true" style="SWT.BORDER" readOnly="true" title="Browse" saveValueTo="path2"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.FILL" widthHint="200" horizontalSpan="2" grabExcessHorizontal="true"/> |
| </layout-data> |
| <sub-layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" widthHint="100" horizontalSpan="1" grabExcessHorizontal="false"/> |
| </sub-layout-data> |
| </widget> |
| <!-- row 3 --> |
| <widget type="label" style="SWT.LEFT"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/> |
| </layout-data> |
| <fixed-text>Browse Local File: </fixed-text> |
| </widget> |
| <widget type="browse" style="SWT.BORDER | SWT.H_SCROLL" readOnly="true" localOnly="true" title="Browse" saveValueTo="path3"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.FILL" widthHint="200" horizontalSpan="2" grabExcessHorizontal="true"/> |
| </layout-data> |
| <sub-layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" widthHint="100" horizontalSpan="1" grabExcessHorizontal="false"/> |
| </sub-layout-data> |
| </widget> |
| <!-- row 4 --> |
| <widget type="label" style="SWT.LEFT"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/> |
| </layout-data> |
| <fixed-text>Browse Local Dir URI: </fixed-text> |
| </widget> |
| <widget type="browse" directory="true" uri="true" style="SWT.BORDER" readOnly="true" localOnly="true" title="Browse" |
| saveValueTo="path4"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.FILL" widthHint="200" horizontalSpan="2" grabExcessHorizontal="true"/> |
| </layout-data> |
| <sub-layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" widthHint="100" horizontalSpan="1" grabExcessHorizontal="false"/> |
| </sub-layout-data> |
| </widget> |
| </composite> |
| </dynamic> |
| </launch-tab> |
| </control-data> |
| <monitor-data schedulerType="Tabbed"> |
| <driver> |
| <name></name> |
| </driver> |
| </monitor-data> |
| </resource-manager-builder> |