I tried something like

 ComponentHelper componenthelper =
ComponentHelper.getComponentHelper(project());
 MacroDef def = (MacroDef)
componenthelper.getTaskDefinitions().get(mymacroname);

just in order to understand that Hastable getTaskDefinitions() contains a
String => Class relation.

So where are those MacroDef's hidden?

So your 'def' is null, right?

Try not casting it to MacroDef, and see which kind of Java Class is
returned, if any. It may be an UnknownElement (my guess), a
MacroInstance, etc...

From the UE, you may be able to get a MacroInstance or a MacroDef, and
if the later, configure it into a MacroInstance, which is what you
want to run.

I vaguely know this code only. Peter's the expert. --D

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to