History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18620
Type: New Feature New Feature
Status: Open Open
Assignee: Maxim Mossienko
Reporter: Travis Reeder
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Add "Extract method" refactoring for jsp snippets

Created: 02 Jul 08 19:46   Updated: 02 Jul 08 19:49
Component/s: Refactoring

Build: 7,757
Severity: Medium


 Description  « Hide
For instance, if you had a jsp snippet, like this:
<table border="0" align="center">
        <tr>
            <%
                if (start > 0) {
            %>
            <td><a href="<%=thispage%>?<%=ParamUtils.makeParams(pairs)%>&start=<%=start - numPerPage%>">Previous</a>
            </td>
            <%
                }
                if (start + numPerPage < results.size()) {
            %>
            <td><a href="<%=thispage%>?<%=ParamUtils.makeParams(pairs)%>&start=<%=start + numPerPage%>">Next</a></td>
            <%
                }
            %>
        </tr>
    </table>

You could highlight it and it would extract into a method that would return the result as a String.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.