[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] project specific task tags
|
Hi Jae,
The ChainedPreferenceStore created in
org.eclipse.dltk.internal.ui.editor.ScriptEditor.createCombinedPreferenceStore(IEditorInput)
should be able to read project specific preferences now.
I have added the method
org.eclipse.dltk.core.IDLTKLanguageToolkit.getPreferenceQualifier() and
use it to construct additional PreferenceStore instances.
It is great you are implementing project-specific task tags!
Regards,
Alex
Jae Gangemi wrote:
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
------------------------------------------------------------------------
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev