[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Defining audits in GMF
|
Hello,
I just again got stuck while enriching my editors functionality. I want
to define some audits using Java. So I defined an Audit Container, an
Audit rule, a Domain Element Target (i set this to an EClass named
operator that is represented by a Node in the editor). After that I
generated the gmfgen model and set the properties as described in the
mindmap tutorial
(http://wiki.eclipse.org/index.php/GMF_Tutorial_Part_2#Validation). This
means the 'Validation Enabled' property of the Gen Diagram element is
set to 'true', as is the 'Validation Decorators' property and the
'Validation Provider Priority' I have set to medium. All properties i
didnÂt mention above have their initial values. In the generated code I
simple added "return false" so that every Node of the operator type
should produce an error. But when i use the editor i made nothing
happens validationwise. Any ideas?
Greetings,
Christian
P.S.: This is the implementation in the ValidationProvider class. Just
for your interest.
/**
* @generated NOT
*/
static class JavaAudits {
/**
* @generated NOT
*/
private static Boolean classSetConstraint(operator self) {
return false;
}
}