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.
Created attachment 154898 [details] Maven JSF Project 1. Import attached Maven JSF project in NetBeans. 2. Under "Other Sources"->src/main/resources->newpackage, right click on ValidationMessages.properties and choose Open. 3. Notice a single editor window opens. Close the editor window. 4. Move all the properties files to the other package in the same folder. 5. Right click on ValidatinoMessages.properties. Result: Two editor windows open. Expected: One editor window opens. Each time I move the files to a new package causes duplicate editor window to open. Product Version: NetBeans IDE 8.1 Beta (Build 201507231027) Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
was able to reproduce with a j2se project and a properties file being moved between packages. - create java app - have two packages - create a properties file in a package - ctx menu open - opens 1 editor tab - move the file to another package - ctx menu open - opens 2 editor tabs - and so on ... reassigned for further evaluation
Pushing a partial fix, that does not fully fixes this but at least max. 2 tabs are opened... Fix: http://hg.netbeans.org/core-main/rev/4c61f8796bfa
Created attachment 156250 [details] additional fix
attaching an additional fix that seems to help, but it looks kind of scary, i do not want to push it now before release.
Integrated into 'main-silver', will be available in build *201509200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4c61f8796bfa User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #253794 - Open properties files opens 2 copies if moved to new pacakge Remove old open cookie from the cookie set.
applying the second patch, let me know if it fixes your issue or if it brings any regressions. fix: http://hg.netbeans.org/core-main/rev/b2a2ca6d1b0d
Integrated into 'main-silver', will be available in build *201511140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b2a2ca6d1b0d User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #253794 - Open properties files opens 2 copies if moved to new pacakge