executeSubMenuCallback : function(event){\r
var button = event.getTarget();\r
var callback = this.getMenuCallback();\r
- callback = qx.lang.Function.bind(callback, this.getMenuContext() || this);\r
+ var context;\r
+ if(this.getMenuContext()){\r
+ if(typeof(this.getMenuContext()) == "object") context = this.getMenuContext();\r
+ else if(typeof(this.getMenuContext()) == "string"){\r
+ if(this.getMenuContext().split(":")[0] == "view"){\r
+ var viewId = this.getMenuContext().split(":")[1];\r
+ context = org.argeo.ria.components.ViewsManager.getInstance().getViewPaneById(viewId).getContent();\r
+ }\r
+ }\r
+ }\r
+ callback = qx.lang.Function.bind(callback, context || this);\r
callback(button.getUserData("commandId")); \r
}, \r
/**\r