# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: D:\ws\main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: java.editor/src/org/netbeans/modules/editor/java/SelectCodeElementAction.java --- java.editor/src/org/netbeans/modules/editor/java/SelectCodeElementAction.java +++ java.editor/src/org/netbeans/modules/editor/java/SelectCodeElementAction.java @@ -257,20 +257,7 @@ } }); orderedPositions.addAll(positions); - //for each selectioninfo add its line selection - if (target.getDocument() instanceof StyledDocument) { - StyledDocument doc = (StyledDocument) target.getDocument(); - for (SelectionInfo selectionInfo : positions) { - int startOffset = NbDocument.findLineOffset(doc, NbDocument.findLineNumber(doc, selectionInfo.getStartOffset())); - int endOffset = doc.getLength(); - try { - endOffset = NbDocument.findLineOffset(doc, NbDocument.findLineNumber(doc, selectionInfo.getEndOffset()) + 1); - } catch (IndexOutOfBoundsException ioobe) {} - orderedPositions.add(new SelectionInfo(startOffset, endOffset)); - } - } - return orderedPositions.toArray(new SelectionInfo[orderedPositions.size()]); }