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/RevertToTemplateAction.java
*/
	public RevertToTemplateAction( Object selectedObject, String text )
	{
		super( selectedObject, text );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction#doAction()
	 */
	protected boolean doAction( ) throws Exception
	{
		if ( getSelectedElement( ) == null )
		{
			return false;
		}
		else if ( getSelectedElement( ).isTemplateParameterValue( ) )
		{
			return ProviderFactory.createProvider( getSelectedElement( ) )
					.performRequest( getSelectedElement( ),
							new Request( IRequestConstants.REQUST_REVERT_TO_TEMPLATEITEM ) );
		}
		return false;
	}
	/**
	 * @return the model of selected GUI object.
	 */
	DesignElementHandle getSelectedElement( )
	{
		Object obj = super.getSelection( );