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

(-)a/editor.lib/src/org/netbeans/editor/Settings.java (+6 lines)
Lines 368-373 Link Here
368
     */
368
     */
369
    public static Object getValue(Class kitClass, String settingName, boolean evaluateEvaluators) {
369
    public static Object getValue(Class kitClass, String settingName, boolean evaluateEvaluators) {
370
        String mimeType = KitsTracker.getInstance().findMimeType(kitClass);
370
        String mimeType = KitsTracker.getInstance().findMimeType(kitClass);
371
		Class trackedClass = kitClass;
372
		while (mimeType == null) {
373
			trackedClass = trackedClass.getSuperclass();
374
			if (trackedClass == null) break;
375
			mimeType = KitsTracker.getInstance().findMimeType(trackedClass);
376
		}
371
        MimePath mimePath = mimeType == null ? MimePath.EMPTY : MimePath.parse(mimeType);
377
        MimePath mimePath = mimeType == null ? MimePath.EMPTY : MimePath.parse(mimeType);
372
        
378
        
373
        // Get the value
379
        // Get the value

Return to bug 133942