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 20072 - Make javadoc for all image related methods advise about leading '/'
Summary: Make javadoc for all image related methods advise about leading '/'
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-01 17:56 UTC by Rochelle Raccah
Modified: 2016-03-12 05:09 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rochelle Raccah 2002-02-01 17:56:13 UTC
In a discussion on nbdev, Petr and Jesse advised that most (but not all) uses of
a leading '/' in an image resource name are extraneous and result in another
string being created to strip it off.  Javadoc for all image related methods
should advise whether a relative or absolute path is required and whether to use
the leading '/'.
Comment 1 Jesse Glick 2002-02-04 18:01:48 UTC
Will do so, and will also give a runtime warning in the log file re.
extraneous initial slashes. Ditto relative paths in
SystemAction.iconResource which are unnecessary and inherently
dangerous in the presence of subclassing.
Comment 2 Jesse Glick 2002-02-05 12:51:53 UTC
committed   * Up-To-Date  1.2        
apisupport/src/org/netbeans/modules/apisupport/lite/resources/actions-__Sample_callable__Action_java
committed   * Up-To-Date  1.3        
apisupport/src/org/netbeans/modules/apisupport/lite/resources/datasystems-__Sample__DataLoaderBeanInfo_java
committed   * Up-To-Date  1.3        
apisupport/src/org/netbeans/modules/apisupport/lite/resources/datasystems-__Sample__DataNode_java
committed   * Up-To-Date  1.2        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Actions_API/__Sample_cookie__Action_java
committed   * Up-To-Date  1.4        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Actions_API/__Sample_grouping__Action_java
committed   * Up-To-Date  1.3        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Actions_API/__Sample_node__Action_java
committed   * Up-To-Date  1.3        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Actions_API/__Sample_submenu__Action_java
committed   * Up-To-Date  1.4        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Nodes_API/__Sample_container__Node_java
committed   * Up-To-Date  1.2        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Nodes_API/__Sample_leaf__Node_java
committed   * Up-To-Date  1.5        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Window_System_API/TopComponent_java
committed   * Up-To-Date  1.3        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Window_System_API/WizardAction_java
committed   * Up-To-Date  1.7        
openide/api/examples/org/netbeans/examples/scripts/ExampleTextAction.java
committed   * Up-To-Date  1.14       
openide/src/org/openide/awt/ToolbarButton.java
committed   * Up-To-Date  1.48       
openide/src/org/openide/nodes/AbstractNode.java
committed   * Up-To-Date  1.19       
openide/src/org/openide/util/Bundle.properties
committed   * Up-To-Date  1.10       
openide/src/org/openide/util/IconManager.java
committed   * Up-To-Date  1.80       
openide/src/org/openide/util/Utilities.java
committed   * Up-To-Date  1.55       
openide/src/org/openide/util/actions/SystemAction.java
Comment 3 Petr Nejedly 2002-02-19 14:25:14 UTC
Fixed in openide/core BeanInfos and Actions
Comment 4 Quality Engineering 2003-07-01 15:50:28 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 5 Quality Engineering 2003-07-01 16:36:28 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2016-03-12 05:09:35 UTC
Integrated into 'main-silver', will be available in build *201603120306* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/62528afb22ad
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fix WARNING [org.openide.util.ImageUtilities]: Initial slashes in Utilities.loadImage deprecated (cf. #20072): /org/netbeans/modules/dlight/terminal/action/terminal_options.png