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/views/actions/CutAction.java
{
			System.out.println( "Cut action >> Cut " + getSelection( ) ); 
		}
		Object cloneElements = DNDUtil.cloneSource( getSelection( ) );
		DeleteAction action = createDeleteAction( getSelection( ) );
		action.run( );
		if ( action.hasExecuted( ) )
		{
			Clipboard.getDefault( ).setContents( cloneElements );
		}
	}
	protected DeleteAction createDeleteAction( final Object objects )
	{
		return new DeleteAction( objects ) {
			/*
			 * (non-Javadoc)
			 * 
			 * @see org.eclipse.birt.report.designer.internal.ui.views.actions.DeleteAction#getTransactionLabel()
			 */
			protected String getTransactionLabel( )
			{
				if ( objects instanceof IStructuredSelection )
				{
					return Messages.getString( "CutAction.trans" ); 
				}
				return DEFAULT_TEXT + " " + DEUtil.getDisplayLabel( objects ); 
			}
		};
	}
}