Skip to content
This repository was archived by the owner on Apr 8, 2019. It is now read-only.

Commit b3b963e

Browse files
author
aki
committed
add license
1 parent 04816dc commit b3b963e

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@
202202
limitations under the License.
203203

204204

205-
Chrome-textToSpeech
205+
HTML5GWT
206206

207-
Copyright (C) 2011 [email protected]
207+
Copyright (C) 2011-2012 [email protected]
208208

209209
Licensed under the Apache License, Version 2.0 (the "License");
210210
you may not use this file except in compliance with the License.

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
================================= -->
1818
<target name="default" depends="depends" description="description">
1919
<javac destdir="tmp" srcdir="src">
20-
<classpath path="C:\eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.4.0.v201206290132-rel-r37\gwt-2.4.0\gwt-user.jar;C:\eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.4.0.v201206290132-rel-r37\gwt-2.4.0\gwt-dev.jar">
20+
<classpath path="C:\eclipse\gwt-2.4.0\gwt-user.jar;C:\eclipse\gwt-2.4.0\gwt-dev.jar">
2121

2222
</classpath>
2323
</javac>

built/akjavahtml5gwt_121125.jar

175 KB
Binary file not shown.

src/com/akjava/gwt/html5/client/file/FileIOUtils.java

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,23 +236,24 @@ public static void writeFile(boolean persitent,final String path,final String te
236236
RequestFileSystem.requestFileSystem(type,0,new FileSystemCallback() {
237237
@Override
238238
public void fileSystemCallback(FileSystem fileSystem) {
239-
239+
debug("FileIoUtils-writeFile-fileSystemCallback");
240240
final Blob blob=Blob.createBlob(text, mimeType);
241241

242242
fileSystem.getRoot().getFile(path,true,false, new FileEntryCallback(){
243243

244244
@Override
245245
public void fileEntryCallback(final FileEntry file) {
246-
246+
debug("FileIoUtils-writeFile-fileEntryCallback");
247247
file.createWriter(new FileWriterCallback() {
248248

249249
@Override
250250
public void createWriterCallback(final FileWriter fileWriter) {
251-
251+
debug("FileIoUtils-writeFile-createWriterCallback");
252252

253253
fileWriter.setOnError(new ProgressEventCallback() {
254254
@Override
255255
public void progressEventCallback(ProgressEvent progressEvent) {
256+
debug("FileIoUtils-writeFile-createWriterCallback-onError");
256257
callback.onError("onWrite",file);
257258
}
258259
});//maybe should remove it
@@ -422,6 +423,23 @@ public interface MakeDirectoryCallback extends ErrorCallback{
422423
public void onMakeDirectory(FileEntry file);
423424
}
424425

426+
427+
public static boolean DEBUG;
428+
private static void debug(String log){
429+
if(!DEBUG){
430+
return;
431+
}
432+
log(log);
433+
}
434+
435+
private static final native void log(String object)/*-{
436+
if (navigator.appName == 'Microsoft Internet Explorer'){
437+
return;
438+
}
439+
if(console){
440+
console.log(object);
441+
}
442+
}-*/;
425443

426444

427445

0 commit comments

Comments
 (0)