[ANN] Beta version with User Plugins and Generic Lein popup

21 views
Skip to first unread message

Laurent PETIT

unread,
Dec 12, 2013, 5:17:24 PM12/12/13
to clojuredev-users, counterclockwise
Hello,

I'm glad to release today a beta version with 2 very exciting features:

- User Plugins
- Generic Lein popup



This feature works well already on my computer, but I'd like to gather as much feedback as possible from other OS X / Linux / Windows users before releasing a stable.


Counterclockwise/Standalone versions: 

Cheers,

-- 
Laurent Petit

Andrew Potgieter

unread,
Apr 20, 2014, 12:24:20 PM4/20/14
to clojured...@googlegroups.com
Hello Laurent

I am attempting to create a key binding plugin to toggle between the clojure editor and the currently running repl. I have got the plugin examples working but after that I am fumbling round in the dark a bit trying to understand what I need to do. 
I want to check which eclipse view I am (repl / editor) in and then swap focus. Should I look in the eclipse api's or the clojure.e4 / clojure.eclipse ?
Can you point me in the right direction?

A.

Also - should I post this here or in the users group?

Laurent PETIT

unread,
Apr 24, 2014, 9:24:49 AM4/24/14
to counterclockwise
Hello Andrew,


2014-04-20 18:24 GMT+02:00 Andrew Potgieter <andrew.pot...@gmail.com>:
Hello Laurent

I am attempting to create a key binding plugin to toggle between the clojure editor and the currently running repl. I have got the plugin examples working but after that I am fumbling round in the dark a bit trying to understand what I need to do. 
I want to check which eclipse view I am (repl / editor) in and then swap focus. Should I look in the eclipse api's or the clojure.e4 / clojure.eclipse ?
Can you point me in the right direction?

If you've followed the example then I think you're getting a context object. This is an Eclipse 4 object. 

You can work with it by requiring the ccw.e4.model namespace, using the function 'context-key with keys from the service-constants map (or directly constants / classes from Eclipse 4).

For instance to get the active part : 

(require '[ccw.e4.model :as m])

;; get the active view
(m/context-key context :active-part)

;; list all views then select the one named - not tested
(let [part-service (m/context-key context :part-service)
      parts (.getParts part-service)
      console (first (filter #(= "Console" (m/localized-label %)) parts))]
  (if console (.activate part-service console)))


What do you want to achieve exactly?

Cheers,

-- 
Laurent

 

A.

Also - should I post this here or in the users group?


On Thursday, 12 December 2013 22:17:24 UTC, laurent.petit wrote:
Hello,

I'm glad to release today a beta version with 2 very exciting features:

- User Plugins
- Generic Lein popup



This feature works well already on my computer, but I'd like to gather as much feedback as possible from other OS X / Linux / Windows users before releasing a stable.


Counterclockwise/Standalone versions: 

Cheers,

-- 
Laurent Petit

--
You received this message because you are subscribed to the Google Groups "counterclockwise" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojuredev-dev...@googlegroups.com.
To post to this group, send email to clojured...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojuredev-devel.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages