if (scrollPane != null) {
((IPanel) selectorComponent).add(scrollPane, getTreeConstraints());
}
// Create search device panel
IPanel searchPanel = CometeWidgetFactory.createPanel(selectorComponent, 0);
if (searchPanel != null) {
searchPanel.setLayout(getSearchPanelLayout());
// Create search field
expressionText = CometeWidgetFactory.createTextField(searchPanel, 0);
if (expressionText != null) {
searchPanel.add(expressionText, getSearchFieldConstraints());
}
// Create button
IButton matchButton = CometeWidgetFactory.createButton(searchPanel, 0);
if (matchButton != null) {
matchButton.setText("Match");
matchButton.addButtonListener(this);
searchPanel.add(matchButton, getSearchButtonConstraints());
}
// Add search panel
((IPanel) selectorComponent).add(searchPanel, getSearchPanelConstraints());
}