Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Is Mark Occurrence enable ?
Is Mark Occurrence enable ? [message #534323] Tue, 18 May 2010 16:15 Go to next message
David Largeteau is currently offline David Largeteau
Messages: 35
Registered: July 2009
Location: Bordeaux - France
Member
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 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
David Largeteau is currently offline David Largeteau
Messages: 35
Registered: July 2009
Location: Bordeaux - France
Member
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 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
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 #641253 is a reply to message #641210] Wed, 24 November 2010 16:19 Go to previous messageGo to next message
Marius Cojocaru is currently offline Marius Cojocaru
Messages: 8
Registered: November 2010
Junior Member
Great news,

When can we expect a new build soon, that will include this?
Re: Is Mark Occurrence enable ? [message #641488 is a reply to message #641210] Thu, 25 November 2010 16:10 Go to previous messageGo to next message
Marius Cojocaru is currently offline Marius Cojocaru
Messages: 8
Registered: November 2010
Junior Member
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 #641566 is a reply to message #641488] Fri, 26 November 2010 06:49 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
Hi Marius,

Fixed.
Thank you!
Please expect the new build soon.

Regards,
Alex
Re: Is Mark Occurrence enable ? [message #656345 is a reply to message #534323] Fri, 25 February 2011 08:27 Go to previous messageGo to next message
Walter Kruse is currently offline Walter Kruse
Messages: 2
Registered: July 2009
Junior Member
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 Go to previous messageGo to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOO
Messages: 49
Registered: January 2010
Member
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 #677103 is a reply to message #674625] Tue, 07 June 2011 15:21 Go to previous messageGo to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOO
Messages: 49
Registered: January 2010
Member
Hi,
It appears that I had to contribute a ScriptSelectionEngine to org.eclipse.dltk.core.selectionEngine.
Re: Is Mark Occurrence enable ? [message #677419 is a reply to message #677103] Wed, 08 June 2011 13:09 Go to previous messageGo to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOO
Messages: 49
Registered: January 2010
Member
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 Go to previous messageGo to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOO
Messages: 49
Registered: January 2010
Member
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 Go to previous message
Walter Kruse is currently offline Walter Kruse
Messages: 2
Registered: July 2009
Junior Member
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 ?
Previous Topic:Does there exist a interactive Ruby capability inside Eclipse?
Next Topic:Ruby debugging bug? (edited)
Goto Forum:
  


Current Time: Sun Sep 21 02:05:52 GMT 2014

Powered by FUDForum. Page generated in 0.02298 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software