if (insertView == null && hasInsertView()) {
insertView = new MasterView(getIndex());
DcTable table = new DcTable(this, false, true);
table.setDynamicLoading(false);
View view = new CachedChildView(insertView, View._TYPE_INSERT, table, getObjectNamePlural(), getIcon16(), MasterView._TABLE_VIEW);
table.setView(view);
insertView.addView(MasterView._TABLE_VIEW, view);
}
if (searchView == null && hasSearchView()) {
searchView = new MasterView(getIndex());
searchView.setTreePanel(this);
DcTable table = new DcTable(this, false, true);
View view = new View(searchView, View._TYPE_SEARCH, table, getObjectNamePlural(), getIcon16(), MasterView._TABLE_VIEW);
table.setView(view);
searchView.addView(MasterView._TABLE_VIEW, view);
}
}