IActivityRecord command = new ChartElementCommandImpl(); this.reporthandle.getCommandStack().execute(command);
IElementCommand command = new ChartElementCommandImpl();  ((ActivityStack)this.reporthandle.getCommandStack()).execute(command);
    private void addCommandToActivityStack()    {        if (reporthandle == null)        {            return;        }        IActivityRecord command = new ChartElementCommandImpl();        this.reporthandle.getCommandStack().execute(command);    }