public FeatureSelectionTable(Composite parent, FeatureLayer featureLayer, IPanel panel) {
    BatikApplication.instance().getContext().propagate(this);
    this.featureLayer = featureLayer;
    this.fs = featureLayer.featureSource();
    this.panel = panel;

    parent.setLayout(FormLayoutFactory.defaults().create());

    // topbar
    Composite topbar = on(tk().createComposite(parent)).fill().noBottom().height(36).control();
    topbar.setLayout(FormLayoutFactory.defaults().spacing(10).margins(3).create());

    // closeBtn
    Button closeBtn = tk().createButton(topbar, "", SWT.PUSH, SWT.FLAT);
    closeBtn.setToolTipText("Close table");
    closeBtn.setImage(
        BatikPlugin.images()
            .svgImage(
                "close.svg", SvgImageRegistryHelper.NORMAL12)); // P4Plugin.TOOLBAR_ICON_CONFIG ) );
    on(closeBtn).left(0).top(0).height(26).width(28);
    closeBtn.addSelectionListener(
        selectionListener(
            ev -> {
              close();
            }));

    // title
    Label title = tk().createLabel(topbar, abbreviate(featureLayer.layer().label.get(), 20));
    title.setFont(MdAppDesign.font(FontStyle.Title));
    on(title).top(0, 1).left(closeBtn, -8);

    // seach
    createTextSearch(topbar);
    on(searchText.getControl()).left(title).top(0).width(250);

    // toolbar
    toolbar = tk().createToolbar(topbar, SWT.FLAT);
    on(toolbar.getControl()).fill().noLeft().right(100);
    ContributionManager.instance().contributeTo(toolbar, panel, TOOLBAR_TAG);

    // table viewer
    createTableViewer(parent);
    on(viewer.getTable()).fill().top(topbar);

    // listen to commit events
    EventManager.instance()
        .subscribe(
            this,
            TypeEventFilter.ifType(
                FeatureEvent.class,
                ev -> ev.getType() == Type.COMMIT && ev.getFeatureSource() == fs));

    // listen to click events
    EventManager.instance()
        .subscribe(
            this,
            TypeEventFilter.ifType(
                FeatureClickEvent.class,
                ev -> ev.getSource() == this.featureLayer && ev.clicked.isPresent()));
  }