| <?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="viewer-example.xml"> |
| <control-data> |
| <attribute name="e1" visible="true" status="valid" type="integer"> |
| <description>it's "e1"</description> |
| <tooltip>use in conjunction with E1</tooltip> |
| <default>1</default> |
| </attribute> |
| <attribute name="e2" visible="true" status="valid" type="integer"> |
| <description>it's "e2"</description> |
| <tooltip>use in conjunction with E2</tooltip> |
| <default>2</default> |
| </attribute> |
| <attribute name="e3" visible="true" status="valid" type="integer"> |
| <description>it's "e3"</description> |
| <tooltip>use in conjunction with E3</tooltip> |
| <default>3</default> |
| </attribute> |
| <attribute name="e4" visible="true" status="unsupported" translateBooleanAs="0,4"> |
| <description>it's "e4"</description> |
| <tooltip>use in conjunction with E4</tooltip> |
| <default>4</default> |
| </attribute> |
| <attribute name="e5" visible="true" status="unsupported" type="integer"> |
| <description>it's "e5"</description> |
| <tooltip>use in conjunction with E5</tooltip> |
| <default>5</default> |
| </attribute> |
| <attribute name="linked" visible="false" status="valid" type="integer"> |
| <description>a linked variable</description> |
| <tooltip>linked to e5</tooltip> |
| <default>6</default> |
| <link-value-to>e5</link-value-to> |
| </attribute> |
| <launch-tab> |
| <dynamic> |
| <title>Environment Table</title> |
| <layout> |
| <grid-layout/> |
| </layout> |
| <composite group="true"> |
| <layout> |
| <grid-layout numColumns="1"/> |
| </layout> |
| <widget type="text" readOnly="true" style="SWT.LEFT | SWT.BORDER | SWT.WRAP | SWT.V_SCROLL"> |
| <layout-data> |
| <grid-data widthHint="100" heightHint="15"/> |
| </layout-data> |
| <tooltip>${ptp_rm:linked#tooltip}</tooltip> |
| <dynamic-text> |
| <arg>${ptp_rm:linked#value}</arg> |
| </dynamic-text> |
| </widget> |
| <viewer name="environmentT1" style="SWT.BORDER | SWT.MULTI" sort="true" type="table"> |
| <layout-data> |
| <grid-data widthHint="600" heightHint="200" horizontalSpan="1"/> |
| </layout-data> |
| <!-- These are the 6 attribute fields mappable to columns. In a "table viewer" the order of the columns is entirely arbitrary --> |
| <column-data name="Name" width="100"/> |
| <column-data name="Status" width="100"/> |
| <column-data name="Description" width="100"/> |
| <column-data name="Value" width="100"/> |
| <column-data name="Default" width="100"/> |
| <column-data name="Type" width="100"/> |
| <items> |
| <include>e1</include> |
| <include>e2</include> |
| <include>e3</include> |
| <include>e4</include> |
| <include>e5</include> |
| </items> |
| <value pattern="export @name='@value'" separator="; "/> |
| </viewer> |
| </composite> |
| </dynamic> |
| <dynamic> |
| <title>Environment Tree</title> |
| <layout> |
| <grid-layout/> |
| </layout> |
| <composite group="true"> |
| <layout> |
| <grid-layout numColumns="1"/> |
| </layout> |
| <viewer name="environmentT2" style="SWT.BORDER | SWT.MULTI" sort="true" type="tree"> |
| <layout-data> |
| <grid-data widthHint="600" heightHint="200" horizontalSpan="1"/> |
| </layout-data> |
| <column-data name="Name" width="100"/> |
| <column-data name="Description" width="100"/> |
| <column-data name="Type" width="100"/> |
| <column-data name="Status" width="100"/> |
| <column-data name="Default" width="100"/> |
| <column-data name="Value" width="100"/> |
| <items> |
| <include>e1</include> |
| <include>e2</include> |
| <include>e3</include> |
| <include>e4</include> |
| <include>e5</include> |
| </items> |
| <value pattern="export @name='@value'" separator="; "/> |
| </viewer> |
| </composite> |
| </dynamic> |
| <dynamic> |
| <title>Environment Tree Value Only</title> |
| <layout> |
| <grid-layout/> |
| </layout> |
| <composite group="true"> |
| <layout> |
| <grid-layout numColumns="1"/> |
| </layout> |
| <viewer name="environmentT3" style="SWT.BORDER | SWT.MULTI" sort="true" type="tree" initialAllChecked="false"> |
| <layout-data> |
| <grid-data widthHint="600" heightHint="200" horizontalSpan="1"/> |
| </layout-data> |
| <column-data name="Name" width="100"/> |
| <column-data name="Value" width="100"/> |
| <items> |
| <include>e1</include> |
| <include>e2</include> |
| <include>e3</include> |
| <include>e4</include> |
| <include>e5</include> |
| </items> |
| <value pattern="export @name='@value'" separator="; "/> |
| </viewer> |
| </composite> |
| </dynamic> |
| </launch-tab> |
| </control-data> |
| <monitor-data/> |
| </resource-manager-builder> |