[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [recommenders-dev] [SnipMatch] Snippets json format files changed
|
Thanks for the update, Chen,
Keep up the good work and let me know if you get stuck!
And when you have a draft proposal for GSoC (no rush), please send it my way.
Doug
On Thu, Mar 1, 2012 at 10:58 PM, Chen Cheng <chengchendoc@xxxxxxxxx> wrote:
> Hi Marcel & Doug,
>
> I regenerated snippets json format files by GsonUtil class, and uploaded
> these json format files to snipmatch-snippets git work space. The json
> format looks like this:
>
> {
> "patterns": [
> "print $obj"
> ],
> "params": [
> {
> "name": "obj",
> "majorType": "expr",
> "minorType": ""
> }
> ],
> "envName": "javasnippet",
> "majorType": "stmt",
> "minorType": "",
> "code": "System.out.print(${obj});",
> "summary": "Print to standard output.",
> "id": ""
> }
>
> Now, we can use GsonUtil to deserialize them to Effect object:
>
> File file = new File("E://eclipse4//snippets//common//1.json");
> Effect node = GsonUtil.deserialize(file, Effect.class);
> System.out.println(node.getSummary());
>
> 2012/2/21 Marcel Bruch <marcel.bruch@xxxxxxxxx>
>>
>> I've created a new repository at Eclipselabs for storing our snippets:
>>
>>
>> http://code.google.com/a/eclipselabs.org/p/code-recommenders/source/checkout?repo=snipmatch-snippets
>>
>>
>> Chen,
>> you have commit rights on Eclipselabs using your Gmail account. Please
>> note that there is a Googlecode password to use instead of the general
>> Google account's password.
>> See https://code.google.com/a/eclipselabs.org/hosting/settings for details
>> on that.
>>
>>
>> 3. Marcel supplies a Lucene and Git file system based snippets search
>> engine both for server side and client side.
>>
>>
>> Chen,
>> can you submit the snippets you have ported / when ported to this
>> repository? I'll then create a simple search interface with Lucene.
>>
>>
>> As soon as we have snipmatch at Eclipse and the local search working,
>> we'll put it onto the HEAD update site for testing. I'm really excited
>> about to this :)
>>
>> _______________________________________________
>> recommenders-dev mailing list
>> recommenders-dev@xxxxxxxxxxx
>> http://dev.eclipse.org/mailman/listinfo/recommenders-dev
>>
>
>
>
> --
> Best Regards From Cheng Chen [chengchendoc@xxxxxxxxx]
>
> _______________________________________________
> recommenders-dev mailing list
> recommenders-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/recommenders-dev
>