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.
Currently we use integer numbers to set order of modes in desktop layout ie. sequence 0,1,2,... is used to number cells in particular level of desktop split. Problem is that if third party module wants to add its own mode before first (with index 0) or insert mode between 0 and 1 mode it is not possible. IMO this should be solved somehow. As mode order cannot be changed as once set we could use float number to order modes so we could use <path orientation="vertical" number="0.5" weight="0.7193585337915235" /> to insert mode between modes with index 0 and 1. It is also necessary to keep those numbers to have correct behaviour when modules are added/removed. For example if we would change 0,0.5,1 to 0,1,2 it is not clear what number should be used to insert mode between 1st and 2nd after mode number 3 is added if 0.25 or 0.5 or 0.8? 0.8 would work after conversion but not before. We need fixed numbers for that ie. keep assigned numbers unchanged.
Marek, is it solved already? If yes, please close it.
After discussion we decided still to use integer but with step 20 to be able to add/insert modes into existing split array. It has still limitation because when somebody defines successive index like 20,21 it is NOT possible to insert new mode between them. Using float or double (real numbers) would remove such limitation. On the other hand integer allows to set such limitation. Not sure what is more appropriate. So instead of 0,1,2 in curent layer definition we will use 20,40,60 as initial indices for split cell of modes.
Fixed. Split cells have indices with step 20 from 20 ie 20,40,60,...