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/DeleteAction.java
}
			return true;
		}
		return true;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction#getTransactionLabel()
	 */
	protected String getTransactionLabel( )
	{
		if ( getSelection( ) instanceof IStructuredSelection )
		{
			return Messages.getString( "DeleteAction.trans" ); 
		}
		return DEFAULT_TEXT + " " + DEUtil.getDisplayLabel( getSelection( ) ); 
	}
	protected Command createDeleteCommand( Object objects )
	{
		return new DeleteCommand( objects );
	}
	/**
	 * Returns if user press OK to run the action.
	 */
	public boolean hasExecuted( )
	{
		return hasExecuted;
	}
}