Comments (14)
@Chris2011: Why not? Improvements are better than nothing.
from gwt4nb.
It's not real JavaScript code I think, because :: doesn't exists in JS.
from gwt4nb.
Is this project still alive? Other IDE's like IDEA and Eclipse have a lot of GWT support.
from gwt4nb.
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.
See https://netbeans.org/bugzilla/show_bug.cgi?id=250751
from gwt4nb.
@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.
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.
Maybe this could be an option? https://blogs.oracle.com/geertjan/entry/embedding_javascript_editor_in_java
from gwt4nb.
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
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.
I commented out the null check so the NPE is gone ^^. But should be fixed. Pull request worthy?
from gwt4nb.
You are right.
from gwt4nb.
@Chris2011: Do you know a maven based GWT sample project, where I can try out your feature?
from gwt4nb.
Unfortunately not, but maybe this? https://github.com/steinsag/gwt-maven-example and add a class with JSNI.
from gwt4nb.
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)
- Add actions for gwt:run / gwt:debug to the context menu of mymodule.gwt.xml HOT 2
- Cannot specify module name when creating a maven based GWT project HOT 3
- GWT2.6.0-rc1 incompatible HOT 2
- Support autodiscovery of modules in maven-projects HOT 2
- GWT-Hints are not localised in the hints options
- GWT version detection uses deprecated field that has been removed in GWT 2.6 HOT 1
- Support for Super dev mode HOT 3
- Please add code completion support for attributes of controls.
- Please add support to detect missing ui:fields. HOT 3
- Problems while updating version of GWT HOT 1
- Build fails with GWT 2.7 HOT 2
- Support for NetBeans 8.1/8.2 HOT 9
- Add support for 2.7/2.8 HOT 3
- Code completion for JSNI
- Please avoid warning about ineffective registration of resolver.
- Setup: SDK get `here` link is wrong while setup
- Support/document setting compiler max memory for maven
- New Project Wizard Not Working As Expected HOT 13
- http://plugins.netbeans.org not reachable HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt4nb.