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 52811 - Navigator name too long in sliding mode, occupies too much space
Summary: Navigator name too long in sliding mode, occupies too much space
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords: API
Depends on: 55955
Blocks:
  Show dependency tree
 
Reported: 2004-12-26 00:15 UTC by Jan Jancura
Modified: 2005-08-12 13:12 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Navigator iimage (109.14 KB, image/jpeg)
2004-12-26 00:17 UTC, Jan Jancura
Details
diff of the solution using client property of JComponent (4.24 KB, patch)
2005-03-04 16:25 UTC, David Simonek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Jancura 2004-12-26 00:15:54 UTC
Navigator does not have icon defined for use on
slider. And it uses long widow name (like
"Navigator - <<current class name>>).
See attached picture.
Comment 1 Jan Jancura 2004-12-26 00:17:18 UTC
Created attachment 19411 [details]
Navigator iimage
Comment 2 David Simonek 2005-01-19 12:27:49 UTC
Navigator now does have an icon in sliding mode, so changing this
issue just to the long name.
This will probably need new API (to be able to define different
display names for sliding and non-sliding mode) or implement general
"abbreviation" policy for diaplsy names of all components shown in
sliding mode (for example limit names to 20 chars or smt like that).
Comment 3 David Simonek 2005-01-20 15:15:42 UTC
Dowgrading as there is usually a lot of space on the side for sliding
windows.
Comment 4 Jan Chalupa 2005-03-01 19:57:53 UTC
For me, the real problem is that the label of the slided Navigator
changes with selected node. This is quite annoying as the side bar
keeps changing as the user works with the IDE. Navigator is not the
only component sufferring from this problem. Properties window is
another example.

This should be fixed. If API is needed, be it.
Comment 5 David Simonek 2005-03-04 16:22:35 UTC
Note similar issue 53776.
Comment 6 David Simonek 2005-03-04 16:25:27 UTC
Created attachment 20690 [details]
diff of the solution using client property of JComponent
Comment 7 David Simonek 2005-03-10 09:44:07 UTC
A week for fast track review is over, so I consider this property-API change
approved and I'm committing proposed diff into main trunk. Thanks.

Fixed in main trunk:
/cvs/openide/arch/arch-openide-windowsystem.xml,v  <-- 
arch-openide-windowsystem.xml
new revision: 1.43; previous revision: 1.42

/cvs/core/swing/tabcontrol/src/org/netbeans/swing/tabcontrol/SlidingButton.java,v
 <--  SlidingButton.java
new revision: 1.7; previous revision: 1.6
Comment 8 David Simonek 2005-03-10 09:44:42 UTC
x
Comment 9 David Simonek 2005-03-10 09:46:02 UTC
x
Comment 10 David Simonek 2005-03-10 09:46:52 UTC
fixed.