Giter Site home page Giter Site logo

Comments (14)

markiewb avatar markiewb commented on July 30, 2024 1

@Chris2011: Why not? Improvements are better than nothing.

from gwt4nb.

Chris2011 avatar Chris2011 commented on July 30, 2024

It's not real JavaScript code I think, because :: doesn't exists in JS.

from gwt4nb.

Chris2011 avatar Chris2011 commented on July 30, 2024

Is this project still alive? Other IDE's like IDEA and Eclipse have a lot of GWT support.

from gwt4nb.

markiewb avatar markiewb commented on July 30, 2024

Afaik: The plugin for eclipse is developed by Google. The plugin for Idea
is developed Jetbrains. This plugin is created by a dev in his free time.

If you want a specific feature implement it yourself and provide a pull
request. Or make a donation so that the author is motivated to spend his
deserved free time to implement it. My 2 cents

Best regards, markiewb
On 6 Feb 2015 10:27, "Chris2011" [email protected] wrote:

Is this project still alive? Other IDE's like IDEA and Eclipse have a lot
of GWT support.


Reply to this email directly or view it on GitHub
#36 (comment).

from gwt4nb.

markiewb avatar markiewb commented on July 30, 2024

See https://netbeans.org/bugzilla/show_bug.cgi?id=250751

from gwt4nb.

markiewb avatar markiewb commented on July 30, 2024

@ksfreitas started the support years ago

Here is the code, if someone wants to jump in: https://github.com/ksfreitas/NBGwt/commit/dd834e9132cbbf4005642654b4ee9566cdc5f979

from gwt4nb.

Chris2011 avatar Chris2011 commented on July 30, 2024

As I see it right, it is already implemented in trunk: https://github.com/ksfreitas/gwt4nb/blob/master/trunk/src/org/netbeans/modules/gwt4nb/JsniLanguage.java

but it doesn't work.

from gwt4nb.

Chris2011 avatar Chris2011 commented on July 30, 2024

Maybe this could be an option? https://blogs.oracle.com/geertjan/entry/embedding_javascript_editor_in_java

from gwt4nb.

Chris2011 avatar Chris2011 commented on July 30, 2024

So based on the blog entry from Geertjan, I implemented it here: https://github.com/Chris2011/gwt4nb/blob/jsni-feature/branches/standalone_nbm_prj/src/org/netbeans/modules/gwt4nb/JSNISupport.java

jsnisyntaxhighlighting

So we have syntax highlighting and code completion ONLY for code templates. So no real code completion. I think it's a bit harder for embedded languages. And I got a NPE after I open a maven multi module project. embeddedLanguage is null. If someone can help maybe, Would be great.

from gwt4nb.

Chris2011 avatar Chris2011 commented on July 30, 2024

I commented out the null check so the NPE is gone ^^. But should be fixed. Pull request worthy?

from gwt4nb.

Chris2011 avatar Chris2011 commented on July 30, 2024

You are right.

from gwt4nb.

markiewb avatar markiewb commented on July 30, 2024

@Chris2011: Do you know a maven based GWT sample project, where I can try out your feature?

from gwt4nb.

Chris2011 avatar Chris2011 commented on July 30, 2024

Unfortunately not, but maybe this? https://github.com/steinsag/gwt-maven-example and add a class with JSNI.

from gwt4nb.

markiewb avatar markiewb commented on July 30, 2024

Here are some samples

    public static native void alert(String msg) /*-{
  $wnd.alert(msg);
}-*/;

    public static native double getPageStartTime()/*-{
            if (true){
                return new Long();
            }
            return 34;
            }-*/;

    public final native void setName(String name) /*-{
   [email protected]::jso.name = name;
}-*/;

from gwt4nb.

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.