Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] Registering an additional customer IPainter with the text / generic editor

Thanks, Mickael and Dani for the help.

On Thu, Nov 23, 2017 at 11:58 AM, Daniel Megert
<daniel_megert@xxxxxxxxxx> wrote:
> You need to have a reference of the viewer and then you can use
> org.eclipse.jface.text.ITextViewerExtension2.addPainter(IPainter).
>
> Dani
>
>
>
> From:        Lars Vogel <lars.vogel@xxxxxxxxxxx>
> To:        "Eclipse platform general developers list."
> <platform-dev@xxxxxxxxxxx>
> Date:        22.11.2017 20:44
> Subject:        [platform-dev] Registering an additional customer IPainter
> with the        text / generic editor
> Sent by:        platform-dev-bounces@xxxxxxxxxxx
> ________________________________
>
>
>
> Hi,
>
> Does anyone know how I can register an additional custom IPainter with
> the text or the generic editor?
>
> I see in org.eclipse.ui.genericeditor.examples from the text repo how
> I can define my own if I own the content type but I would like to add
> an additional one.
>
> I also found
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sschaef_IndentGuide&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=1UITCR5rxUZHSFczvfaNFK4ymEbEiccRX7VKchpqz0Y&m=E8Y7rm7y4nBOiKKX_BjComkDiTO1Nv4ZivtPwV_0Yv8&s=BNq1-GNpwFjGfV75qvbRL7LnAghCzayru8CXCq2C3dE&e=but
> they use
> reflection to add there IPainter to the text editor.
>
> Do we have API for this? If yes, where can I find an example for this?
>
> Best regards, Lars
>
> P.S. I asked Mickael via private email but he rightly suggested to ask
> this via a public mailing list
>
>
> --
> Eclipse Platform project co-lead
> CEO vogella GmbH
>
> Haindaalwisch 17a, 22395 Hamburg
> Amtsgericht Hamburg: HRB 127058
> Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
> USt-IdNr.: DE284122352
> Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vogella.com&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=1UITCR5rxUZHSFczvfaNFK4ymEbEiccRX7VKchpqz0Y&m=E8Y7rm7y4nBOiKKX_BjComkDiTO1Nv4ZivtPwV_0Yv8&s=LnDnLc12gRrzicRfqlG_qjuh8G8lnFIJia8YNUygyRw&e=
> _______________________________________________
> platform-dev mailing list
> platform-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_platform-2Ddev&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=1UITCR5rxUZHSFczvfaNFK4ymEbEiccRX7VKchpqz0Y&m=E8Y7rm7y4nBOiKKX_BjComkDiTO1Nv4ZivtPwV_0Yv8&s=dB-SGLa9ThKr8XBW0jt7jpUg8t-sARwBg45biE2Ksq8&e=
>
>
>
>
> _______________________________________________
> platform-dev mailing list
> platform-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/platform-dev



-- 
Eclipse Platform project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top