Bug 166015 Refactor designer actions to eclipse command framework
Eclipse command framework provide a more explicit way to manage UI actions contributions, we can take it's advantage to make our actions code more clean and maintainable.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/actions/DeleteRowAction.java
if ( !canDrop( (RowHandle) it.next( ) ) )
			{
				return false;
			}
		}
		return true;
	}
	private boolean canDrop( RowHandle handle )
	{
		return ( (RowHandle) handle ).canDrop( );
	}
	/**
	 * Runs this action.
	 * 
	 */
	public void run( )
	{
		if ( Policy.TRACING_ACTIONS )
		{
			System.out.println( "Delete row action >> Run ..." ); 
		}
		TableEditPart part = getTableEditPart( );
		if ( part != null )
		{
			EditPartViewer viewer = part.getViewer( );
			part.deleteRow( getRowNumbers( ) );
			viewer.select( part );
		}
	}
}