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 89282
Collapse All | Expand All

(-)src/org/netbeans/api/editor/mimelookup/MimeLookup.java (+19 lines)
Lines 91-96 Link Here
91
    }
91
    }
92
92
93
    /**
93
    /**
94
     * Gets a <code>Lookup</code> implementation that exposes objects specific
95
     * for the given <code>MimePath</code> for the given mime-type
96
     * or mime-path given as string.
97
     * <br/>
98
     * The method first translates the string mime-path into {@link MimePath}
99
     * by using {@link MimePath#parse(String)} and then calls
100
     * {@link #getLookup(MimePath)}.
101
     *
102
     * @param mimePath non-null string which is either a mime-type e.g. "text/plain"
103
     *   or mime-path (multiple mime-types separated by slash) e.g.
104
     *   "text/x-jsp/text/x-java".
105
     * @return The <code>Lookup</code> containing instances for the given mime-path.
106
     * @see #getLookup(MimePath)
107
     */
108
    public static Lookup getLookup(String mimePath) {
109
        return getLookup(MimePath.parse(mimePath));
110
    }
111
112
    /**
94
     * Gets mime-type specific lookup.
113
     * Gets mime-type specific lookup.
95
     *
114
     *
96
     * @param mimeType non-null mime-type string representation, e.g. "text/x-java"
115
     * @param mimeType non-null mime-type string representation, e.g. "text/x-java"

Return to bug 89282