Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 1263 Details for
Bug 19335
NPE in extract method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
code.txt
code.txt (text/plain), 1.09 KB, created by
Till Bay
on 2002-06-05 10:56:15 EDT
(
hide
)
Description:
code.txt
Filename:
MIME Type:
Creator:
Till Bay
Created:
2002-06-05 10:56:15 EDT
Size:
1.09 KB
patch
obsolete
>if (token == 1003) { >---> selection > int offset= member.getSourceRange().getOffset(); > int length= scanner.getCurrentTokenEndPosition(); > // find the indent > String comment= source.substring(0, length + 1); > if (comment.indexOf(lineDelimiter) != -1) { > int lineStart= comment.lastIndexOf(lineDelimiter) + lineDelimiter.length(); > int commentStart= comment.lastIndexOf("*/"); > String blanks= source.substring(lineStart, commentStart); > // construct the String to write into the comment > String text= blanks + "* " + string + lineDelimiter; > tbe.add(SimpleTextEdit.createReplace(offset + lineStart, 0, text)); > } else { > String sourceCU= member.getCompilationUnit().getSource().substring(0, offset); > int lineStart= sourceCU.lastIndexOf(lineDelimiter) + lineDelimiter.length(); > String blanks= sourceCU.substring(lineStart); > // construct the String to write into the comment > String text= lineDelimiter+ blanks + " * " + string + lineDelimiter + blanks; > tbe.add(SimpleTextEdit.createReplace(offset + length -2, 0, text)); > } ><------ selection > break; >} else if (token == 1002)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 19335
: 1263