Re: Project structure in IntelliJ

2016-03-01 Thread Benjamin Tillman
No worries, that will be my next stop. I just thought another GWT / 
IntelliJ user might have already figured this out.

Cheers,
Ben.

On Tuesday, 1 March 2016 21:44:16 UTC+11, Thomas Broyer wrote:
>
> You may want to contact JetBrains' support directly: 
> https://www.jetbrains.com/support/
> (hey, you paid for their product after all!)
>
> On Monday, February 29, 2016 at 7:21:44 PM UTC+1, Benjamin Tillman wrote:
>>
>> Maybe I'm just missing something, but I can't find a way to stray from 
>> IntelliJ's suggested package structure for GWT apps (see this link 
>> <https://www.jetbrains.com/idea/help/developing-gwt-components.html>).
>>
>> For example, if I have an application organised using a standard Maven 
>> directory layout, I'd like to place my module file (module.gwt.xml) in the 
>> src/main/resources/com/example/ folder, but this breaks IntelliJ's GWT 
>> build (the GWT compiler simply reports back it can't find module.gwt.xml on 
>> the classpath). Including src/main/resources/ as a content root in 
>> IntelliJ's project structure window doesn't seem to make any difference 
>> either.
>>
>> It's the same deal for my GSS files, but in this case it's even more 
>> annoying because as soon as my GSS files are outside of src/main/java then 
>> I lose some IDE support for those files too.
>>
>> I can build with Maven or Gradle no problems, but I'm wondering if it's 
>> possible to get IntelliJ to do the same. Mostly for the IDE support, but 
>> just in general would be great.
>>
>> Cheers,
>> Ben.
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Project structure in IntelliJ

2016-02-29 Thread Benjamin Tillman
Maybe I'm just missing something, but I can't find a way to stray from 
IntelliJ's suggested package structure for GWT apps (see this link 
).

For example, if I have an application organised using a standard Maven 
directory layout, I'd like to place my module file (module.gwt.xml) in the 
src/main/resources/com/example/ folder, but this breaks IntelliJ's GWT 
build (the GWT compiler simply reports back it can't find module.gwt.xml on 
the classpath). Including src/main/resources/ as a content root in 
IntelliJ's project structure window doesn't seem to make any difference 
either.

It's the same deal for my GSS files, but in this case it's even more 
annoying because as soon as my GSS files are outside of src/main/java then 
I lose some IDE support for those files too.

I can build with Maven or Gradle no problems, but I'm wondering if it's 
possible to get IntelliJ to do the same. Mostly for the IDE support, but 
just in general would be great.

Cheers,
Ben.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: JsInterop Question

2015-08-25 Thread Benjamin Tillman
That's fine, I was just trying to pre-empt Elemental 2.0 a bit and got the 
impression from the compiler complaint and some of the design docs linked 
here that examples like the above wouldn't be possible.

Regards,
Ben.

On Monday, 24 August 2015 22:32:55 UTC+10, Jens wrote:

 You need to use normal JavaScriptObject + JSNI for now for these cases.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/3a284009-6d3b-40a5-a9bc-8aeb6549ef58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: JsInterop question ...

2015-08-24 Thread Benjamin Tillman
Any chance of reply? If it's a bad question I'm happy to hear that as well, 
just so I know I'm thinking about this the wrong way.

Regards,
Ben.

On Wednesday, 1 July 2015 05:30:17 UTC+10, Benjamin Tillman wrote:

 Hey everyone, just a quick question regarding JsInterop: how is it 
 proposed to manage javascript functions that can potentially take more than 
 one type of parameter? For example, take the websocket interface 
 http://www.w3.org/TR/websockets/#the-websocket-interface:

 @JsType(prototype = WebSocket)
 public interface WebSocket extends EventTarget {

   ... blah blah.

   void send(String data);
   // void send(Blob data); -- JsInterop forbids this

 }


 I suppose that the following is possible

 @JsType(prototype = WebSocket)
 public interface WebSocket extends EventTarget {

   void send(Object data);

 }


 but ... this doesn't seem ideal from a Java perspective :)

 Regards,
 Ben.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: JsInterop Question

2015-08-24 Thread Benjamin Tillman
Any chance of reply? If it's a bad question I'm happy to hear that as well, 
just so I know I'm thinking about this the wrong way.

Regards,
Ben.

On Friday, 31 July 2015 17:13:32 UTC+10, Benjamin Tillman wrote:

 Hey everyone, I posted this question on the GWT group here 
 https://groups.google.com/forum/#!topic/google-web-toolkit/sj3pyJPijB8 
 at the beginning of the month, but since I didn't get a reply I'm just 
 cross-posting here :)

 Just a quick question regarding JsInterop: how is it proposed to manage 
 javascript functions that can potentially take more than one type of 
 parameter? For example, take the websocket interface 
 http://www.w3.org/TR/websockets/#the-websocket-interface:

 @JsType(prototype = WebSocket)
 public interface WebSocket extends EventTarget {

   ... blah blah.

   void send(String data);
   // void send(Blob data); -- JsInterop forbids this

 }


 I suppose that the following is possible

 @JsType(prototype = WebSocket)
 public interface WebSocket extends EventTarget {

   void send(Object data);

 }


 but ... this doesn't seem ideal from a Java perspective :)

 Regards,
 Ben.


-- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/02188193-4760-48d7-a43f-2331b1fbc377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] JsInterop Question

2015-07-31 Thread Benjamin Tillman
Hey everyone, I posted this question on the GWT group here 
https://groups.google.com/forum/#!topic/google-web-toolkit/sj3pyJPijB8 at 
the beginning of the month, but since I didn't get a reply I'm just 
cross-posting here :)

Just a quick question regarding JsInterop: how is it proposed to manage 
javascript functions that can potentially take more than one type of 
parameter? For example, take the websocket interface 
http://www.w3.org/TR/websockets/#the-websocket-interface:

@JsType(prototype = WebSocket)
public interface WebSocket extends EventTarget {

  ... blah blah.

  void send(String data);
  // void send(Blob data); -- JsInterop forbids this

}


I suppose that the following is possible

@JsType(prototype = WebSocket)
public interface WebSocket extends EventTarget {

  void send(Object data);

}


but ... this doesn't seem ideal from a Java perspective :)

Regards,
Ben.

-- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/8417d030-4696-486a-ac3b-76edcab4111f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


JsInterop question ...

2015-06-30 Thread Benjamin Tillman
Hey everyone, just a quick question regarding JsInterop: how is it proposed 
to manage javascript functions that can potentially take more than one type 
of parameter? For example, take the websocket interface 
http://www.w3.org/TR/websockets/#the-websocket-interface:

@JsType(prototype = WebSocket)
public interface WebSocket extends EventTarget {

  ... blah blah.

  void send(String data);
  // void send(Blob data); -- JsInterop forbids this

}


I suppose that the following is possible

@JsType(prototype = WebSocket)
public interface WebSocket extends EventTarget {

  void send(Object data);

}


but ... this doesn't seem ideal from a Java perspective :)

Regards,
Ben.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


IntelliJ and debugging Javascript issues

2015-05-29 Thread Benjamin Tillman
Hello everyone,

I've just installed a fresh copy of IntelliJ (14.1) and wanted to test 
Super Dev Mode out (GWT 2.7.0). Everything seems to be working fine except 
that any breakpoints I set in IntelliJ are not working. I'm really not sure 
what information is going to help solve this issue, so let me list some 
things basics I have done/tried:

- I do have the Jetbrains Chrome plugin installed and it connects to 
IntelliJ fine
- IntelliJ says it's connected to the Chrome extension
- I can use Chrome's developer tools to set a breakpoint within Chrome and 
this is respected just fine
- I've tried using Chrome 43 and and Chrome Beta 44
- I've followed https://www.youtube.com/watch?v=pdh2aKW2JPU (apart from 
setting up Tomcat on my local machine), including setting a breakpoint on 
the same line in the code as was done in the video, yet nothing.

I'm happy to work through this, but I'm not even sure where to start 
looking. Any help would be much appreciated.

Regards,
Ben.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: IntelliJ and debugging Javascript issues

2015-05-29 Thread Benjamin Tillman
I guess it was just bad timing on my part to start playing with this 
yesterday as opposed to me doing something wrong. See this IntelliJ issue 
https://youtrack.jetbrains.com/issue/IDEA-139739 which will be fixed next 
release.

Regards,
Ben.

On Saturday, 30 May 2015 02:00:16 UTC+10, Jens wrote:

 Hm just tried it myself (using GWT 2.8 SNAPSHOT, IntelliJ 14.1.3) and I 
 have to say that it seems to be broken.

 I can only see the log output of chrome console in IntelliJ but break 
 points do not work. I guess they do not work because IntelliJ does not see 
 the SourceMaps provided by the SDM CodeServer. So IntelliJ does not know 
 how to map your break point on a Java line of code to the corresponding 
 JavaScript break point in Chrome debugger.

 Normally when you run the JavaScript debug run configuration in IntelliJ 
 you can switch to the Scripts tab in IntelliJs debug console and when you 
 open the node for the SDM CodeServer you can browse the data found on 
 http://localhost:9876/sourcemaps/app/ 
 http://10.8.1.24:9876/sourcemaps/app/ . However that is currently 
 missing so IntelliJ does not see source maps.

 I know that it does work in general because I already used it quite a bit 
 some time ago. I guess either a Chrome or IntelliJ update has introduced a 
 regression.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Animate CellList (adding and removing objects via ListDataProvider)

2013-11-12 Thread Benjamin Tillman
Is it possible to animate a CellList when a new object is added to or 
removed from the list wrapped by a ListDataProvider? At the moment, the 
item just instantly appears, but since I'm using the CellList as a menu, 
I'd like to make it a little more obvious that a menu item is now 
available/unavailable.

Regards,
Ben.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.