Difference between revisions of "Selection View"
(Created page with " The Selection View is a standard Simantics view, which shows tabbed views about the current workbench selection. == Basic implementation == Selection view displays content for...") |
|||
Line 1: | Line 1: | ||
− | |||
The Selection View is a standard Simantics view, which shows tabbed views about the current workbench selection. | The Selection View is a standard Simantics view, which shows tabbed views about the current workbench selection. | ||
Line 16: | Line 15: | ||
A modelled implementation of the SelectionProcessor interface is org.simantics.views.swt.StandardSelectionProcessor. | A modelled implementation of the SelectionProcessor interface is org.simantics.views.swt.StandardSelectionProcessor. | ||
− | StandardSelectionProcessor seeks all instances of http://www.simantics.org/Views-1.0/TabContribution and adapts them to | + | StandardSelectionProcessor seeks all instances of http://www.simantics.org/Views-1.0/TabContribution and adapts them to org.simantics.views.swt.TabContribution. |
+ | |||
+ | StandardSelectionProcessor seeks all instances of http://www.simantics.org/Views-1.0/SelectionTransformation (which are also L0X.Function) and applies them to obtain a set of inputs, which is then feed to all TabContributions. |
Revision as of 07:02, 13 September 2011
The Selection View is a standard Simantics view, which shows tabbed views about the current workbench selection.
Basic implementation
Selection view displays content for the workbench selection, which is produced by the active workbench part. The main implementation of the Selection View is also contributed by the active workbench part.
The implementation class is org.simantics.browsing.ui.swt.IPropertyPage (needs refactoring).
The standard implementation is org.simantics.views.swt.StandardPropertyPage (needs refactoring).
Selection processing
StandardPropertyPage uses org.simantics.browsing.ui.SelectionProcessor for computing an ordered set of tabs from the given workbench selection. The tabs are implementations of org.simantics.browsing.ui.swt.ComparableTabContributor.
A modelled implementation of the SelectionProcessor interface is org.simantics.views.swt.StandardSelectionProcessor.
StandardSelectionProcessor seeks all instances of http://www.simantics.org/Views-1.0/TabContribution and adapts them to org.simantics.views.swt.TabContribution.
StandardSelectionProcessor seeks all instances of http://www.simantics.org/Views-1.0/SelectionTransformation (which are also L0X.Function) and applies them to obtain a set of inputs, which is then feed to all TabContributions.