Client Side ServiceMethod - TheOpenCloudEngine/metaworks GitHub Wiki
Model (java)
@ServiceMethod(callByContent=true, mouseBinding="drag", target=ServiceMethodContext.TARGET_APPEND, clientSide = true)
public void drag(){
// empty the impl. use the javascript
}
FaceHelper (ejs.js)
var org_uengine_modeling_Symbol = function(objectId, className){
...
};
org_uengine_modeling_Symbol.prototype = {
drag : function(object, autowiredObjects){
var clipboard = mw3.getAutowiredObject("org.metaworks.widget.Clipboard");
clipboard.content = (object);
}
}