Examples of LiveBeansModel


Examples of org.springframework.ide.eclipse.beans.ui.livegraph.model.LiveBeansModel

            "To open the livebeans graph a process must be run with the following or similar VM arguments:\n\n"
            + BootLaunchShortcut.liveBeanVmArgs("${jmxPort}")
        );
      }

      LiveBeansModel model = LiveBeansModelGenerator.connectToModel(serviceUrl, /*username*/null, /*password*/null, /*appName*/"", project);
      IViewPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
          .showView(LiveBeansGraphView.VIEW_ID);
      if (part instanceof LiveBeansGraphView) {
        ((LiveBeansGraphView) part).setInput(model);
      }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.livegraph.model.LiveBeansModel

  @Override
  public void run() {
    if (dialog.open() == IDialogConstants.OK_ID) {
      try {
        LiveBeansModel model = LiveBeansModelGenerator.connectToModel(dialog.getServiceUrl(),
            dialog.getUsername(), dialog.getPassword(), dialog.getApplicationName(), /*project*/null);
        view.setInput(model);
      }
      catch (CoreException e) {
        Status status = new Status(IStatus.INFO, LiveGraphUiPlugin.PLUGIN_ID, e.getMessage(), e);
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.livegraph.model.LiveBeansModel

  }

  @Override
  public void run() {
    try {
      LiveBeansModel model = view.getInput();
      if (model != null) {
        view.setInput(LiveBeansModelGenerator.refreshModel(model));
      }
    }
    catch (CoreException e) {
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.livegraph.model.LiveBeansModel

    return null;
  }

  public Object[] getElements(Object inputElement) {
    if (inputElement instanceof LiveBeansModel) {
      LiveBeansModel model = (LiveBeansModel) inputElement;
      if (view.getGroupByMode() == LiveBeansGraphView.GROUP_BY_RESOURCE) {
        return model.getBeansByResource().toArray();
      }
      else if (view.getGroupByMode() == LiveBeansGraphView.GROUP_BY_CONTEXT) {
        return model.getBeansByContext().toArray();
      }
    }
    return null;
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.livegraph.model.LiveBeansModel

    return null;
  }

  public Object[] getElements(Object inputElement) {
    if (inputElement instanceof LiveBeansModel) {
      LiveBeansModel model = (LiveBeansModel) inputElement;
      return model.getBeans().toArray();
    }
    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.