Coder Social home page Coder Social logo

eclipse-wtp-json's Introduction

Eclipse WTP/JSON

This project tries to move to Eclipse WTP. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=471820

Build Status

Goal of Eclipse WTP JSON is to create an advanced JSON Editor based on WTP, which is extensible and contribute if WTP Team are interested. WTP JSON Editor will provide extension points to customize the editor with custom, completion, validation, hyperlink and text hover to provide same features than Working with composer.json in PhpStorm for instance.

Those extension can be usefull to provide custom editor for bower.json, .jshintrc, etc.

Eclipse WTP JSON provides a JSON Editor based on Eclipse WTP (SSE):

JSON Editor

Features

Today this project is a POC, but her goal is to provide a WTP JSON Editor with the following commons features :

And provides advanced features like :

  • Extends the editor with custom completion: TODO! (completion which follows a JSON Schema, whith files for bower.json, etc)
  • Extends the editor with custom hyperlink (hyperlink to open a file from a JSON string value).
  • Extends the editor with custom validation (validate the existing of declared file from a JSON string value).
  • Extends the editor with custom hover (text hover displays information about the JSON string value which decalred a file (file path, name, etc)).

Why another JSON Editor?

See tern.java issue 253.

There exist several JSON Editors :

But there are some limitations :

  • not possible to update the JSON Editor with an JSON model kind like WTP IDOMModel and ICSSModel.
  • not extensible to extends completion and validation

Installation

Eclipse WTP Web JSON is developed/tested with Eclipse 4.4 Luna. It is advised to use Eclipse 4.4 Luna (even if it could work with older version of Eclipse).

To install Eclipse WTP JSON, please read Installation - Update Site section.

Build

Eclipse WTP Web Resourcese is build with this cloudbees job.

Architecture

WTP JSON Editor It follows the same architecture than XML, CSS, DTD, WTP Editors (org.eclipse.wst.sse.ui.StructuredTextEditor)

eclipse-wtp-json's People

Contributors

angelozerr avatar pascalleclercq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

paulvi jabby

eclipse-wtp-json's Issues

Improve JSON formatting

If I write a json content like this.

{
    "string": "A string",
    "object": {
        "string": "A string",
        "string2": "Other string"
    }
}

And after I use ctrl+shift+f to format the JSON code, I get this :

{
    "string":"A string"

}"object":{"string":"A string","string2":"Other string"}

}
}

Is it possible to improve formatting ? Thanks a lot.

text folding problem

Hi, please try the piece of code as follow: the feature of folding is disorder when code has the brackets and brace nesting structure.

{
    "aaa": "index.html",
    icons": [
           {"src": "res/img/icon1.png"},
           {"src": "res/img/icon2.png"}
     ],
    "ddd": {
             "aaa": "aaa",
             "bbb": "bbb"
     }
 }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.