Examples of ProfileNode


Examples of com.insightfullogic.honest_profiler.core.collector.ProfileNode

    private final FakeConsole console = new FakeConsole();
    private final ConsoleUserInterface ui = new ConsoleUserInterface(console);

    @Test
    public void rendersSingleMethod() {
        ProfileNode root = new ProfileNode(ProfileFixtures.printf, 1.0);
        Profile profile = new Profile(2, asList(new FlatProfileEntry(ProfileFixtures.printf, 1.0, 0.0)), toTrees(root));

        ui.accept(profile);

        console.isShowingTraces(2);
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.collector.ProfileNode

        return asList(new ProfileTree(0L, root, 1));
    }

    @Test
    public void rendersMultiBranchProfile() {
        ProfileNode left = new ProfileNode(ProfileFixtures.println, 0.5);
        ProfileNode right = new ProfileNode(ProfileFixtures.append, 0.5);
        ProfileNode root = new ProfileNode(ProfileFixtures.printf, 1, asList(left, right));
        Profile profile = new Profile(2, asList(new FlatProfileEntry(ProfileFixtures.printf, 1.0, 0.0)), toTrees(root));

        ui.accept(profile);

        console.isShowingTraces(2);
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

        return node == null ? Collections.emptyList() : ((ProfileNode) node).getPropertySourceList();
    }

    @Override
    protected CreateJCloudsContainerAction createCloudContainerAction(Object current) {
        final ProfileNode node = (ProfileNode) current;
        return new CreateJCloudsContainerAction(node.getVersionNode(), null, node);
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

        return new CreateJCloudsContainerAction(node.getVersionNode(), null, node);
    }

    @Override
    protected CreateSshContainerAction createSshContainerAction(Object current) {
        final ProfileNode node = (ProfileNode) current;
        return new CreateSshContainerAction(node.getVersionNode(), null, node);
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

        return new CreateSshContainerAction(node.getVersionNode(), null, node);
    }

    @Override
    protected CreateChildContainerAction createChildContainerAction(Object current) {
        final ProfileNode node = (ProfileNode) current;
        return new CreateChildContainerAction(node);
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

  }
 
  private void processDependenciesChange(List dependencies) {
    this.formModel.clearDependencies();
    for (Object o : dependencies) {
      ProfileNode p = (ProfileNode)o;
      this.formModel.addDependency(p.getProfile());
    }
  }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

        if (nav != null) {
          Object oSel = Selections.getFirstSelection(event.getSelection());
          if (oSel != null && oSel instanceof ProfileStatusDTO) {
            ProfileStatusDTO s = asProfileStatus(oSel);
            String profileId = s.getProfile();
            ProfileNode profileNode = searchProfile(nav, profileId, getFabric().getVersionsNode());
            if (profileNode != null) nav.selectReveal(new StructuredSelection(profileNode));
          }
        }
      }
    });
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

    fabric.addFabricUpdateRunnable(refreshRunnable);
    updateData();
  }

  private ProfileNode searchProfile(FabricNavigator nav, String profileId, Node node) {
    ProfileNode result = null;
   
    if (node instanceof ProfileNode &&
      ((ProfileNode)node).getId().equals(profileId)) {
      // found the profile
      result = ((ProfileNode)node);
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

  protected CreateChildContainerAction createChildContainerAction(Fabric fabric) {
    return new CreateChildContainerAction(fabric);
  }

  protected void updateActionStatus() {
    ProfileNode profileNode = getSelectedProfileNode();
    getCreateChildContainerAction().setProfileNode(profileNode);
    getCreateSshContainerAction().setProfileNode(profileNode);
    getCreateCloudContainerAction().setProfileNode(profileNode);
  }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

    return children != null && children.length > 0;
  }

  @Override
  public Object getParent(Object element) {
    ProfileNode node = Profiles.toProfileNode(element);
    if (node != null) {
      return Profiles.toProfileNode(node.getParent());
    }
    return null;
  }
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.