亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? write_hypersearch_results.bsh

?? 用java 編寫的源碼開放的文本編輯器。有很多有用的特性
?? BSH
字號:
/* * Write_HyperSearch_Results.bsh -  a BeanShell macro script * for the jEdit text editor - writes the contents of the * "HyperSearch Results" window to a new text buffer * Copyright (C) 2001 John Gellene * jgellene@nyc.rr.com * http://community.jedit.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with the jEdit program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * * Notes on use: * * The macro operates by dumping the contents of the HyperSearch Results * window into a simple text report format.  Because the HyperSearchResults * object does not know the search parameters that produced its data, the * parameters must be retrieved from the SearchAndReplace object.  If those * parameters have changed since the HyperSearch, the report header will not be * accurate (although the body of the report will not be affected).  A simple * test checks whether the HyperSearch flag is set before running the dumping * routines.  To be completely reliable, the macro should be run immediately * after a HyperSearch. * * $Id: Write_HyperSearch_Results.bsh,v 1.3 2003/01/10 19:48:18 spestov Exp $ * * Checked for jEdit 4.0 API * Adapted and checked for jEdit 4.1 API by Rudi Widmann * */import java.text.SimpleDateFormat;import javax.swing.tree.*;void writeHyperSearchResults(){    title = "Write HyperSearch results";    hsearch = view.getDockableWindowManager()        .getDockable("hypersearch-results");    if(hsearch == null)    {        JOptionPane.showMessageDialog(view,            "The \"HyperSearch Results\" window is not open.",            title, JOptionPane.ERROR_MESSAGE);        return;    }    if(jEdit.getBooleanProperty("search.hypersearch.toggle") == false)    {        answer = JOptionPane.showConfirmDialog(view,            "Search settings have changed;\nthe report may not be accurate."            + "\nDo you wish to proceed?",            title, JOptionPane.YES_NO_OPTION);        if(answer != JOptionPane.YES_OPTION) return;    }    /*******************************************************************    * Hyper search result tree structure    * root    * + searchNode    *   + fileNode    *     + results     *   + fileNode    *     + results     * + searchNode    *   + fileNode    *     + results     *******************************************************************/    jEdit.newFile(view);    writeHeader();    treeModel = hsearch.getTreeModel();    root = treeModel.getRoot();    rootChildCount = root.getChildCount();    if(rootChildCount == 0)    {        textArea.setSelectedText(            "Search items not found\n\nEnd of report\n");    }    else    {        searchNode = root.getFirstChild();        for(int i = 0; i < rootChildCount; ++i)        {	    super.fileCount = 0;	    super.hitCount = 0;	    writeSearchHeader(searchNode);	    if (i == rootChildCount-1)		    writeSearchParameters();  // write only for last result	    super.searchCount++;	    searchChildCount = searchNode.getChildCount();	    if(searchChildCount == 0)	    {		textArea.setSelectedText(			"Search term not found\n\nEnd of report\n");	    }	    fileNode = searchNode.getFirstChild();	    for(int j = 0; j < searchChildCount; ++j)	    {		writeResultsForFile(fileNode);		fileNode = fileNode.getNextSibling();	    }		searchNode = searchNode.getNextSibling();						    writeFileFooter();        }	writeFooter();    }}void writeSearchHeader( node){    node = (DefaultMutableTreeNode)node;    if(node == null) return;    childCount = node.getChildCount();    if( childCount == 0) return;    sb.setLength(0);    sb.append("Results for search item: \"");    sb.append(node.getUserObject().toString());    sb.append("\"\n\n");    textArea.setSelectedText(sb.toString());}void writeResultsForFile( node){    node = (DefaultMutableTreeNode)node;    if(node == null) return;    childCount = node.getChildCount();    if( childCount == 0) return;    ++super.fileCount;    super.hitCount += childCount;    obj = node.getUserObject();    sb.setLength(0);    sb.append("\tMatched file:\n\t");    sb.append(node.getUserObject().toString());    sb.append("\n\n");    lineNode = (DefaultMutableTreeNode)node.getFirstChild();	if(lineNode == null) return;    for( int i = 0; i < childCount; ++i)    {	if(lineNode == null)	{		sb.append("\t\tNull node for i = " + String.valueOf(i));	}	else	{	    sb.append("\t\tline ");	    sb.append(lineNode.getUserObject().toString());	}        sb.append('\n');        lineNode = lineNode.getNextSibling();    }    sb.append("\n\tNumber of occurrences: ");    sb.append(String.valueOf(childCount));    sb.append("\n\n");    textArea.setSelectedText(sb.toString());}void writeHeader(){    sb.append("Hypersearch report written on ");    SimpleDateFormat f = new SimpleDateFormat("EE MMM d, yyyy h:mm a z");    sb.append(f.format( new Date()));    sb.append("\n\n");    textArea.setSelectedText(sb.toString());}void writeSearchParameters(){    sb.setLength(0);    sb.append("\tUsed search parameters for ");    if(SearchAndReplace.getRegexp())        sb.append("regular expression:  ");    else        sb.append("search term:  ");    sb.append(SearchAndReplace.getSearchString());    sb.append("  (case ");    if(SearchAndReplace.getIgnoreCase())        sb.append("in");    sb.append("sensitive)\n");    sb.append("\tSearch conducted on ");    sb.append(writeSearchFileSetType());    sb.append('\n');    sb.append('\n');    textArea.setSelectedText(sb.toString());}void writeFileFooter(){    sb.setLength(0);    sb.append("\tTotal of ");    sb.append(String.valueOf(hitCount));    sb.append(" occurrences found in ");    sb.append(String.valueOf(fileCount));    sb.append(" files\n\n");    textArea.setSelectedText(sb.toString());}void writeFooter(){    sb.setLength(0);    sb.append("Total of ");    sb.append(String.valueOf(searchCount));    sb.append(" search results reported \n\nEnd of report\n");    textArea.setSelectedText(sb.toString());}String writeSearchFileSetType(){    result = new StringBuffer();    fileSet = SearchAndReplace.getSearchFileSet();    if(fileSet instanceof CurrentBufferSet)        result.append("current buffer");    else if(fileSet instanceof AllBufferSet)        result.append("all open buffers with file mask '")              .append(((AllBufferSet)fileSet).getFileFilter())              .append('\'');    else if(fileSet instanceof DirectoryListSet)    {        fileSet = (DirectoryListSet)fileSet;        result.append("all files in \n")              .append(fileSet.getDirectory())              .append('\n');        if(fileSet.isRecursive())            result.append("(and subdirectories) ");        result.append("with file mask '")              .append(fileSet.getFileFilter())              .append('\'');    }    else        result.append("unknown file set");    return result.toString();}sb = new StringBuffer();searchCount = 0;fileCount = 0;hitCount = 0;writeHyperSearchResults();/*	Macro index data (in DocBook format)<listitem>    <para><filename>Write_HyperSearch_Results.bsh</filename></para>    <abstract><para>        This macro writes the contents of the <quote>HyperSearch        Results</quote> window to a new text buffer.    </para></abstract>    <para>        The macro employs a simple text report format. Since        the HyperSearch window's object does not maintain the search        settings that produced the displayed results, the macro examines the        current settings in the <classname>SearchAndReplace</classname> object.        It confirms that the HyperSearch option is selected before writing        the report. However, the only way to be sure that the report's contents        are completely accurate is to run the macro immediately after a        HyperSearch.    </para></listitem>*/// end Write_HyperSearch_Results.bsh

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩av一区二区三区| 成人免费毛片aaaaa**| 蜜桃精品在线观看| 午夜精品久久久久久不卡8050| 亚洲欧美日韩系列| 九九视频精品免费| 日韩欧美一级片| 欧美午夜精品一区| 不卡av电影在线播放| 国产精品久久久爽爽爽麻豆色哟哟| 久久久久国产成人精品亚洲午夜| 亚洲免费观看高清在线观看| 日韩三级.com| 91蜜桃在线观看| 国产成人av在线影院| 日韩和欧美一区二区三区| 国产肉丝袜一区二区| 欧美日韩国产首页| 91蝌蚪porny成人天涯| 精品一区二区三区在线视频| 亚洲另类春色国产| 中文字幕不卡一区| 精品国产免费一区二区三区香蕉| 欧美日韩成人综合天天影院| aaa亚洲精品一二三区| 国产福利一区二区三区| 久久99精品一区二区三区| 亚洲一区二区在线播放相泽| 亚洲欧洲av在线| 国产欧美综合色| 国产婷婷色一区二区三区| 日韩欧美综合一区| 91麻豆精品91久久久久同性| 欧美三区在线观看| 在线中文字幕一区| 色老综合老女人久久久| 91福利小视频| 欧洲国内综合视频| 欧美在线短视频| 欧美日韩一区 二区 三区 久久精品| 成人福利视频网站| 从欧美一区二区三区| 国产成人av在线影院| 国产91丝袜在线18| 丁香啪啪综合成人亚洲小说| 成人爱爱电影网址| 9l国产精品久久久久麻豆| 成人美女在线观看| eeuss国产一区二区三区| eeuss国产一区二区三区| 91蜜桃婷婷狠狠久久综合9色| 91美女福利视频| 欧洲生活片亚洲生活在线观看| 在线免费精品视频| 欧美日韩mp4| 日韩欧美在线网站| 久久久www成人免费毛片麻豆| 中文字幕av资源一区| 国产精品国产三级国产aⅴ无密码| 成人免费一区二区三区在线观看| 亚洲色图制服丝袜| 亚洲一区二区四区蜜桃| 日韩电影在线观看一区| 精品亚洲aⅴ乱码一区二区三区| 国产一区二区在线视频| 成人午夜视频免费看| 91行情网站电视在线观看高清版| 91麻豆swag| 欧美日韩在线三区| 欧美日韩精品福利| 日韩欧美一级精品久久| 午夜精品一区二区三区电影天堂| 日本三级亚洲精品| 国产又粗又猛又爽又黄91精品| 成人免费的视频| 在线视频中文字幕一区二区| 日韩精品中文字幕在线一区| 国产色91在线| 一区二区在线看| 日本aⅴ免费视频一区二区三区| 另类调教123区| 懂色av中文字幕一区二区三区 | 在线观看91视频| 欧美日韩一级黄| 精品久久国产字幕高潮| 日本一区二区视频在线| 亚洲欧美日韩小说| 久久不见久久见免费视频7| 成人在线一区二区三区| 在线观看国产日韩| 久久久久久亚洲综合| 亚洲黄色免费电影| 国产一区二区在线免费观看| 在线免费精品视频| 中文字幕精品一区| 天天影视网天天综合色在线播放| 懂色av一区二区三区蜜臀| 精品视频在线免费看| 国产亚洲人成网站| 五月天国产精品| 色域天天综合网| 亚洲福利电影网| 26uuu亚洲综合色欧美| 欧美精品一区二区高清在线观看 | 一区在线观看视频| 亚洲一区二区在线免费看| 麻豆成人91精品二区三区| 一区二区三区丝袜| 日韩高清不卡在线| 色先锋久久av资源部| 精品久久国产97色综合| 亚洲一区av在线| 成人avav在线| 国产亚洲精品aa| 老色鬼精品视频在线观看播放| 在线观看不卡一区| 中文字幕一区二区三区精华液| 久久精品国产亚洲aⅴ| 欧美视频三区在线播放| 久久久噜噜噜久久人人看| 亚洲一区二区在线免费观看视频| 国产成人av电影在线| 欧美精品一区二区高清在线观看| 天天影视色香欲综合网老头| 蜜桃传媒麻豆第一区在线观看| 欧美片在线播放| 久久久影视传媒| 伊人婷婷欧美激情| 亚洲午夜av在线| 日本高清无吗v一区| 最新不卡av在线| 99久久久无码国产精品| 国产欧美日韩在线| 美女网站色91| 日韩你懂的在线观看| 五月天精品一区二区三区| 精品视频一区二区不卡| 亚洲国产美女搞黄色| 欧美性色欧美a在线播放| 亚洲欧美国产高清| 一本色道久久综合亚洲精品按摩 | 国产性天天综合网| 日本欧美加勒比视频| 欧美喷水一区二区| 亚洲午夜久久久久| 91超碰这里只有精品国产| 亚洲一区在线观看免费 | 9人人澡人人爽人人精品| 精品国产欧美一区二区| 久久se精品一区二区| 久久综合狠狠综合久久激情| 国产精品一区二区x88av| 国产视频一区二区在线| 99久久精品一区二区| 亚洲欧美在线视频观看| 色婷婷久久99综合精品jk白丝| 亚洲最大成人网4388xx| 欧美日韩久久一区| 另类小说视频一区二区| 国产色产综合产在线视频| 99久久精品一区| 亚洲va在线va天堂| 日韩欧美电影一二三| 国产精品一区专区| 日韩一区日韩二区| 欧美日韩你懂的| 精品影视av免费| 久久亚洲春色中文字幕久久久| 国产精品一卡二| 亚洲视频一区二区在线观看| 国产色一区二区| 91免费在线视频观看| 午夜精品一区二区三区免费视频 | 亚洲欧美国产三级| 91精品婷婷国产综合久久竹菊| 精品一区二区三区香蕉蜜桃| 亚洲国产精品精华液2区45| 色呦呦一区二区三区| 热久久国产精品| 国产精品久久国产精麻豆99网站| 欧美性大战xxxxx久久久| 麻豆视频观看网址久久| 亚洲欧美国产三级| 精品国精品自拍自在线| 成人小视频在线| 日产国产欧美视频一区精品| 欧美激情一区二区三区不卡| 欧洲一区二区av| 国产成人av电影免费在线观看| 亚洲丶国产丶欧美一区二区三区| 久久亚洲免费视频| 欧美午夜精品一区二区三区| 国产美女精品一区二区三区| 一区二区三区毛片| 久久久噜噜噜久久中文字幕色伊伊 | 久久99久久99小草精品免视看| 成人免费在线观看入口| 91精品国产综合久久香蕉麻豆 | 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 这里只有精品视频在线观看|