How to add Eclipse Task Tags programmatically (Eclipse Plugin development)?
I am developing an Eclipse Plugin. I want to add my custom Task Tag programmatically within the plugin. (Lets say DOTHIS) Later, i开发者_高级运维 want to list the lines marked with DOTHIS tag in my custom taskView
I know that it is done using the Eclipse UI from Project > Properties > Java Compiler > Task Tags > New. and then in the task view by Configure Contents but how can i do these arranegments within the plugin?
Thanks in advance.
Check code of 'org.eclipse.jdt.internal.ui.preferences.TodoTaskPreferencePage' and 'org.eclipse.jdt.internal.ui.preferences.TodoTaskConfigurationBlock.updateModel(DialogField) ' from 'org.eclipse.jdt.ui' UI plugin.
精彩评论