Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] project specific task tags

hello all -

  i'd like to see support for project specific task tags added. i've already taken care of all of the preference/property page work, but now i've run into a problem configuring the script scanner with the proper task tags.

  i was attempting to use the ITextEditor object that is passed to the ScriptSourceViewerConfiguration to obtain the IScriptProject for the editor object, but the problem is that when the ScriptSourceViewerConfiguration object is created, the underlying resource has not been wired up to the editor yet, and calling getEditorInput() against the ITextEditor object always yeilds null, so the PreferencesLookupDelegate object i am trying to create always gets passed null, and the ProjectScope object never gets created, and project level properties are never searched.

  i tried looking at what the jdt is doing, but i'm unsure of how their comment scanner is able to find the project specific settings since i don't see anything in their implementation using the IPreferencesService, which is what the IPreferenceLookupDelegate implemenation uses to look through the various preference scopes.

--
-jae

Back to the top