Exemplo n.º 1
0
 public void processExistingSelection(EventObject e) {
   EmbeddableDisplayEvent ede =
       new EmbeddableDisplayEvent(
           this,
           mediator.getCurrentEmbeddable(),
           mediator.getCurrentDataMap(),
           (DataChannelDescriptor) mediator.getProject().getRootNode());
   mediator.fireEmbeddableDisplayEvent(ede);
 }
  static void fireEmbeddableEvent(
      Object src, ProjectController mediator, DataMap dataMap, Embeddable embeddable) {

    mediator.fireEmbeddableEvent(new EmbeddableEvent(src, embeddable, MapEvent.ADD), dataMap);
    EmbeddableDisplayEvent displayEvent =
        new EmbeddableDisplayEvent(
            src, embeddable, dataMap, (DataChannelDescriptor) mediator.getProject().getRootNode());
    displayEvent.setMainTabFocus(true);
    mediator.fireEmbeddableDisplayEvent(displayEvent);
  }