} else if ( e.widget.equals( btnInteractivity ) ) { popupShell = createPopupShell( ); popupSheet = new InteractivitySheet( popupShell, getContext( ), getAxisForProcessing( ).getTriggers( ), false, true ); getWizard( ).attachPopup( btnInteractivity.getText( ), -1, -1 );
	public void widgetSelected( SelectionEvent e )	{		// detach popup dialogue		if ( detachPopup( e.widget ) )		{			return;		}		if ( e.widget instanceof Button				&& ( ( (Button) e.widget ).getStyle( ) & SWT.TOGGLE ) == SWT.TOGGLE				&& ( (Button) e.widget ).getSelection( ) )		{			selectAllButtons( false );			( (Button) e.widget ).setSelection( true );		}		if ( e.widget.equals( btnAxisTitle ) )		{			popupShell = createPopupShell( );			popupSheet = new AxisTextSheet( popupShell,					getContext( ),					getAxisForProcessing( ),					getAxisAngleType( ) );			getWizard( ).attachPopup( btnAxisTitle.getText( ), -1, -1 );		}		else if ( e.widget.equals( btnGridlines ) )		{			popupShell = createPopupShell( );			popupSheet = new AxisGridLinesSheet( popupShell,					getContext( ),					getAxisForProcessing( ) );			getWizard( ).attachPopup( btnGridlines.getText( ), -1, -1 );		}		else if ( e.widget.equals( btnMarkers ) )		{			popupShell = createPopupShell( );			popupSheet = new AxisMarkersSheet( popupShell,					getContext( ),					getAxisForProcessing( ) );			getWizard( ).attachPopup( btnMarkers.getText( ), -1, -1 );		}		else if ( e.widget.equals( btnScale ) )		{			popupShell = createPopupShell( );			popupSheet = new AxisScaleSheet( popupShell,					getContext( ),					getAxisForProcessing( ) );			getWizard( ).attachPopup( btnScale.getText( ), -1, -1 );		}		if ( e.widget.equals( cmbTypes ) )		{			AxisType axisType = AxisType.getByName( LiteralHelper.axisTypeSet.getNameByDisplayName( cmbTypes.getText( ) ) );			// Update the Sample Data without event fired.			boolean isNotificaionIgnored = ChartAdapter.isNotificationIgnored( );			ChartAdapter.ignoreNotifications( true );			convertSampleData( axisType );			ChartAdapter.ignoreNotifications( isNotificaionIgnored );			// Set type and refresh the preview			getAxisForProcessing( ).setType( axisType );			// Update popup UI			refreshPopupSheet( );		}		else if ( e.widget.equals( cmbOrigin ) )		{			if ( LiteralHelper.intersectionTypeSet.getNameByDisplayName( cmbOrigin.getText( ) )					.equals( IntersectionType.VALUE_LITERAL.getName( ) ) )			{				lblValue.setEnabled( true );				txtValue.setEnabled( true );			}			else			{				lblValue.setEnabled( false );				txtValue.setEnabled( false );			}			getAxisForProcessing( ).getOrigin( )					.setType( IntersectionType.getByName( LiteralHelper.intersectionTypeSet.getNameByDisplayName( cmbOrigin.getText( ) ) ) );		}		else if ( e.widget.equals( btnVisible ) )		{			getAxisForProcessing( ).getLabel( )					.setVisible( btnVisible.getSelection( ) );			refreshPopupSheet( );		}		else if ( e.widget.equals( btnFormatSpecifier ) )		{			String sAxisTitle = Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.OrthogonalAxis" ); //$NON-NLS-1$			try			{				String sTitleString = getAxisForProcessing( ).getTitle( )						.getCaption( )						.getValue( );				int iSeparatorIndex = sTitleString.indexOf( ExternalizedTextEditorComposite.SEPARATOR );				if ( iSeparatorIndex > 0 )				{					sTitleString = sTitleString.substring( iSeparatorIndex );				}				else if ( iSeparatorIndex == 0 )				{					sTitleString = sTitleString.substring( ExternalizedTextEditorComposite.SEPARATOR.length( ) );				}				sAxisTitle += " (" + sTitleString + ")"; //$NON-NLS-1$ //$NON-NLS-2$			}			catch ( NullPointerException e1 )			{			}			FormatSpecifier formatspecifier = null;			if ( getAxisForProcessing( ).getFormatSpecifier( ) != null )			{				formatspecifier = getAxisForProcessing( ).getFormatSpecifier( );			}			FormatSpecifierDialog editor = new FormatSpecifierDialog( cmpContent.getShell( ),					formatspecifier,					sAxisTitle );			if ( !editor.wasCancelled( ) )			{				if ( editor.getFormatSpecifier( ) == null )				{					getAxisForProcessing( ).eUnset( ComponentPackage.eINSTANCE.getAxis_FormatSpecifier( ) );					return;				}				getAxisForProcessing( ).setFormatSpecifier( editor.getFormatSpecifier( ) );			}		}	}