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.

View | Details | Raw Unified | Return to bug 41506
Collapse All | Expand All

(-)URLMapper.java (-3 / +21 lines)
Lines 111-117 Link Here
111
     * <code> findURL(FileObject fo, int type) </code>.
111
     * <code> findURL(FileObject fo, int type) </code>.
112
     * @param url to wanted FileObjects
112
     * @param url to wanted FileObjects
113
     * @return a suitable arry of FileObjects, or empty array if not successful
113
     * @return a suitable arry of FileObjects, or empty array if not successful
114
     * @since  2.22*/
114
     * @since  2.22
115
     * @deprecated use method {@link #findFileObject findFileObject}
116
     */
115
    public static FileObject[] findFileObjects (URL url) {
117
    public static FileObject[] findFileObjects (URL url) {
116
        /** first basic implementation */
118
        /** first basic implementation */
117
        Set retSet = new HashSet ();
119
        Set retSet = new HashSet ();
Lines 131-139 Link Here
131
        return retVal;
133
        return retVal;
132
    }
134
    }
133
    /** Get an array of FileObjects for this url
135
    /** Find an appropiate instance of FileObject that addresses this url
136
     *
137
     * @param url url to be converted to file object
138
     * @return file object corresponding to url or null if no one was found
139
     * @since  X.XX
140
     */
141
    public static FileObject findFileObject (URL url) {
142
        FileObject fos[] = URLMapper.findFileObjects(url);
143
        return (fos.length != 0) ? fos[0] : null;
144
    }
145
146
147
    /** Get an array of FileObjects for this url. There is no reason to return array
148
     * with size greater than one because method {@link #findFileObject findFileObject}
149
     * uses just first element (next elements won't be accepted anyway).
150
     * <p class="nonnormative"> There isn't necessary to return array here.
151
     * The only one reason is just backward compatibility.</p>
134
     * @param url to wanted FileObjects
152
     * @param url to wanted FileObjects
135
     * @return a suitable arry of FileObjects, or null
153
     * @return an array of FileObjects with size no greater than one, or null
136
     * @since  2.22*/
154
     * @since  2.22*/
137
    public abstract FileObject[] getFileObjects (URL url);
155
    public abstract FileObject[] getFileObjects (URL url);

Return to bug 41506