Package edu.indiana.extreme.xbaya.component.gui

Examples of edu.indiana.extreme.xbaya.component.gui.ComponentSelector


    contentPane.add(this.toolbar.getSwingComponent(),
        BorderLayout.PAGE_START);

    this.portViewer = new PortViewer();
    this.componentViewer = new ComponentViewer();
    this.componentSelector = new ComponentSelector(this.engine);
    this.componentSelector
        .addComponentSelectorListener(this.componentViewer);
    this.monitorPane = new MonitorPanel(this.engine);

    compTreeXBayapanel = new ScrollPanel(this.componentSelector,
View Full Code Here


   * Initializes registris.
   */
  private void initRegistry() {
    logger.entering();

    final ComponentSelector componentTreeViewer = this.gui
        .getComponentSelector();
    try {                 
      this.componentRegistry = new SystemComponentRegistry();
      // This does not take time, so we can do it in the same thread.
      this.systemComponentTree = this.componentRegistry.getComponentTree();
      componentTreeViewer.addComponentTree(0, this.systemComponentTree);
     
      componentTreeViewer.addComponentTree(1, new AmazonComponentRegistry().getComponentTree());
     
      //this.wsComponnetRegistry = new WSComponentRegistry();
      //this.wsComponentTree = wsComponnetRegistry.getComponentTree();
      //componentTreeViewer.addComponentTree(wsComponentTree);
    } catch (RuntimeException e) {
      // This should not happen
      e.printStackTrace();
      getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);
    }

    List<String> localRegistryPaths = this.configuration.getLocalRegistry();
    for (String path : localRegistryPaths) {
      try {
        LocalComponentRegistry registry = new LocalComponentRegistry(
            path);
        // XXX This might take time, so it's better to move to another
        // thread.
        ComponentTreeNode componentTree = registry.getComponentTree();
        componentTreeViewer.addComponentTree(componentTree);
      } catch (ComponentRegistryException e) {
        getErrorWindow().error(ErrorMessages.COMPONENT_LIST_LOAD_ERROR,
            e);
      } catch (RuntimeException e) {
        getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);
      }
    }

    //load xRegistry only when myProxy is loaded and xRegistryURL is presented
    if (this.configuration.getXRegistryURL() != null && this.configuration.isLoadMyProxy()) {
      new Thread() {
        @Override
        public void run() {
          try {
            XRegistryComponent client = new XRegistryComponent(
                XBayaEngine.this.configuration
                    .getXRegistryURL(),
                XRegistryComponent.Type.ABSTRACT,
                XBayaEngine.this.myProxyClient.getProxy());
            XBayaEngine.this
                .setXRegistryURL(XBayaEngine.this.configuration
                    .getXRegistryURL());
            ComponentTreeNode componentTree = client
                .getComponentTree();
            componentTreeViewer.addComponentTree(componentTree);
//            TreeNode[] path = componentTree.getPath();
//            JTree swingComponent = componentTreeViewer.getSwingComponent();
//            swingComponent.expandPath(
//                new TreePath(path));
//            for (int i = 0; i < path.length; i++) {
View Full Code Here

    this.componentRegistry.addComponent(name, workflowComponent);
    SystemComponentReference componentReference = new SystemComponentReference(
                name, workflowComponent);
    this.systemComponentTree.add(new ComponentTreeNode(componentReference));
    TreeNode[] path = systemComponentTree.getPath();
    ComponentSelector swingComponent = this.gui.getComponentSelector();
    swingComponent.getSwingComponent().updateUI();
   
  }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.component.gui.ComponentSelector

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.