Community
Participate
Working Groups
Build Identifier: 20110615-0604 Using a 'new BasicProblemPreference(StringKey, StringLabel, PreferenceType.TYPE_INTEGER);' results in a error when opening the problems preference dialog. The exception is thrown at ParametersComposite:199 because TYPE_INTEGER is not supported in the method createFieldEditorsForParameters. But other methods fully support TYPE_INTEGER. Simply adding case TYPE_INTEGER: { IntegerFieldEditor fe = new IntegerFieldEditor(info.getQualifiedKey(), info.getLabel(), getFieldEditorParent()); addField(fe); break; } in the method createFieldEditorsForParameters solves the problem. Reproducible: Always Steps to Reproduce: 1. Implement a BasicProblemPreference with type TYPE_INTEGER 2. Open your preference dialog
Created attachment 206935 [details] patch to fix bug
(In reply to comment #1) > Created attachment 206935 [details] > patch to fix bug You are more likely to get the patch reviewed and committed if you submit it through gerrit. See http://wiki.eclipse.org/CDT/git#Using_Gerrit_for_CDT.