This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240742 - [xml reformat] Doesn't reformat all elements at first time
Summary: [xml reformat] Doesn't reformat all elements at first time
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 10:29 UTC by ssazonov
Modified: 2015-09-30 01:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
img_01 (72.81 KB, image/png)
2014-01-21 10:30 UTC, ssazonov
Details
img_02 (88.48 KB, image/png)
2014-01-21 10:30 UTC, ssazonov
Details
img_03 (88.20 KB, image/png)
2014-01-21 10:30 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2014-01-21 10:29:51 UTC
1. Create any J2EE application and add Spring framework

2. Add following Spring Bean to the project (img_01):

<beans:beans xmlns="http://www.springframework.org/schema/security" 
xmlns:beans="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd 
http://www.springframework.org/schema/security 
http://www.springframework.org/schema/security/spring-security-3.2.xsd"> 

<http> 
<intercept-url pattern="/messageList*" 
access="ROLE_USER,ROLE_ANONYMOUS" /> 
<intercept-url pattern="/messagePost*" access="ROLE_USER" /> 
<intercept-url pattern="/messageDelete*" access="ROLE_ADMIN" /> 

<form-login login-page="/login.jsp" default-target-url="/messageList"
authentication-failure-url="/login.jsp?error=true" /> 
<logout logout-success-url="/login.jsp"/>
<remember-me />
</http>

<authentication-manager> 
<authentication-provider> 
<user-service> 
<user name="admin" password="secret" 
authorities="ROLE_ADMIN,ROLE_USER" /> 
<user name="user1" password="1111" authorities="ROLE_USER" /> 
</user-service> 
</authentication-provider> 
</authentication-manager> 
</beans:beans>

3. Using Shift+Alt+F reformat the code

>> Some parts of code haven't been reformated properly (see img_02), so you have to press Shift+Alt+F again to get correct formatting (img_03)

Product Version: NetBeans IDE Dev (Build 201401200001)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 ssazonov 2014-01-21 10:30:24 UTC
Created attachment 144178 [details]
img_01
Comment 2 ssazonov 2014-01-21 10:30:39 UTC
Created attachment 144179 [details]
img_02
Comment 3 ssazonov 2014-01-21 10:30:55 UTC
Created attachment 144180 [details]
img_03
Comment 4 Svata Dedic 2015-09-29 10:55:54 UTC
Fixed in jet-main#5425a520c020
Comment 5 Quality Engineering 2015-09-30 01:20:34 UTC
Integrated into 'main-silver', will be available in build *201509300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5425a520c020
User: Svata Dedic <sdedic@netbeans.org>
Log: #240742: if first attribute moves, other attributes will align with it