GridData gdBTNFormatSpecifier = new GridData( ); gdBTNFormatSpecifier.widthHint = 20; btnFormatSpecifier.setLayoutData( gdBTNFormatSpecifier ); btnFormatSpecifier.setImage( UIHelper.getImage( "icons/obj16/formatbuilder.gif" ) ); btnFormatSpecifier.setToolTipText( Messages.getString( "Shared.Tooltip.FormatSpecifier" ) ); btnFormatSpecifier.addSelectionListener( this ); btnFormatSpecifier.getImage( ) .setBackground( btnFormatSpecifier.getBackground( ) );
{ GridData gdBTNFormatSpecifier = new GridData( ); gdBTNFormatSpecifier.widthHint = 20; gdBTNFormatSpecifier.horizontalIndent = -3; btnFormatSpecifier.setLayoutData( gdBTNFormatSpecifier ); btnFormatSpecifier.setImage( UIHelper.getImage( "icons/obj16/formatbuilder.gif" ) ); btnFormatSpecifier.setToolTipText( Messages.getString( "Shared.Tooltip.FormatSpecifier" ) ); btnFormatSpecifier.addSelectionListener( this ); btnFormatSpecifier.getImage( ) .setBackground( btnFormatSpecifier.getBackground( ) ); }
	public void getComponent( Composite parent )	{		cmpContent = new Composite( parent, SWT.NONE );		{			GridLayout glContent = new GridLayout( 2, false );			cmpContent.setLayout( glContent );			GridData gd = new GridData( GridData.FILL_BOTH );			cmpContent.setLayoutData( gd );		}		Composite cmpBasic = new Composite( cmpContent, SWT.NONE );		{			cmpBasic.setLayout( new GridLayout( 3, false ) );			cmpBasic.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		}		new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "AxisYSheetImpl.Label.Title" ) ); //$NON-NLS-1$		List keys = null;		if ( serviceprovider != null )		{			keys = serviceprovider.getRegisteredKeys( );		}		txtTitle = new ExternalizedTextEditorComposite( cmpBasic,				SWT.BORDER | SWT.SINGLE,				-1,				-1,				keys,				serviceprovider,				getAxisForProcessing( ).getTitle( ).getCaption( ).getValue( ) );		{			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			gd.horizontalSpan = 2;			txtTitle.setLayoutData( gd );			txtTitle.addListener( this );		}		Label lblType = new Label( cmpBasic, SWT.NONE );		lblType.setText( Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.Type" ) ); //$NON-NLS-1$		cmbTypes = new Combo( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY );		{			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			cmbTypes.setLayoutData( gd );			cmbTypes.addSelectionListener( this );		}		btnFormatSpecifier = new Button( cmpBasic, SWT.PUSH );		GridData gdBTNFormatSpecifier = new GridData( );		gdBTNFormatSpecifier.widthHint = 20;		btnFormatSpecifier.setLayoutData( gdBTNFormatSpecifier );		btnFormatSpecifier.setImage( UIHelper.getImage( "icons/obj16/formatbuilder.gif" ) ); //$NON-NLS-1$		btnFormatSpecifier.setToolTipText( Messages.getString( "Shared.Tooltip.FormatSpecifier" ) ); //$NON-NLS-1$		btnFormatSpecifier.addSelectionListener( this );		btnFormatSpecifier.getImage( )				.setBackground( btnFormatSpecifier.getBackground( ) );		Label lblOrigin = new Label( cmpBasic, SWT.NONE );		lblOrigin.setText( Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.Origin" ) ); //$NON-NLS-1$		cmbOrigin = new Combo( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY );		{			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			gd.horizontalSpan = 2;			cmbOrigin.setLayoutData( gd );			cmbOrigin.addSelectionListener( this );		}		boolean bValueOrigin = false;		if ( getAxisForProcessing( ).getOrigin( ) != null )		{			if ( getAxisForProcessing( ).getOrigin( )					.getType( )					.equals( IntersectionType.VALUE_LITERAL ) )			{				bValueOrigin = true;			}		}		lblValue = new Label( cmpBasic, SWT.NONE );		{			lblValue.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Value" ) ); //$NON-NLS-1$			lblValue.setEnabled( bValueOrigin );		}		txtValue = new TextEditorComposite( cmpBasic, SWT.BORDER | SWT.SINGLE );		{			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			gd.horizontalSpan = 2;			txtValue.setLayoutData( gd );			txtValue.addListener( this );			txtValue.setEnabled( bValueOrigin );		}		new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "AxisYSheetImpl.Label.Labels" ) ); //$NON-NLS-1$		btnVisible = new Button( cmpBasic, SWT.CHECK );		{			btnVisible.setText( Messages.getString( "AxisYSheetImpl.Label.Visible" ) ); //$NON-NLS-1$			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			gd.horizontalSpan = 2;			btnVisible.setLayoutData( gd );			btnVisible.addSelectionListener( this );			btnVisible.setSelection( getAxisForProcessing( ).getLabel( )					.isVisible( ) );		}		createButtonGroup( cmpContent );		populateLists( );	}