Bug 28301 - Desire equiv. to NbBundle.DEBUG mode for images
Desire equiv. to NbBundle.DEBUG mode for images
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
3.x
All All
: P4 (vote)
: 6.x
Assigned To: issues@platform
issues@platform
: I18N
Depends on:
Blocks: 22156
  Show dependency treegraph
 
Reported: 2002-10-27 16:05 UTC by Jesse Glick
Modified: 2009-01-06 14:58 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-10-27 16:05:42 UTC
-J-Dorg.openide.util.NbBundle.DEBUG=true is useful
for finding (1) unlocalized text strings, (2)
where a given localized text string visible in the
GUI came from.

Suggest that this flag also turn on a mode where
all localized image lookups
(NbBundle.getLocalizedFile, nbresloc:) also
display the image origin - this is useful e.g.
when figuring out what to brand. It may also be
useful for figuring out which unlocalized images
ought to be localized.

With the switch on, when a GIF/PNG/JPEG image were
loaded via a localized lookup, NbBundle would (1)
print the physical URL (typically a jar: URL) to
console together with a sequence number (decimal
or hexadecimal); (2) draw the sequence number over
the image and supply an fake image file URL (use
URL constructor with URLStreamHandler param?) with
the modified content (must make sure this works
with alpha channels). To draw the sequence number,
can use Java2D perhaps, or just hardcode bitmaps
for [0123456789ABCDEF]. Suggest they be in 8x8
blocks with 1-pixel internal margins, so a typical
16x16 icon could fit a 4-digit number. For
reliable visibility, may want to draw sequence
number in black with yellow trim.
Comment 1 Jesse Glick 2002-10-27 16:07:37 UTC
Would provide a quick way to determine which images are already
localized, as requested in issue #22156.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo