GithubHelp home page GithubHelp logo

Comments (4)

angelozerr avatar angelozerr commented on July 16, 2024

Which editor do you use it?

If it's with JDT Java Editor, it will not work, ec4e is working only with Generic Editor.

from ec4e.

nagromc avatar nagromc commented on July 16, 2024

That's right. I'm using the Java editor. Is it planed to support it?

from ec4e.

nagromc avatar nagromc commented on July 16, 2024

OK I missed the main page which states

...and works only with GenericEditor

Well, I didn't realize that wouldn't work with the Java editor. Sorry for the mess.

from ec4e.

angelozerr avatar angelozerr commented on July 16, 2024

That's right. I'm using the Java editor. Is it planed to support it?

No it's not possible to support it because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=457046#c14

As JDT re-read indent style, etc from the preferences (project or workspace), you can use my strategy which search value from a custom IPreferenceStore. The only solution to work with JDT is to update project or workspace preferences each time the editor takes the focus like https://github.com/ncjones/editorconfig-eclipse does.

I found not this solution very elegant, that's why I have created ec4e which works only with Generic Editor because Generic Editor doesn't re-read properties of indent, etc from a preferences but from a preference store (default behaviour of TextEditor).

I hope one day JDT will switch to Generic Editor and after we could benefit with ec4e.

from ec4e.

Related Issues (20)

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.