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

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


     * @see edu.indiana.extreme.xbaya.component.registry.ComponentRegistry#getComponentTree()
     */
    @Override
    public ComponentTreeNode getComponentTree()
            throws ComponentRegistryException {
        this.tree = new ComponentTreeNode(this);
        try {
            loadComponents();
            return this.tree;
        } catch (ComponentException e) {
            throw new ComponentRegistryException(e);
View Full Code Here


                        .wsdlDefinitions3ToWsdlDefintions5(definitions));
        String urlString = this.url.toString();
        String name = urlString.substring(urlString.lastIndexOf('/') + 1);
        URLComponentReference componentReference = new URLComponentReference(
                name, components);
        ComponentTreeNode treeLeaf = new ComponentTreeNode(componentReference);
        this.tree.add(treeLeaf);
    }
View Full Code Here

     *
     * @return The ComponentTree
     */
    @Override
    public ComponentTreeNode getComponentTree() {
        ComponentTreeNode tree = new ComponentTreeNode(this);
        for (String name : this.componentMap.keySet()) {
            Component component = this.componentMap.get(name);
            SystemComponentReference componentReference = new SystemComponentReference(
                    name, component);
            tree.add(new ComponentTreeNode(componentReference));
        }
        return tree;
    }
View Full Code Here

      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(
View Full Code Here

   */
  public void addWorkflowComponent(String name, SubWorkflowComponent workflowComponent) {
    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

    URLComponentRegistry serviceRegistry = new URLComponentRegistry(
        new URI(
            "https://pagodatree.cs.indiana.edu:17443/axis2/services/CEPService?wsdl"));

    new ComponentRegistryLoader(engine).load(serviceRegistry);
    ComponentTreeNode cepComponent = (ComponentTreeNode) serviceRegistry
        .getComponentTree().getChildAt(0);

    Node cepNode = canvas.addNode(cepComponent.getComponentReference()
        .getComponent(), new Point(300, 50));

    Graph graph = this.engine.getGUI().getGraphCanvas().getGraph();
    List<DataPort> cepOutPorts = cepNode.getOutputPorts();
    int count = 0;
View Full Code Here

     */
    @Override
    public ComponentTreeNode getComponentTree()
            throws ComponentRegistryException {
        try {
            ComponentTreeNode tree = new ComponentTreeNode(this);

            if (workflowClient.isSecure()) {
                // Check if the proxy is loaded.
                boolean loaded = new MyProxyChecker(this.xbayaEngine).loadIfNecessary();
                if (!loaded) {
                    return null;
                }
                // Creates a secure channel in gpel.
                MyProxyClient myProxyClient = this.xbayaEngine.getMyProxyClient();
                GSSCredential proxy = myProxyClient.getProxy();
                UserX509Credential credential = new UserX509Credential(
                        proxy, XBayaSecurity.getTrustedCertificates());
                try {
                    workflowClient.setUserX509Credential(credential);
                } catch (WorkflowEngineException e) {
                    this.xbayaEngine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
                    return null;
                }
            }

            GcSearchList resultList = this.workflowClient.list(this.max, this.type);
            for (GcSearchResult result : resultList.results()) {
                GPELComponentReference componentRef = new GPELComponentReference(
                        this, result);
                ComponentTreeNode treeLeaf = new ComponentTreeNode(componentRef);
                tree.add(treeLeaf);

            }
            return tree;
        } catch (WorkflowEngineException e) {
View Full Code Here

TOP

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

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.