Marama Code 124 ~ Hide Your Custome Event Handler
While reading marama WriteEventHandler codes, I found this method that helps to hide the event handlers until a specific icon is selected. Just beware that this method is only applicable for event handlers that were created in working workspace.
public boolean isRunnable() {
final MaramaShape s = this.getSelectedShape();
if (s == null) { return false; }
if (isEventHandlerShapeType(s.getShapeType())) { return true; }
else { return false; }
}
Advertisement
Categories: Uncategorized