| <?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="button-group-example"> |
| <control-data> |
| <attribute name="logResults" translateBooleanAs="1,0"> |
| <description>Does nothing; for testing boolean value translation.</description> |
| </attribute> |
| <attribute name="numCores" min="1" type="integer"> |
| <default>1</default> |
| </attribute> |
| <script> |
| <line> |
| <arg isUndefinedIfMatches="logResults:">logResults: ${ptp_rm:logResults#value}</arg> |
| </line> |
| <line> |
| <arg isUndefinedIfMatches="numCores">numCores: ${ptp_rm:numCores#value}</arg> |
| </line> |
| </script> |
| <launch-tab> |
| <dynamic> |
| <title>Cores</title> |
| <layout> |
| <grid-layout/> |
| </layout> |
| <composite group="true"> |
| <layout> |
| <grid-layout numColumns="3" makeColumnsEqualWidth="false" horizontalSpacing="10" verticalSpacing="15"/> |
| </layout> |
| <widget type="label" style="SWT.LEFT" foreground="SWT.COLOR_DARK_RED"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/> |
| </layout-data> |
| <fixed-text>Name</fixed-text> |
| </widget> |
| <widget type="label" style="SWT.LEFT" foreground="SWT.COLOR_DARK_RED"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" horizontalSpan="2" grabExcessHorizontal="false"/> |
| </layout-data> |
| <fixed-text>Value</fixed-text> |
| </widget> |
| <!-- row 1 --> |
| <widget type="label" style="SWT.LEFT"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/> |
| </layout-data> |
| <fixed-text>Log results: </fixed-text> |
| </widget> |
| <widget type="checkbox" saveValueTo="logResults" style="SWT.LEFT"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="2"/> |
| </layout-data> |
| </widget> |
| <!-- row 2 --> |
| <widget type="label" style="SWT.LEFT"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/> |
| </layout-data> |
| <fixed-text>MPI Number of Cores: </fixed-text> |
| </widget> |
| <button-group saveValueTo="numCores" group="true"> |
| <layout> |
| <row-layout type="SWT.VERTICAL" center="true" fill="true" justify="true"/> |
| </layout> |
| <button type="radiobutton" title="1"/> |
| <button type="radiobutton" title="2"/> |
| <button type="radiobutton" title="3"/> |
| <button type="radiobutton" title="4"/> |
| <button type="radiobutton" title="5"/> |
| <button type="radiobutton" title="6"/> |
| <button type="radiobutton" title="7"/> |
| <button type="radiobutton" title="8"/> |
| </button-group> |
| <widget type="label" style="SWT.LEFT"> |
| <layout-data> |
| <grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/> |
| </layout-data> |
| </widget> |
| </composite> |
| </dynamic> |
| </launch-tab> |
| </control-data> |
| </resource-manager-builder> |