CustomList() {
initWidget( panel );
if ( currentPart != null ) {
final String ctitle = ( (WorkbenchPartPresenter.View) partContentView.get( currentPart.getK1() ).getWidget( 0 ) ).getPresenter().getTitle();
panel.add( new NavLink( ctitle ) {{
addClickHandler( new ClickHandler() {
@Override
public void onClick( final ClickEvent event ) {
}
} );
}} );
for ( final PartDefinition part : parts ) {
final String title = ( (WorkbenchPartPresenter.View) partContentView.get( part ).getWidget( 0 ) ).getPresenter().getTitle();
panel.add( new NavLink( title ) {{
addClickHandler( new ClickHandler() {
@Override
public void onClick( final ClickEvent event ) {
selectPart( part );
// presenter.selectPart( part );