Ejemplo n.º 1
0
 /** Invoked when an action occurs. */
 @Override
 public void actionPerformed(ActionEvent e) {
   SearchAndReplace.setSearchString(hyperSearchOperationNode.getSearchString());
   SearchAndReplace.setSearchMatcher(hyperSearchOperationNode.getSearchMatcher());
   removeSelectedNode();
   SearchAndReplace.hyperSearch(view, false);
 }
Ejemplo n.º 2
0
    @Override
    public void actionPerformed(ActionEvent evt) {
      TreePath path = resultTree.getSelectionPath();
      DefaultMutableTreeNode operNode = (DefaultMutableTreeNode) path.getLastPathComponent();
      HyperSearchFolderNode nodeObj = (HyperSearchFolderNode) operNode.getUserObject();

      String glob = "*";
      SearchFileSet dirList = SearchAndReplace.getSearchFileSet();
      if (dirList instanceof DirectoryListSet) glob = ((DirectoryListSet) dirList).getFileFilter();
      SearchAndReplace.setSearchFileSet(
          new DirectoryListSet(nodeObj.getNodeFile().getAbsolutePath(), glob, true));
      SearchDialog.showSearchDialog(view, null, SearchDialog.DIRECTORY);
    }
Ejemplo n.º 3
0
 // {{{ trimSearchString() method
 private static String trimSearchString() {
   String s = SearchAndReplace.getSearchString();
   int length = jEdit.getIntegerProperty("hypersearch.displayQueryLength", 100);
   if (s.length() > length) {
     return s.substring(0, length) + "...";
   }
   return s;
 } // }}}