Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] selection engine implementation

Hi Jae,

You are supposed to return the IModelElement representing the thing at
the specified location.
If the exact match couldn't be found, then multiple candidates could
be returned.

The first step is locating the AST node at the location - it's done
visiting the tree.
Then if the AST node looks like a reference you try to resolve it and
return the IModelElement found (type, method, field or create a local
variable).
Something like that.

Implementations are slightly different, as they were created in
different time and actually the languages are different too.

Regards,
Alex

On Wed, Apr 18, 2012 at 07:36, Jae Gangemi <jgangemi@xxxxxxxxx> wrote:
> hello all -
>
>   i'm looking to start adding some basic hyperlink support to my editor, so
> i've starting working on an implementation of a ScriptSelectionEngine...
>
>   the problem is, there's basically no documentation on how any of this is
> supposed to work and the 4 dltk language plugins all seem to do things some
> what differently, w/ the javascript plugin blazing a trail w/ a whole new
> set of implementations, so i'm a little perplexed on how to get started.
>
>   any suggestions?
>
>   thanks!!
>
> --
> -jae
>
> _______________________________________________
> dltk-dev mailing list
> dltk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dltk-dev
>


Back to the top