Package org.gvt.gui

Examples of org.gvt.gui.ItemSelectionDialog


    else
    {
      pathways = new ArrayList<String>();
      pathways.addAll(main.getOpenTabNames());

      ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(),
        500,
        "Pathway Selection Dialog",
        "Select pathways to view",
        allNames, pathways, true, true, null);

      dialog.open();

      if (dialog.isCancelled())
      {
        pathways = null;
        return;
      }
View Full Code Here


        nodeToString.put(key, nodePair);
      }
    }

    // Open the dialog which will display the paths obtained from query
    ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(),
      300,
      "Path Selection Dialog",
      "Select path to visualize",
      stringResult,
      new ArrayList<String>(),
      false,
      true,
      null);

    dialog.setDoSort(false);
    dialog.open();

    if(dialog.isCancelled())
    {
      return;
    }
   
    List<String> selectedString = dialog.getSelectedItems();

    // Find the NodePair selected from the path selection dialog
    LocalPathIterationQuery.NodePair selectedNodePair =
      nodeToString.get(selectedString.get(0));
View Full Code Here

       
        if (!resultPathways.isEmpty())
        {
          ArrayList<String> selectedItems = new ArrayList<String>();

          ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(),
            500,
            "Pathway Selection Dialog",
            "Select pathways to retrieve",
            resultPathways, selectedItems,
            true, true, null);

          dialog.setMinValidSelect(1);
          dialog.open();

          List<String> idList = new ArrayList<String>();

          if (!dialog.isCancelled())
          {
            for (String item : selectedItems)
            {
              idList.add(pathToID.get(item));
            }
View Full Code Here

    if (!pathIDs.isEmpty())
    {
      // Open a dialog so that user selected the specific path to visualize

      ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(),
        250,
        "Path Selection Dialog",
        "Select path to visualize",
        pathIDs, new ArrayList<String>(), false, false, new Runner());

      dialog.setUpdateUponSelection(true);
      dialog.setDoSort(false);
      String lastItem = dialog.open();

      if (lastItem == null || !lastItem.equals(ItemSelectionDialog.NONE))
      {
        dialog.runAsIfSelected(ItemSelectionDialog.NONE);
      }
    }
    else
    {
      MessageDialog.openInformation(main.getShell(), "No results!",
View Full Code Here

        if (graph.getLastAppliedColoring() != null)
        {
          selectedItems.add(graph.getLastAppliedColoring());
        }

        ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(),
          200,
          "Experiment Type Selection Dialog",
          "Select experiment type",
          new ArrayList<String>(types),
          selectedItems,
          false,
          false,
          new ColoringSelectionRunnable());

        dialog.setUpdateUponSelection(true);
        dialog.open();
      }
    }

    if (type != null)
    {
View Full Code Here

        allEntityNames.add(name);
      }

      List<String> userSelection = new ArrayList<String>();

      ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(), 350,
        "Entity Selection Dialog",
        "Select entities whose neighborhood is to be found",
        allEntityNames,
        userSelection,
        true, true, null);

      dialog.setMinValidSelect(1);
      dialog.setDoSort(true);
      dialog.open();

      if (!dialog.isCancelled())
      {
        for (String s : userSelection)
        {
          entities.add(nametoEntityMap.get(s));
        }
View Full Code Here

      {
        type = types.iterator().next();
      }
      else
      {
        ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(),
          200,
          "Experiment Type Selection Dialog",
          "Select experiment type",
          new ArrayList<String>(types),
          new ArrayList<String>(),
          false,
          true,
          null);

        dialog.setMinValidSelect(1);
        type = dialog.open();

        if (dialog.isCancelled()) type = null;
      }
    }

    if (type != null)
    {
      ExperimentDataManagementDialog dialog = new ExperimentDataManagementDialog(
        main, main.getExperimentDataManager(type));

      dialog.open();

      // We do not want to remember this the next time
      type = null;
    }
  }
View Full Code Here

    if (!pathIDs.isEmpty())
    {
      // Open a dialog so that user selected the specific path to visualize

      ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(),
        250,
        "Path Selection Dialog",
        "Select path to visualize",
        pathIDs, new ArrayList<String>(), false, false, new Runner());

      dialog.setUpdateUponSelection(true);
      String lastItem = dialog.open();

      // Below lines are responsible for clearing any highlighting after closing the dialog.
      // But we do not want it to disappear. So this is disabled.
//      if (!lastItem.equals(ItemSelectionDialog.NONE))
//      {
View Full Code Here

TOP

Related Classes of org.gvt.gui.ItemSelectionDialog

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.