1 56 57 package org.objectstyle.cayenne.modeler.dialog.validator; 58 59 import javax.swing.JFrame ; 60 61 import org.objectstyle.cayenne.access.DataDomain; 62 import org.objectstyle.cayenne.modeler.ProjectController; 63 import org.objectstyle.cayenne.modeler.event.DomainDisplayEvent; 64 import org.objectstyle.cayenne.project.validator.ValidationInfo; 65 66 72 public class DomainErrorMsg extends ValidationDisplayHandler { 73 74 78 public DomainErrorMsg(ValidationInfo result) { 79 super(result); 80 81 Object [] path = result.getPath().getPath(); 82 int len = path.length; 83 84 if (len >= 1) { 85 domain = (DataDomain) path[len - 1]; 86 } 87 } 88 89 public void displayField(ProjectController mediator, JFrame frame) { 90 DomainDisplayEvent event; 91 event = new DomainDisplayEvent(frame, domain); 92 mediator.fireDomainDisplayEvent(event); 93 } 94 95 } | Popular Tags |