numColumns = 8;
numColumns = 9;
    public StatusLine( MainTab mainTab ) {		GridData gd;        this.mainTab = mainTab;        this.core = mainTab.getCore();        mainComposite = new Composite( mainTab.getMainComposite(), SWT.BORDER );        gridLayout = CGridLayout.createGL( 1, 0, 0, 0, 0, false );        mainComposite.setLayout( gridLayout );        mainComposite.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );        /*         * This hidden composite contains linkEntry which is displayed         * on demand from linkEntryItem         */        createLinkEntry( mainComposite );        /* the linkEntry */        new LinkEntry( this, this.core, linkEntryComposite );        this.composite = new Composite( mainComposite, SWT.NONE );        int numColumns = 7;        if ( ( G2Gui.getCoreConsole() != null ) && PreferenceLoader.loadBoolean( "advancedMode" ) )            numColumns = 8;        gridLayout = CGridLayout.createGL( numColumns, 0, 0, 0, 0, false );        this.composite.setLayout( gridLayout );        composite.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );        /*         *  the left field          */        new NetworkItem( this, this.core );		Label separator0 = new Label(composite, SWT.SEPARATOR |SWT.VERTICAL);		gd = new GridData (GridData.FILL_VERTICAL);					/*heightHint of 0 is nescessary that this Label don't blow up the status-line*/		gd.heightHint = 0;		separator0.setLayoutData( gd );                if ( ( G2Gui.getCoreConsole() != null ) && PreferenceLoader.loadBoolean( "advancedMode" ) ){            new CoreConsoleItem( this, this.core );			Label separator = new Label(composite, SWT.SEPARATOR |SWT.VERTICAL);			gd = new GridData (GridData.FILL_VERTICAL);					/*heightHint of 0 is nescessary that this Label don't blow up the status-line*/			gd.heightHint = 0;			separator.setLayoutData( gd );        }        /* the toggle for linkEntry */        new LinkEntryItem( this, this.core );				Label separator1 = new Label(composite, SWT.SEPARATOR |SWT.VERTICAL);		gd = new GridData (GridData.FILL_VERTICAL);				/*heightHint of 0 is nescessary that this Label don't blow up the status-line*/		gd.heightHint = 0;		separator1.setLayoutData( gd );		        /* the fill field */        Composite middle = new Composite( composite, SWT.NONE );        middle.setLayout( new FillLayout() );        middle.setLayoutData( new GridData( GridData.FILL_BOTH ) );        label = new CLabel( middle, SWT.BORDER );        label.setText( "" );        		Label separator2 = new Label(composite, SWT.SEPARATOR |SWT.VERTICAL);		gd = new GridData (GridData.FILL_VERTICAL);				/*heightHint of 0 is nescessary that this Label don't blow up the status-line*/		gd.heightHint = 0;		separator2.setLayoutData( gd );        /* the right field */        new SpeedItem( this, this.core );    }