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 37415 - Problem with adding/inserting new modes to existing desktop layout
Summary: Problem with adding/inserting new modes to existing desktop layout
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 13:22 UTC by mslama
Modified: 2008-12-22 22:26 UTC (History)
2 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2003-11-21 13:22:15 UTC
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.
Comment 1 Peter Zavadsky 2003-11-26 13:52:42 UTC
Marek, is it solved already? If yes, please close it.
Comment 2 mslama 2003-12-01 13:58:43 UTC
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.
Comment 3 mslama 2003-12-01 15:50:57 UTC
Fixed. Split cells have indices with step 20 from 20 ie 20,40,60,...