EditWidgetAnnotationAction.js 879 B

1234567891011121314151617181920212223242526
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2001, 2012
  6. *|
  7. *| US Government Users Restricted Rights - Use, duplication or
  8. *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *|
  10. *+------------------------------------------------------------------------+
  11. */
  12. /**
  13. * EditWidgetAnnotationAction - implements editing an existing annotation to the cognos viewer widget
  14. */
  15. function EditWidgetAnnotationAction() {}
  16. EditWidgetAnnotationAction.prototype = new AnnotationAction();
  17. EditWidgetAnnotationAction.prototype.execute = function()
  18. {
  19. var viewer = this.getCognosViewer();
  20. var widget = viewer.getViewerWidget();
  21. if (widget) {
  22. window.setTimeout(function () { widget.getAnnotationHelper().editWidgetComment(); },0);
  23. }
  24. };