categoryLabels[i] = new Tab( ); categoryLabels[i].setText( pages[i].getDisplayLabel( ) );
Tab tab = new Tab( ); tab.setText( pages[i].getDisplayLabel( ) ); categoryLabels.put( pages[i].getCategoryKey( ), tab );
	public void setCategoryProvider( ICategoryProvider categoryProvider )	{		this.categoryProvider = categoryProvider;		if ( categoryProvider == null )		{			return;		}		if(categoryList == null)return;		ICategoryPage[] pages = categoryProvider.getCategories( );		if ( pages.length != 0 )		{			Tab[] categoryLabels = new Tab[pages.length];			for ( int i = 0; i < pages.length; i++ )			{				categoryLabels[i] = new Tab( );				categoryLabels[i].setText( pages[i].getDisplayLabel( ) );			}			categoryList.setElements( categoryLabels );			if ( categoryList.getTabList( ).length > 0 )			{				categoryList.setSelection( 0 );			}		}	}