Ignore:
Timestamp:
06/30/09 18:05:35 (15 years ago)
Author:
alexandrecorreia
Message:

Ticket #474 - Arquivos modificados para a tradução do Applet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/java_source/src/nu/fw/jeti/util/FindAction.java

    r1014 r1064  
    4545         
    4646        public FindAction(){ 
    47                 //super("find", EditorUtilities.loadIcon("icons/Find16.gif")); 
    4847                super(I18N.gettext("main.popup.Find")); 
    4948                putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_F)); 
     
    6059                                JTextComponent text = (JTextComponent) o; 
    6160                                if(e.getModifiers() == 0 ) 
    62                                 {//find Next 
     61                                {  
     62                                        //find Next 
    6363                                        if (searchString==null) askSearchString(text); 
    6464                                        if (searchString!=null)search(text,text.getCaretPosition()); 
     
    8383                String fulltext = text.getText(); 
    8484 
    85 //              //      strip out the surplus \r characters 
    86 //              StringTokenizer tokenizer = new StringTokenizer(fulltext, "\r"); 
    87 //              StringBuffer buffer = new StringBuffer(); 
    88 //              while( tokenizer.hasMoreTokens() ){ 
    89 //                      buffer.append( tokenizer.nextToken() ); 
    90 //              } 
    91  
    9285                //get the substring based on the requested start position 
    9386                fulltext = ( fulltext ).substring(startPositionIn); 
     
    9689                // so long as we can find the text in the file, go ahead and highlight it 
    9790                // if we can't show the dialog 
    98                 if(fulltext.indexOf(searchString) > -1){ 
     91                if(fulltext.indexOf(searchString) > -1) 
     92                { 
    9993                        startPoint = (fulltext.indexOf(searchString) ) + startPositionIn; 
    100  
    10194                        endPoint = startPoint + searchStringLength; 
    10295                        text.requestFocus(); 
    10396                        text.setCaretPosition(startPoint); 
    104                 //move caret to endPoint - thus highlighting the selected text 
    10597                        text.moveCaretPosition(endPoint); 
    106                 //make the selection visible 
    107                         //text.getCaret().setSelectionVisible(true); 
    10898                } 
    109                 else if (startPositionIn!=0){ 
     99                else if (startPositionIn!=0) 
     100                { 
    110101                        if(JOptionPane.showConfirmDialog(text.getTopLevelAncestor(),MessageFormat.format(I18N.gettext("main.popup.{0}_not_found_until_the_end_of_this_file,_start_again_from_the_beginning?"),new Object[]{searchString})) == JOptionPane.OK_OPTION) 
    111102                        { 
Note: See TracChangeset for help on using the changeset viewer.