Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.FindReplaceDocumentAdapter.find()


          }
         
          FindReplaceDocumentAdapter finder = new FindReplaceDocumentAdapter(doc);
         
          // Find and replace the closing comment first so that it doesn't get messed up with positions
          finder.find(closeCommentStart, closeComment, true, false, false, false);
          finder.replace("", false);
         
          // Find and replace the opening comment so that it doesn't affect the closing comment replace
          finder.find(openCommentStart, openComment, true, false, false, false);
          finder.replace("", false);
View Full Code Here


          // Find and replace the closing comment first so that it doesn't get messed up with positions
          finder.find(closeCommentStart, closeComment, true, false, false, false);
          finder.replace("", false);
         
          // Find and replace the opening comment so that it doesn't affect the closing comment replace
          finder.find(openCommentStart, openComment, true, false, false, false);
          finder.replace("", false);
          selectionLength = selection.length() - openComment.length() - closeComment.length() + 1;
        } else {
          if(selectioner.getText().endsWith("\n") && !selectioner.getText().startsWith("\n")){           
            // add newlines if this looks like a newline-to-newline comment, to be pretty
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.