Personal tools
You are here: Home Developer Developer Forum Actor and Workflow Design Interest Group Custom mouse double-click action

Custom mouse double-click action

Up to Actor and Workflow Design Interest Group

Custom mouse double-click action

Posted by Ron Mak at March 10. 2011

I've created a custom Splash actor that extends the Transformer actor. Currently when I double-click my custom actor, the Edit Parameters dialog box pops up. I want to replace that action with one that starts one of my applications.

Where or how in the code do I replace the standard Transformer mouse double-click action (or the mouse action listener) with my own?

Re: Custom mouse double-click action

Posted by Derik Barseghian at March 24. 2011

Hi Ron,

I'm just starting to look into doing something similar. I've found this thread:

http://www.mail-archive.com/ptolemy-hackers%40eecs.berkeley.edu/msg01211.html

Checking commit log dates, I suspect that was for work on the DistributedCompositeActor, which has a custom dialog (DCAEditorPane) when you double-click on it. I haven't looked into how one would instead immediately launch their own external application, but at the very least this is an example of a custom dialog on which you could e.g. place a button to invoke your application.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}

https://code.kepler-project.org/code/kepler/trunk/modules/master-slave/src/org/kepler/distributed/DistributedCompositeActor.java

Derik

 

Previously Ron Mak wrote:

I've created a custom Splash actor that extends the Transformer actor. Currently when I double-click my custom actor, the Edit Parameters dialog box pops up. I want to replace that action with one that starts one of my applications.

Where or how in the code do I replace the standard Transformer mouse double-click action (or the mouse action listener) with my own?

 

Powered by Ploneboard
Document Actions