hello,
in my editor the root edtipart has an EAtribute and i need to get that
attribute but it seems to not be working. i can reach to it but i get a
cast exception everytime i try to get it. can some of you tell me how can
i access the attribute of my root edit part of my editor?
i can access it with
((XXXImpl)this.getDiagramGraphicalViewer().getContents()).getAtribute();
inside the YYYYDiagramEditor class but i get
java.lang.ClassCastException: YYYY.diagram.edit.parts.EditorEditPart
cannot be cast to YYYY.impl.XXXImpl
when i try this
((EditorEditPart)this.getDiagramGraphicalViewer().getContents()).getAtribute();
then the attribute is not visible.