Exemplo n.º 1
0
  /** Take the server combo's selection and apply it to the viewer */
  private void handleServerComboSelection() {
    TeiidEmptyNode emptyNode = new TeiidEmptyNode();
    // populate viewer
    String serverName = jbossServerCombo.getText();
    IServer server = serverMap.get(serverName);
    if (server == null) {
      viewer.setInput(emptyNode);
    } else {
      viewer.setInput(server);
    }

    // Ensures that the action provider is properly initialised in this view
    IStructuredSelection selection = new StructuredSelection(emptyNode);
    getNavigatorActionService().setContext(new ActionContext(selection));
    getNavigatorActionService().fillActionBars(getViewSite().getActionBars());
  }