Package org.gvt.inspector

Examples of org.gvt.inspector.CommonStreamQueryParamDialog


   
    //if action is called from PopupMenu
    if (useSelection)
    {
      //open dialog
      CommonStreamQueryParamDialog dialog =
        new CommonStreamQueryParamDialog(this.main);
      options = dialog.open(options);

      //Return if Cancel was pressed
      if ( !options.isCancel() )
      { 
        options.setCancel(true);
      }
      else
      {
        return;
      }

      //Get Selected Nodes in graph
      sourceNodesSet = getSelectedNodes();
     
      //Common Stream Query
      stream = new LocalCommonStreamQuery(sourceNodesSet,
        options.isDownstream(),
        options.getLengthLimit());
    }
    //if action is called from TopMenuBar
    else
    {
      //open dialog
      CommonStreamQueryParamWithEntitiesDialog dialog =
        new CommonStreamQueryParamWithEntitiesDialog(main);
      options = dialog.open(options);

      if ( !options.isCancel() )
      { 
        options.setCancel(true);
      }
      else
      {
        return;
      }

      //Get added entities from dialog
      ArrayList<physicalEntity> addedEntities = dialog.getAddedEntities();
     
      //States of each entity
      Set<Set<Node>> sourceStatesSet = new LinkedHashSet<Set<Node>>();

      Iterator<physicalEntity> addedEntitiesIterator =
View Full Code Here

TOP

Related Classes of org.gvt.inspector.CommonStreamQueryParamDialog

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.