Search in sources :

Example 6 with DomainDisplayEvent

use of org.apache.cayenne.modeler.event.DomainDisplayEvent in project cayenne by apache.

the class DomainDisplayEventType method fireLastDisplayEvent.

@Override
public void fireLastDisplayEvent() {
    DataChannelDescriptor dataChannel = (DataChannelDescriptor) controller.getProject().getRootNode();
    if (!dataChannel.getName().equals(preferences.getDomain())) {
        return;
    }
    DomainDisplayEvent domainDisplayEvent = new DomainDisplayEvent(this, dataChannel);
    controller.fireDomainDisplayEvent(domainDisplayEvent);
}
Also used : DataChannelDescriptor(org.apache.cayenne.configuration.DataChannelDescriptor) DomainDisplayEvent(org.apache.cayenne.modeler.event.DomainDisplayEvent)

Aggregations

DomainDisplayEvent (org.apache.cayenne.modeler.event.DomainDisplayEvent)6 DataChannelDescriptor (org.apache.cayenne.configuration.DataChannelDescriptor)3 EntityDisplayEvent (org.apache.cayenne.modeler.event.EntityDisplayEvent)2 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1 DataNodeDescriptor (org.apache.cayenne.configuration.DataNodeDescriptor)1 DataMap (org.apache.cayenne.map.DataMap)1 DbEntity (org.apache.cayenne.map.DbEntity)1 Embeddable (org.apache.cayenne.map.Embeddable)1 Entity (org.apache.cayenne.map.Entity)1 ObjEntity (org.apache.cayenne.map.ObjEntity)1 Procedure (org.apache.cayenne.map.Procedure)1 QueryDescriptor (org.apache.cayenne.map.QueryDescriptor)1 CayenneModelerController (org.apache.cayenne.modeler.CayenneModelerController)1 CayenneModelerFrame (org.apache.cayenne.modeler.CayenneModelerFrame)1 RemoveAction (org.apache.cayenne.modeler.action.RemoveAction)1 EditorView (org.apache.cayenne.modeler.editor.EditorView)1 DataMapDisplayEvent (org.apache.cayenne.modeler.event.DataMapDisplayEvent)1 DataNodeDisplayEvent (org.apache.cayenne.modeler.event.DataNodeDisplayEvent)1 EmbeddableDisplayEvent (org.apache.cayenne.modeler.event.EmbeddableDisplayEvent)1 ProcedureDisplayEvent (org.apache.cayenne.modeler.event.ProcedureDisplayEvent)1