Package org.fusesource.ide.commons.tree

Examples of org.fusesource.ide.commons.tree.RefreshableUI


  @Override
  protected void refreshUI() {
    super.refreshUI();
    Collection<EndpointSchemeNode> values = schemeNodes.values();
    RefreshableUI ui = getRefreshableUI();
    if (ui != null) {
      for (EndpointSchemeNode schemeNode : values) {
        ui.fireRefresh(schemeNode, false);
      }
    }
  }
View Full Code Here


    if (containers != null) {
      containers.refresh();

      // expand the agents
      if (changeSelectionOnCreate) {
        RefreshableUI refreshableUI = getRefreshableUI();
        if (refreshableUI instanceof HasViewer) {
          HasViewer hv = (HasViewer) refreshableUI;
          Viewer viewer = hv.getViewer();
          if (viewer instanceof CommonViewer) {
            final CommonViewer cv = (CommonViewer) viewer;
View Full Code Here

  /* (non-Javadoc)
  * @see org.fusesource.ide.fabric8.ui.FabricConnectionListener#onFabricConnected()
  */
  @Override
  public void onFabricConnected() {
    RefreshableUI refreshableUI = getRefreshableUI();
    if (refreshableUI instanceof HasViewer) {
      HasViewer hv = (HasViewer) refreshableUI;
      Viewer viewer = hv.getViewer();
      final Fabric fabric = this;
      if (viewer instanceof CommonViewer) {
View Full Code Here

      onFabricDetailsAdded(details);
    }
  }

  protected void onFabricDetailsAdded(ConfigurationDetails details) {
    RefreshableUI refreshableUI = fabrics.getRefreshableUI();
    // TODO refresh???
    if (refreshableUI instanceof HasViewer) {
      HasViewer v = (HasViewer) refreshableUI;
      v.getViewer().setSelection(new StructuredSelection(details));
    }
View Full Code Here

    this.refreshableUI = refreshableUI;

    addAction = new CloudDetailsAddAction() {
      @Override
      protected void onCloudDetailsAdded(ConfigurationDetails details) {
        RefreshableUI refreshableUI = getRefreshableUI();
        if (refreshableUI instanceof HasViewer) {
          HasViewer v = (HasViewer) refreshableUI;
          v.getViewer().setSelection(new StructuredSelection(details));
        }
      }
View Full Code Here

TOP

Related Classes of org.fusesource.ide.commons.tree.RefreshableUI

Copyright © 2018 www.massapicom. 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.