reportDesignHandle.getStyles( ).add( styleHandle );
if ( themeHandle != null ) { themeHandle.getStyles( ).add( styleHandle ); } else { reportDesignHandle.getStyles( ).add( styleHandle ); }
	public void run( )	{		if ( Policy.TRACING_ACTIONS )		{			System.out.println( "Add Style rule action >> Run ..." ); //$NON-NLS-1$		}		CommandStack stack = getActiveCommandStack( );		stack.startTrans( STACK_MSG_ADD_STYLE );		ModuleHandle reportDesignHandle = SessionHandleAdapter.getInstance( )				.getReportDesignHandle( );		// StyleHandle styleHandle = reportDesignHandle.getElementFactory( )		// .newStyle( null );		StyleHandle styleHandle = DesignElementFactory.getInstance( reportDesignHandle )				.newStyle( null );		try		{			StyleBuilder dialog = new StyleBuilder( PlatformUI.getWorkbench( )					.getDisplay( )					.getActiveShell( ), styleHandle, StyleBuilder.DLG_TITLE_NEW );			if ( dialog.open( ) == Window.OK )			{				reportDesignHandle.getStyles( ).add( styleHandle );				if ( !styleHandle.isPredefined( ) )				{					applyStyle( (SharedStyleHandle) styleHandle );				}				stack.commit( );			}		}		catch ( Exception e )		{			stack.rollbackAll( );			ExceptionHandler.handle( e );		}	}