JComponent sp = getSearchPanel();
gbc.gridx = 0; gbc.gridy = 1; gbc.fill = GridBagConstraints.BOTH; gbc.weighty = 0;
gbl.addLayoutComponent(sp,gbc);
treePanel.add(sp);
ObjectStoreRootProvider provider = ObjectStoreBrowserPlugin.getRootProvider();
/** Create object store **/
if ( provider == null || provider.getRoots().isEmpty() )
{
JOptionPane.showMessageDialog(this, "No object store roots found, object store is empty", "Error", JOptionPane.WARNING_MESSAGE);
dispose();
}
else
{
String rootStr = (String)provider.getRoots().firstElement();
_objectStore = new ObjectStore(new ClassName(rootStr));
_treeModel = new DefaultTreeModel(createTree());
_tree = new JTree(_treeModel);