Hi Bogdan,
About this part:
I do not understand your question: "Where should I put the code to set
this offset in order to execute it every time the notation changes, ..."
I want to put a line of code like this
"ProjectManager.getManager().getCurrentProject().getProjectSettings().getNotationName().setOffset(size)"
in every existing notation.
You say "in" every notation - so you mean:
setOffset(size);
instead of:
ProjectManager.getManager().getCurrentProject()
.getProjectSettings().getNotationName().setOffset(size)
this since getNotationName returns a NotationName, i.e. the notation
language itself.
IIUC, you do store the offset in the NotationName - which is correct.
But I need this part of code to be executed only when the notation
changes.
You store the offset in the NotationName, so the only thing you need is to
set it correctly at creation time of the NotationName for Java, and the one
for UML 1.4.
I've tried InitNotationJava, InitNotationUML, but they are called at the
beginning when initializing subsystems, not everytime the notation is
changed.
These are the right locations, IMHO.
Regards,
Michiel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]