Ulrich_Laegeler at arburg.com wrote:
> 
> i have two views for one xml document.
> Now i want to have different context menus
> for the same elements in the two different views.
> Is it possible in a macro to read the view from which
> the macro was invoked?
> 
> 

I'm sorry but the answer is once again no.

A macro-command is a simple (and safe) construct which acts on the nodes 
and on the text or node selection. It has not been designed to be a 
general way to ``script'' XMLmind XML Editor.

If I had to implement a menu which depends on the view, I would write a 
  trivial command in Java which returns a string: the type of the view 
(based on the name of the CSS style sheet if any). This simple command 
would not be useful in itself.  This simple command would be useful only 
as part of a macro.

See http://www.xmlmind.com/xmleditor/_distrib/doc/dev/command.html






Reply via email to