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

Key: IDEADEV-4385
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: AlexL
Votes: 0
Watchers: 1
Operations

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

JSP imports layout -> Prefer one import statement per page directive selected has no effect.

Created: 23 Jun 05 04:43   Updated: 06 Nov 08 23:34
Component/s: Code Formatting and Code Style
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows XP SP2

Build: 3,378
Severity: Medium


 Description  « Hide
I had the following import statements in my JSP file.

<%@ page import="com.abc.util.MyInfo,
com.abc.server.PlatformFactory" %>
<%@ page import="com.abc.api.jsp.JSPPlatform" %>
<%@ page import="com.abc.apps.html.Message" %>
<%@ page import="com.abc.apps.html.util.URLState" %>
<%@ page import="com.abc.licensing.LicensePlatform" %>
<%@ page import="com.abc.reports.core.NewReportPlatform" %>
<%@ page import="com.abc.servlet.PWHttpServlet" %>
<%@ page import="com.abc.servlet.UserManager" %>

Even though I have Settings->Global Code Style->Imports->JSP imports layout -> Prefer one import statement per page directive selected,
when I do a Reformat on the JSP file, it doesn't split the first import line into two page directives.



 All   Comments   Work Log   Change History      Sort Order:
AlexL - 23 Jun 05 04:49
To clarify, I was doing reformat with the [X] optimize imports option checked.

I also tried Code->Optimize Imports directly with the same result.


AlexL - 30 Jun 05 02:47
This still is not working as of build 3386

AlexL - 02 Aug 05 04:53
This is still now working in official 5.0.0 release (3436). Hope it can be fixed in 5.0.x patch release...

AlexL - 25 Jan 06 03:22
This is still not working in 4125.

EXPECTED: Optimized Imports should reformat the imports according to your code style preference
Prefer one import statement per page directive..