txtMinSlice.setText( String.valueOf( ( (ChartWithoutAxes) getChart( ) ).getMinSlice( ) ) ); txtMinSlice.addListener( this );
txtMinSlice.setValue( ( (ChartWithoutAxes) getChart( ) ).getMinSlice( ) ); txtMinSlice.addModifyListener( this );
	private void createPieAxisArea( Composite parent )	{		lblMinSlice = new Label( parent, SWT.NONE );		{			lblMinSlice.setText( Messages.getString( "PieBottomAreaComponent.Label.MinimumSlice" ) ); //$NON-NLS-1$			lblMinSlice.setToolTipText( TOOLTIP_MINIMUM_SLICE );		}		Composite cmpMinSlice = new Composite( parent, SWT.NONE );		{			GridLayout gridLayout = new GridLayout( 3, false );			gridLayout.marginWidth = 0;			gridLayout.marginHeight = 0;			cmpMinSlice.setLayout( gridLayout );			cmpMinSlice.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		}		cmbMinSlice = new Combo( cmpMinSlice, SWT.DROP_DOWN | SWT.READ_ONLY );		{			cmbMinSlice.setToolTipText( TOOLTIP_MINIMUM_SLICE );			cmbMinSlice.setItems( MINMUM_SLICE_ITEMS );			cmbMinSlice.setText( ( (ChartWithoutAxes) getChart( ) ).isMinSlicePercent( )					? MINMUM_SLICE_ITEMS[0] : MINMUM_SLICE_ITEMS[1] );			cmbMinSlice.addSelectionListener( this );		}		txtMinSlice = new TextEditorComposite( cmpMinSlice, SWT.BORDER );		{			GridData gridData = new GridData( GridData.FILL_HORIZONTAL );			txtMinSlice.setLayoutData( gridData );			txtMinSlice.setToolTipText( TOOLTIP_MINIMUM_SLICE );			txtMinSlice.setText( String.valueOf( ( (ChartWithoutAxes) getChart( ) ).getMinSlice( ) ) );			txtMinSlice.addListener( this );		}		lblBottomPercent = new Label( cmpMinSlice, SWT.NONE );		lblBottomPercent.setText( "%" ); //$NON-NLS-1$		lblBottomPercent.setVisible( ( (ChartWithoutAxes) getChart( ) ).isMinSlicePercent( ) );		lblLabel = new Label( parent, SWT.NONE );		{			lblLabel.setText( Messages.getString( "PieBottomAreaComponent.Label.MinSliceLabel" ) ); //$NON-NLS-1$			lblLabel.setToolTipText( TOOLTIP_MINIMUM_SLICE );		}		List keys = null;		if ( getContext( ).getUIServiceProvider( ) != null )		{			keys = getContext( ).getUIServiceProvider( ).getRegisteredKeys( );		}		txtLabel = new ExternalizedTextEditorComposite( parent,				SWT.BORDER,				-1,				-1,				keys,				getContext( ).getUIServiceProvider( ),				( (ChartWithoutAxes) getChart( ) ).getMinSliceLabel( ) != null						? ( (ChartWithoutAxes) getChart( ) ).getMinSliceLabel( )						: "" ); //$NON-NLS-1$		{			GridData gdTXTTitle = new GridData( GridData.FILL_HORIZONTAL );			txtLabel.setLayoutData( gdTXTTitle );			txtLabel.setEnabled( ( (ChartWithoutAxes) getChart( ) ).getMinSlice( ) != 0 );			txtLabel.addListener( this );		}	}