Group group = new Group( customPage, SWT.NONE ); group.setText( LABEL_CUSTOM_SETTINGS ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); group.setLayoutData( data ); group.setLayout( new GridLayout( 2, false ) );
createCustomSettingsPart( customPage );
	private Composite getCustomPage( Composite parent )	{		if ( customPage == null )		{			customPage = new Composite( parent, SWT.NULL );			customPage.setLayout( new GridLayout( 1, false ) );			Group group = new Group( customPage, SWT.NONE );			group.setText( LABEL_CUSTOM_SETTINGS );			GridData data = new GridData( GridData.FILL_HORIZONTAL );			group.setLayoutData( data );			group.setLayout( new GridLayout( 2, false ) );			Label label = new Label( group, SWT.NONE );			label.setText( LABEL_CUSTOM_EXAMPLE_FORMATS );			data = new GridData( );			data.horizontalSpan = 2;			label.setLayoutData( data );			label = new Label( group, SWT.NONE );			label.setText( LABEL_CUSTOM_SETTING_LABEL );			data = new GridData( );			data.horizontalSpan = 2;			label.setLayoutData( data );			createTable( group );			Composite container = new Composite( customPage, SWT.NONE );			data = new GridData( GridData.FILL_HORIZONTAL );			container.setLayoutData( data );			container.setLayout( new GridLayout( 2, false ) );			new Label( container, SWT.NULL ).setText( LABEL_FORMAT_CODE );			formatCode = new Text( container, SWT.SINGLE | SWT.BORDER );			formatCode.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );			formatCode.addModifyListener( new ModifyListener( ) {				public void modifyText( ModifyEvent e )				{					if ( hasLoaded )					{						updatePreview( );					}				}			} );			group = new Group( customPage, SWT.NONE );			group.setText( LABEL_PREVIEW_GROUP );			data = new GridData( GridData.FILL_HORIZONTAL );			group.setLayoutData( data );			GridLayout layout = new GridLayout( 2, false );			layout.verticalSpacing = 1;			group.setLayout( layout );			new Label( group, SWT.NONE ).setText( LABEL_PREVIEW_DATE_TIME );			previewTextBox = new Text( group, SWT.SINGLE | SWT.BORDER );			previewTextBox.setText( "" ); //$NON-NLS-1$			previewTextBox.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );			previewTextBox.addModifyListener( new ModifyListener( ) {				public void modifyText( ModifyEvent e )				{					setDefaultPreviewText( previewTextBox.getText( ) );					if ( hasLoaded )					{						updatePreview( );					}					if ( StringUtil.isBlank( previewTextBox.getText( ) ) )					{						guideLabel.setText( "" ); //$NON-NLS-1$					}					else					{						guideLabel.setText( ENTER_DATE_TIME_GUIDE_TEXT );					}				}			} );			new Label( group, SWT.NONE ).setText( "" ); //$NON-NLS-1$			guideLabel = new Label( group, SWT.NONE );			guideLabel.setText( "" ); //$NON-NLS-1$			Font font = JFaceResources.getDialogFont( );			FontData fData = font.getFontData( )[0];			fData.setHeight( fData.getHeight( ) - 1 );			guideLabel.setFont( new Font( Display.getCurrent( ), fData ) );			data = new GridData( GridData.FILL_HORIZONTAL );			guideLabel.setLayoutData( data );			new Label( group, SWT.NONE ).setText( LABEL_PREVIEW_LABEL );			cusPreviewLabel = new Label( group, SWT.NONE );			cusPreviewLabel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		}		return customPage;	}