Package gda.rcp.views
Class CommissioningViewFactory
java.lang.Object
gda.factory.FindableBase
gda.rcp.views.FindableViewFactoryBase
gda.rcp.views.CommissioningViewFactory
- All Implemented Interfaces:
Findable,IViewFactory
View factory for creating a
CommissioningView with specific contents.
To use it, add a view to the org.eclipse.ui.views extension points in the client plugin.xml. e.g. :
<view
class="gda.rcp.views.ViewFactoryFinder:linkamControlView"
id="gda.rcp.views.CommissioningView.linkamControlView"
name="Script Chooser and Live Linkam Control"
category="uk.ac.gda.client.general.category"
icon="platform:/plugin/uk.ac.gda.common.rcp/icons/table_multiple.png"
restorable="true">
</view>
Where 'linkamControlView' should be replaced with the ID of the CommissioningViewFactory Bean in the client side spring
configuration that you want the view to use. E.g.:
<bean id="linkamControlView" class="gda.rcp.views.CommissioningViewFactory">
<property name="title" value="Linkam" />
<property name="header" value="Linkam Sample Environment" />
<property name="sections">
<util:list>
<util:map>
<entry key="title" value="Linkam Furnace" />
<entry key="description" value="Linkam Furnace controller" />
<entry key="elements">
<util:list>
<util:map>
<entry key="name" value="Temperature" />
<entry key="scannable" value-ref="linkam_temperature" />
<entry key="readonly" value="true" />
</util:map>
</util:list>
</entry>
</util:map>
</util:list>
</property>
</bean>
The view can be referenced in the usual way from menu items and perspectives etc.
This is based on uk.ac.gda.beamline.i19.shared.views.CommissioningViewFactory
as of commit 1ee5e754467119ffdef03e848d39913c60b4cbc7-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.ui.part.ViewPartCreates the view.voidvoidsetSections(List<Map<String, Object>> sections) voidMethods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setName
-
Constructor Details
-
CommissioningViewFactory
public CommissioningViewFactory()
-
-
Method Details
-
setHeader
-
setTitle
-
setSections
-
createView
public org.eclipse.ui.part.ViewPart createView()Description copied from class:FindableViewFactoryBaseCreates the view. Subclasses must override this method.- Specified by:
createViewin interfaceIViewFactory- Specified by:
createViewin classFindableViewFactoryBase
-