Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Outline View for other file endings

Hi Nicolai,

Yes it is possibly, but it will require custom outline view implementation.

You could override method getAdapter for your ScriptEditor based class,
and return different outline page.

Please refer to our outline implementation as example (ScriptOutlinePage
class, it adapted from ScriptEditor.getAdapter method).

Best regards,
Andrei Sobolev.

> Hi Andrei,
>
> i already had the outline view you are describing. My question was, if
> it s possible to provide a view for other file-endings too. For
> example .txt or .whatever instead of the default .tcl or .lua in my case.
>
> Best regards,
>
> Nicolai Mainiero
>
>
> Am 11.01.2008 um 08:19 schrieb Andrei Sobolev:
>
>> Hi Nicolai,
>>
>> DLTK show outline only for model elements (source modules), so if your
>> IDLTKLanguageToolkit class in method validateSourceModule return what
>> specified file is model element, it will be used as model element, and
>> outline, search and so on will be available.
>>
>> Please refer to TclLanguageToolkit from org.eclipse.dltk.tcl.core plugin
>> for reference implementation.
>>
>> Best regards,
>> Andrei Sobolev.
>>> Hi,
>>>
>>> currently the outline view is only shown, if a file with .lua
>>> extension is opened with the Lua editor.
>>>
>>> Is it possible to show the outline view for any file ending, when it
>>> is opened with the lua editor? Currently only an empty outline view is
>>> presented.
>>>
>>> yours
>>>
>>> Nicolai Maniero
>>> _______________________________________________
>>> 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
>
> _______________________________________________
> dltk-dev mailing list
> dltk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dltk-dev



Back to the top