Is Mark Occurrence enable ? [message #534323] |
Tue, 18 May 2010 16:15  |
Eclipse User |
|
|
|
Hi all,
Mark Occurrence action is a usefull action in java editor.
This action is also present in javaScript editor, but I can't find out
how to make it work with my plugin.
Is this action supproted by DLTK framework ?
Thanks in advance
David
|
|
|
Re: Is Mark Occurrence enable ? [message #534616 is a reply to message #534323] |
Wed, 19 May 2010 16:11   |
Eclipse User |
|
|
|
Hi David,
It's in our nearest plans, as we want to implement this action for some of the DLTK-based IDEs. I am not sure about exact date, but definitely it will be done during this summer. The most interesting part is actually language-dependent search - highlighting in the editor is not so complex.
Please stay tuned.
Regards,
Alex
|
|
|
Re: Is Mark Occurrence enable ? [message #637244 is a reply to message #534616] |
Thu, 04 November 2010 17:08   |
Eclipse User |
|
|
|
Alex Panchenko a écrit :
> Hi David,
>
> It's in our nearest plans, as we want to implement this action for some
> of the DLTK-based IDEs. I am not sure about exact date, but definitely
> it will be done during this summer. The most interesting part is
> actually language-dependent search - highlighting in the editor is not
> so complex.
>
> Please stay tuned.
>
> Regards,
> Alex
Hi Alex,
I would like to know if "Mark Occurence" is implemented ?
David
|
|
|
Re: Is Mark Occurrence enable ? [message #641210 is a reply to message #637244] |
Wed, 24 November 2010 14:53   |
Eclipse User |
|
|
|
Hi David,
Mark occurences was recently implemented (in CVS HEAD).
You can try it in JavaScript editor.
You should contribute implementation for your language, it can be done like following:
<extension point="org.eclipse.dltk.ui.search">
<occurrencesFinder
class="org.eclipse.dltk.ui.search.ModelElementOccurrencesFinder"
nature="org.eclipse.dltk.javascript.core.nature">
</occurrencesFinder>
</extension>
(This example uses standard implementation provided by DLTK, alterntively you can provide your own implementation).
Regards,
Alex
|
|
|
|
Re: Is Mark Occurrence enable ? [message #641488 is a reply to message #641210] |
Thu, 25 November 2010 16:10   |
Eclipse User |
|
|
|
Alex Panchenko wrote on Wed, 24 November 2010 09:53 | Hi David,
Mark occurences was recently implemented (in CVS HEAD).
You can try it in JavaScript editor.
You should contribute implementation for your language, it can be done like following:
<extension point="org.eclipse.dltk.ui.search">
<occurrencesFinder
class="org.eclipse.dltk.ui.search.ModelElementOccurrencesFinder"
nature="org.eclipse.dltk.javascript.core.nature">
</occurrencesFinder>
</extension>
(This example uses standard implementation provided by DLTK, alterntively you can provide your own implementation).
Regards,
Alex
|
Hi Alex,
The extension point is define that the class need to implement org.eclipse.dltk.internal.ui.editor.IOccurrencesFinder which doesn't exist. Instead there is org.eclipse.dltk.ui.search.IOccurrencesFinder
|
|
|
|
Re: Is Mark Occurrence enable ? [message #656345 is a reply to message #534323] |
Fri, 25 February 2011 08:27   |
Eclipse User |
|
|
|
Hi,
I'm using DLTK for Ruby, and have the following installed:
Dynamic Languages Toolkit - Core Frameworks 3.0.0.v20101211-0331
Dynamic Languages Toolkit - Ruby Development Tools 2.0.0.v20101212-1256
Mark Occurences is still not working for me. How do I get it working, or is it only a feature for JavaScript ?
|
|
|
Re: Is Mark Occurrence enable ? [message #674625 is a reply to message #656345] |
Fri, 27 May 2011 15:35   |
Eclipse User |
|
|
|
Hi,
I'm interested in highlighting variables occurrences. I checked behavior of default ModelElementOccurrencesFinder at runtime. The #initialize method as a ModuleDeclaration parameter. It does not seem to be filled as I did it implementing AbstractSourceParser#parse.
I am able to perform the match occurrences magic while parsing, but I don't know which component to fill.
Any lead?
|
|
|
|
Re: Is Mark Occurrence enable ? [message #677419 is a reply to message #677103] |
Wed, 08 June 2011 13:09   |
Eclipse User |
|
|
|
I'm using default implementation for variable highlight with my project nature<extension point="org.eclipse.dltk.ui.search">
<occurrencesFinder
class="org.eclipse.dltk.ui.search.ModelElementOccurrencesFinder"
nature="org.eclipse.koneki.ldt.nature">
</occurrencesFinder>
</extension> When I start my editor there are NPE modal windows appearing endlessly. Did I miss something? How can I adapt the behavior of this object to my language?
|
|
|
Re: Is Mark Occurrence enable ? [message #707374 is a reply to message #677419] |
Mon, 01 August 2011 15:14   |
Eclipse User |
|
|
|
Once you get your SelectionEngine able to fetch valid IModelElement from source position through ASTNodes.
Your ModelElementOccurrencesFinder just enable you to give source positions for every ASTNodes you locate.
How to do so? In my case I just matched occurrences and master reference at parse time.
|
|
|
Re: Is Mark Occurrence enable ? [message #778755 is a reply to message #707374] |
Fri, 13 January 2012 19:21  |
Eclipse User |
|
|
|
Hi,
I have now been updated to: Dynamic Languages Toolkit - Ruby Development Tools 4.0.0.201201070225
Mark occurrences is still not active for Ruby. Is there any simple way for a non-plugin developer to activate it ?
|
|
|
Powered by
FUDForum. Page generated in 0.04674 seconds