eclipse / nebula

Nebula Project
https://eclipse.org/nebula
Eclipse Public License 2.0
85 stars 98 forks source link

[TextAssist] Provide normal SWT constructor and improve snippet #423

Closed wimjongman closed 2 years ago

wimjongman commented 2 years ago

We should provide a normal SWT constructor. The widget already has a setContentProvider. It would make the sequence like this:

    final TextAssist textAssist = new TextAssist(shell, SWT.SINGLE | SWT.BORDER);
    textAssist.setContentProvider(contentProvider);

The main snippet's content provider could be a little more clear when people try the widget out.

wimjongman commented 2 years ago

Before closing, the wiki should be updated.

https://wiki.eclipse.org/Nebula_TextAssist