Examples of DomainDisplayEvent


Examples of org.apache.cayenne.modeler.event.DomainDisplayEvent

        ApplicationProject project = (ApplicationProject) getCurrentProject();
        ProjectController mediator = getProjectController();

        project.getConfiguration().addDomain(domain);
        mediator.fireDomainEvent(new DomainEvent(this, domain, MapEvent.ADD));
        mediator.fireDomainDisplayEvent(new DomainDisplayEvent(this, domain));
    }
View Full Code Here

Examples of org.apache.cayenne.modeler.event.DomainDisplayEvent

  @Override
  public void undo() throws CannotUndoException {
    RemoveAction action = (RemoveAction) actionManager.getAction(RemoveAction.getActionName());
   
    controller.fireDomainDisplayEvent(new DomainDisplayEvent(this, domain));
   
    action.removeDataMap(domain, map);
  }
View Full Code Here

Examples of org.apache.cayenne.modeler.event.DomainDisplayEvent

            DataNodeDisplayEvent dnde = (DataNodeDisplayEvent) de;
            dnde.setDataNodeChanged(true);
            fireDataNodeDisplayEvent(dnde);
        }
        else if (de instanceof DomainDisplayEvent) {
            DomainDisplayEvent dde = (DomainDisplayEvent) de;
            dde.setDomainChanged(true);
            fireDomainDisplayEvent(dde);
        }

        // turn off refiring
        currentState.isRefiring = false;
View Full Code Here

Examples of org.apache.cayenne.modeler.event.DomainDisplayEvent

        controller.projectOpenedAction(project);

        // select default domain
        getProjectController().fireDomainDisplayEvent(
                new DomainDisplayEvent(this, domain));
    }
View Full Code Here

Examples of org.apache.cayenne.modeler.event.DomainDisplayEvent

                .getLastPathComponent();

        Object[] data = getUserObjects(currentNode);
        if (data.length == 0) {
            // this should clear the right-side panel
            DomainDisplayEvent domEvent = new DomainDisplayEvent(this, null);
            domEvent.setDomain((DataChannelDescriptor) mediator
                    .getProject()
                    .getRootNode());
            mediator.fireDomainDisplayEvent(domEvent);
            return;
        }

        Object obj = data[data.length - 1];
        if (obj instanceof DataChannelDescriptor) {
            mediator.fireDomainDisplayEvent(new DomainDisplayEvent(
                    this,
                    (DataChannelDescriptor) obj));
        }
        else if (obj instanceof DataMap) {
            if (data.length == 2) {
View Full Code Here

Examples of org.apache.cayenne.modeler.event.DomainDisplayEvent

    @Override
    public void undo() throws CannotUndoException {
        RemoveAction action = actionManager.getAction(RemoveAction.class);

        controller.fireDomainDisplayEvent(new DomainDisplayEvent(this, domain));

        action.removeDataMap(map);
    }
View Full Code Here

Examples of org.apache.cayenne.modeler.event.DomainDisplayEvent

        Object object = result.getSource();
        domain = (DataChannelDescriptor) object;
    }

    public void displayField(ProjectController mediator, JFrame frame) {
        DomainDisplayEvent event;
        event = new DomainDisplayEvent(frame, domain);
        mediator.fireDomainDisplayEvent(event);
    }
View Full Code Here

Examples of org.apache.cayenne.modeler.event.DomainDisplayEvent

                editor
                        .getProjectTreeView()
                        .getSelectionPath()
                        .getParentPath()
                        .getParentPath());
        DomainDisplayEvent event = new EntityDisplayEvent(
                editor.getProjectTreeView(),
                entity,
                entity.getDataMap(),
                (DataChannelDescriptor) getProjectController().getProject().getRootNode());
        getProjectController().fireDomainDisplayEvent(event);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.