Introduce singleTab property.
[gpl/argeo-suite.git] / core / org.argeo.suite.ui / src / org / argeo / suite / ui / SuiteLayer.java
1 package org.argeo.suite.ui;
2
3 import javax.jcr.Node;
4
5 import org.argeo.cms.Localized;
6 import org.argeo.cms.ui.CmsUiProvider;
7 import org.eclipse.swt.widgets.Composite;
8
9 /** An UI layer for the main work area. */
10 public interface SuiteLayer extends CmsUiProvider {
11         static enum Property {
12                 title, icon, weights, startMaximized, singleTab;
13         }
14
15         void view(CmsUiProvider uiProvider, Composite workArea, Node context);
16
17         default void open(CmsUiProvider uiProvider, Composite workArea, Node context) {
18                 view(uiProvider, workArea, context);
19         }
20
21         default Localized getTitle() {
22                 return null;
23         }
24 }