Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Re: why is it that the ScriptSourceViewerConfiguration is created 4 times when a script editor is made?

Yeah i did seet that, for example scripteditor.init() calls
setPreferences() that creates one and then init also creates one
again, that one doesnt seem to be necesary. After that another
setpreference happpens i think through setInput. That one i dont
know..

When will setPreferenceStore be called after creation? (when really a
new one has to be created??)

On 18/12/2008, Alex Panchenko <alex@xxxxxxxxx> wrote:
> Hi Johan,
>
> One of reasons why ScriptSourceViewConfigurations are created multiple times
> is that they are re-created with the project specific preferences during
> doSetInput().
> I will check that part of the code.
>
> Regards,
> Alex
>
> ----- Original Message -----
> From: "Johan Compagner" <jcompagner@xxxxxxxxx>
> To: "DLTK Developer list" <dltk-dev@xxxxxxxxxxx>
> Sent: Thursday, December 18, 2008 7:36:29 PM GMT +06:00 Almaty, Novosibirsk
> Subject: [Dltk-dev] why is it that the ScriptSourceViewerConfiguration is
> created 4 times when a script editor is made?
>
>
> 3 times for the script editor itself and 1 time for the
> SemanticHighlightingManager
>
>
> so at least 2 of them dont make any sense because the are overwritten each
> time
>
> only 2 references are being kept, 1 in the script editor and the 1 in the
> SemanticHighlightingManager
>
> seems a bit of waste to me.
>
> (all scanners/tokens are initalized)
>
> johan
>
>
> _______________________________________________
> dltk-dev mailing list
> dltk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dltk-dev
> _______________________________________________
> dltk-dev mailing list
> dltk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dltk-dev
>


Back to the top