Package org.gvt.inspector

Examples of org.gvt.inspector.GoIQueryParamDialog


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

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

            //Get Selected Nodes in graph
            sourceNodes = getSelectedNodes();
        }
        //if action is called from TopMenuBar
        else
        {
            //open dialog
            GoIQueryParamWithEntitiesDialog dialog =
                new GoIQueryParamWithEntitiesDialog(main);
            options = dialog.open(options);

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

            //Get added entities to the list
            ArrayList<physicalEntity> addedEntities = dialog.getAddedEntities();

            //Get the states of added entities.
            Set<GraphObject> sourceSet =
                main.getRootGraph().getRelatedStates(addedEntities);
View Full Code Here

TOP

Related Classes of org.gvt.inspector.GoIQueryParamDialog

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.