Examples of SetQueryAction


Examples of com.visitrend.ndvis.colormapper.actions.SetQueryAction

            String str = f.getName();
            int i = str.lastIndexOf('.');
            if (i > -1) {
                str = str.substring(0, i);
            }
            SetQueryAction sqa = new SetQueryAction(this, f.getAbsolutePath(),
                    str);
            queryMenu.add(sqa);
        }

        menuBar.add(queryMenu);
View Full Code Here

Examples of com.visitrend.ndvis.colormapper.actions.SetQueryAction

    FavoriteQueriesOrganizer.qm = qm;
    // initialize a JList
    model.removeAllElements();
    // we start at 3 to get past the first 2 menu items and separator
    for (int k = 3, n = qm.getItemCount(); k < n; k++) {
      SetQueryAction act = (SetQueryAction) ((JMenuItem) qm.getItem(k))
          .getAction();
      model.add(k - 3, act.getShortName());
    }
  }
View Full Code Here

Examples of com.visitrend.ndvis.colormapper.actions.SetQueryAction

      // menu are "add favorite", "organize favorites", and the menu
      // separator. Each iteration we remove an item, thus each time the
      // list grows shorter by 1, thus we use -k (which increases with 1
      // each iteration) in our getItem to compensate
      JMenuItem item = qm.getItem(selection[k] + 3 - k);
      SetQueryAction fqa = (SetQueryAction) item.getAction();
      qm.remove(item);
      File file = new File(fqa.getFileName());
      file.delete();
      // you also have to remove it from the list
      // I'm not sure if a clean way of doing this
      // but I do know that the selection index is
      // ordered, thus if I just reduce it by 1
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.