From 25726e99e6eecabf00932f0c37aba285d8724313 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Thu, 19 Feb 2015 01:15:09 +0100 Subject: [PATCH 01/16] trying to make gwt.test tests compile by separating out gwt-dev.jar into separate OSGi bundle, requiring its packages as needed in gwt.osgi bundle --- java/com.google.gwt.dev/.classpath | 7 + java/com.google.gwt.dev/.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 7 + .../.settings/org.eclipse.pde.core.prefs | 3 + java/com.google.gwt.dev/META-INF/MANIFEST.MF | 523 ++++++++++++++++++ java/com.google.gwt.dev/build.properties | 3 + .../lib/gwt-dev.jar | Bin java/com.google.gwt.dev/pom.xml | 13 + java/com.google.gwt.osgi/META-INF/MANIFEST.MF | 22 +- .../com.sap.sse.gwt.test/META-INF/MANIFEST.MF | 3 +- java/com.sap.sse.gwt.test/pom.xml | 8 + .../busyindicator/BusyIndicatorResources.java | 10 + .../busyindicator/SimpleBusyIndicator.java | 44 ++ .../controls/carousel/ImageCarousel.java | 267 +++++++++ java/pom.xml | 5 +- 15 files changed, 937 insertions(+), 6 deletions(-) create mode 100755 java/com.google.gwt.dev/.classpath create mode 100755 java/com.google.gwt.dev/.project create mode 100755 java/com.google.gwt.dev/.settings/org.eclipse.jdt.core.prefs create mode 100755 java/com.google.gwt.dev/.settings/org.eclipse.pde.core.prefs create mode 100755 java/com.google.gwt.dev/META-INF/MANIFEST.MF create mode 100755 java/com.google.gwt.dev/build.properties rename java/{com.google.gwt.osgi => com.google.gwt.dev}/lib/gwt-dev.jar (100%) create mode 100755 java/com.google.gwt.dev/pom.xml create mode 100644 java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/BusyIndicatorResources.java create mode 100644 java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/SimpleBusyIndicator.java create mode 100644 java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/carousel/ImageCarousel.java diff --git a/java/com.google.gwt.dev/.classpath b/java/com.google.gwt.dev/.classpath new file mode 100755 index 00000000000..d7a0cfed444 --- /dev/null +++ b/java/com.google.gwt.dev/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/java/com.google.gwt.dev/.project b/java/com.google.gwt.dev/.project new file mode 100755 index 00000000000..b4df77e1e2d --- /dev/null +++ b/java/com.google.gwt.dev/.project @@ -0,0 +1,28 @@ + + + com.google.gwt.dev + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/java/com.google.gwt.dev/.settings/org.eclipse.jdt.core.prefs b/java/com.google.gwt.dev/.settings/org.eclipse.jdt.core.prefs new file mode 100755 index 00000000000..295926d9641 --- /dev/null +++ b/java/com.google.gwt.dev/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/java/com.google.gwt.dev/.settings/org.eclipse.pde.core.prefs b/java/com.google.gwt.dev/.settings/org.eclipse.pde.core.prefs new file mode 100755 index 00000000000..b7e72d019c2 --- /dev/null +++ b/java/com.google.gwt.dev/.settings/org.eclipse.pde.core.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +pluginProject.extensions=false +resolve.requirebundle=false diff --git a/java/com.google.gwt.dev/META-INF/MANIFEST.MF b/java/com.google.gwt.dev/META-INF/MANIFEST.MF new file mode 100755 index 00000000000..3dace3e8b85 --- /dev/null +++ b/java/com.google.gwt.dev/META-INF/MANIFEST.MF @@ -0,0 +1,523 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Dev +Bundle-SymbolicName: com.google.gwt.dev +Bundle-Version: 2.7.0 +Bundle-Vendor: GOOGLE +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-ClassPath: lib/gwt-dev.jar, + . +Export-Package: com.gargoylesoftware.htmlunit, + com.gargoylesoftware.htmlunit.attachment, + com.gargoylesoftware.htmlunit.gae, + com.gargoylesoftware.htmlunit.html, + com.gargoylesoftware.htmlunit.html.applets, + com.gargoylesoftware.htmlunit.html.impl, + com.gargoylesoftware.htmlunit.html.xpath, + com.gargoylesoftware.htmlunit.javascript, + com.gargoylesoftware.htmlunit.javascript.background, + com.gargoylesoftware.htmlunit.javascript.configuration, + com.gargoylesoftware.htmlunit.javascript.host, + com.gargoylesoftware.htmlunit.javascript.host.arrays, + com.gargoylesoftware.htmlunit.javascript.host.canvas, + com.gargoylesoftware.htmlunit.javascript.host.css, + com.gargoylesoftware.htmlunit.javascript.host.dom, + com.gargoylesoftware.htmlunit.javascript.host.geo, + com.gargoylesoftware.htmlunit.javascript.host.html, + com.gargoylesoftware.htmlunit.javascript.host.svg, + com.gargoylesoftware.htmlunit.javascript.host.xml, + com.gargoylesoftware.htmlunit.javascript.regexp, + com.gargoylesoftware.htmlunit.protocol.about, + com.gargoylesoftware.htmlunit.protocol.data, + com.gargoylesoftware.htmlunit.protocol.javascript, + com.gargoylesoftware.htmlunit.svg, + com.gargoylesoftware.htmlunit.util, + com.gargoylesoftware.htmlunit.xml, + com.google.gwt.core.client, + com.google.gwt.core.client.impl, + com.google.gwt.core.ext, + com.google.gwt.core.ext.debug, + com.google.gwt.core.ext.impl, + com.google.gwt.core.ext.linker, + com.google.gwt.core.ext.linker.impl, + com.google.gwt.core.ext.soyc, + com.google.gwt.core.ext.soyc.coderef, + com.google.gwt.core.ext.soyc.impl, + com.google.gwt.core.ext.typeinfo, + com.google.gwt.core.linker, + com.google.gwt.core.shared, + com.google.gwt.dev, + com.google.gwt.dev.cfg, + com.google.gwt.dev.codeserver, + com.google.gwt.dev.generator, + com.google.gwt.dev.generator.ast, + com.google.gwt.dev.javac, + com.google.gwt.dev.javac.asm, + com.google.gwt.dev.javac.asmbridge, + com.google.gwt.dev.javac.testing, + com.google.gwt.dev.javac.testing.impl, + com.google.gwt.dev.javac.typemodel, + com.google.gwt.dev.jdt, + com.google.gwt.dev.jjs, + com.google.gwt.dev.jjs.ast, + com.google.gwt.dev.jjs.ast.js, + com.google.gwt.dev.jjs.impl, + com.google.gwt.dev.jjs.impl.codesplitter, + com.google.gwt.dev.jjs.impl.gflow, + com.google.gwt.dev.jjs.impl.gflow.cfg, + com.google.gwt.dev.jjs.impl.gflow.constants, + com.google.gwt.dev.jjs.impl.gflow.copy, + com.google.gwt.dev.jjs.impl.gflow.liveness, + com.google.gwt.dev.jjs.impl.gflow.unreachable, + com.google.gwt.dev.js, + com.google.gwt.dev.js.ast, + com.google.gwt.dev.js.rhino, + com.google.gwt.dev.json, + com.google.gwt.dev.protobuf, + com.google.gwt.dev.resource, + com.google.gwt.dev.resource.impl, + com.google.gwt.dev.shell, + com.google.gwt.dev.shell.ie, + com.google.gwt.dev.shell.jetty, + com.google.gwt.dev.shell.log, + com.google.gwt.dev.shell.remoteui, + com.google.gwt.dev.shell.rewrite, + com.google.gwt.dev.ui, + com.google.gwt.dev.url, + com.google.gwt.dev.util, + com.google.gwt.dev.util.arg, + com.google.gwt.dev.util.collect, + com.google.gwt.dev.util.editdistance, + com.google.gwt.dev.util.log, + com.google.gwt.dev.util.log.dashboard, + com.google.gwt.dev.util.log.speedtracer, + com.google.gwt.dev.util.msg, + com.google.gwt.dev.util.transitiveclosure, + com.google.gwt.dev.util.xml, + com.google.gwt.lang, + com.google.gwt.soyc, + com.google.gwt.soyc.io, + com.google.gwt.thirdparty.debugging.sourcemap, + com.google.gwt.thirdparty.debugging.sourcemap.proto, + com.google.gwt.thirdparty.guava.common.annotations, + com.google.gwt.thirdparty.guava.common.base, + com.google.gwt.thirdparty.guava.common.base.internal, + com.google.gwt.thirdparty.guava.common.cache, + com.google.gwt.thirdparty.guava.common.collect, + com.google.gwt.thirdparty.guava.common.escape, + com.google.gwt.thirdparty.guava.common.eventbus, + com.google.gwt.thirdparty.guava.common.hash, + com.google.gwt.thirdparty.guava.common.html, + com.google.gwt.thirdparty.guava.common.io, + com.google.gwt.thirdparty.guava.common.math, + com.google.gwt.thirdparty.guava.common.net, + com.google.gwt.thirdparty.guava.common.primitives, + com.google.gwt.thirdparty.guava.common.reflect, + com.google.gwt.thirdparty.guava.common.util.concurrent, + com.google.gwt.thirdparty.guava.common.xml, + com.google.gwt.thirdparty.javascript.jscomp, + com.google.gwt.thirdparty.javascript.jscomp.ant, + com.google.gwt.thirdparty.javascript.jscomp.deps, + com.google.gwt.thirdparty.javascript.jscomp.fuzzing, + com.google.gwt.thirdparty.javascript.jscomp.graph, + com.google.gwt.thirdparty.javascript.jscomp.parsing, + com.google.gwt.thirdparty.javascript.jscomp.parsing.parser, + com.google.gwt.thirdparty.javascript.jscomp.parsing.parser.codegeneration, + com.google.gwt.thirdparty.javascript.jscomp.parsing.parser.trees, + com.google.gwt.thirdparty.javascript.jscomp.parsing.parser.util, + com.google.gwt.thirdparty.javascript.jscomp.parsing.parser.util.format, + com.google.gwt.thirdparty.javascript.jscomp.regex, + com.google.gwt.thirdparty.javascript.jscomp.type, + com.google.gwt.thirdparty.javascript.rhino, + com.google.gwt.thirdparty.javascript.rhino.head, + com.google.gwt.thirdparty.javascript.rhino.head.annotations, + com.google.gwt.thirdparty.javascript.rhino.head.ast, + com.google.gwt.thirdparty.javascript.rhino.head.commonjs.module, + com.google.gwt.thirdparty.javascript.rhino.head.commonjs.module.provider, + com.google.gwt.thirdparty.javascript.rhino.head.debug, + com.google.gwt.thirdparty.javascript.rhino.head.jdk13, + com.google.gwt.thirdparty.javascript.rhino.head.jdk15, + com.google.gwt.thirdparty.javascript.rhino.head.json, + com.google.gwt.thirdparty.javascript.rhino.head.optimizer, + com.google.gwt.thirdparty.javascript.rhino.head.regexp, + com.google.gwt.thirdparty.javascript.rhino.head.serialize, + com.google.gwt.thirdparty.javascript.rhino.head.tools, + com.google.gwt.thirdparty.javascript.rhino.head.tools.debugger, + com.google.gwt.thirdparty.javascript.rhino.head.tools.debugger.treetable, + com.google.gwt.thirdparty.javascript.rhino.head.tools.idswitch, + com.google.gwt.thirdparty.javascript.rhino.head.tools.jsc, + com.google.gwt.thirdparty.javascript.rhino.head.tools.shell, + com.google.gwt.thirdparty.javascript.rhino.head.v8dtoa, + com.google.gwt.thirdparty.javascript.rhino.head.xml, + com.google.gwt.thirdparty.javascript.rhino.jstype, + com.google.gwt.thirdparty.json, + com.google.gwt.util, + com.google.gwt.util.tools, + com.google.gwt.util.tools.shared, + com.ibm.icu.impl, + com.ibm.icu.impl.data, + com.ibm.icu.impl.duration, + com.ibm.icu.impl.duration.impl, + com.ibm.icu.impl.locale, + com.ibm.icu.lang, + com.ibm.icu.math, + com.ibm.icu.text, + com.ibm.icu.util, + com.steadystate.css.dom, + com.steadystate.css.parser, + com.steadystate.css.parser.selectors, + com.steadystate.css.sac, + com.steadystate.css.userdata, + com.steadystate.css.util, + java_cup, + java_cup.anttask, + java_cup.runtime, + javax.annotation, + javax.annotation.concurrent, + javax.annotation.meta, + javax.servlet, + javax.servlet.annotation, + javax.servlet.descriptor, + javax.servlet.http, + javax.servlet.jsp, + javax.servlet.jsp.el, + javax.servlet.jsp.tagext, + javax.xml, + javax.xml.datatype, + javax.xml.namespace, + javax.xml.parsers, + javax.xml.stream, + javax.xml.stream.events, + javax.xml.stream.util, + javax.xml.transform, + javax.xml.transform.dom, + javax.xml.transform.sax, + javax.xml.transform.stax, + javax.xml.transform.stream, + javax.xml.validation, + javax.xml.xpath, + net.sourceforge.htmlunit.corejs.classfile, + net.sourceforge.htmlunit.corejs.javascript, + net.sourceforge.htmlunit.corejs.javascript.annotations, + net.sourceforge.htmlunit.corejs.javascript.ast, + net.sourceforge.htmlunit.corejs.javascript.commonjs.module, + net.sourceforge.htmlunit.corejs.javascript.commonjs.module.provider, + net.sourceforge.htmlunit.corejs.javascript.debug, + net.sourceforge.htmlunit.corejs.javascript.jdk13, + net.sourceforge.htmlunit.corejs.javascript.jdk15, + net.sourceforge.htmlunit.corejs.javascript.json, + net.sourceforge.htmlunit.corejs.javascript.optimizer, + net.sourceforge.htmlunit.corejs.javascript.regexp, + net.sourceforge.htmlunit.corejs.javascript.serialize, + net.sourceforge.htmlunit.corejs.javascript.tools, + net.sourceforge.htmlunit.corejs.javascript.tools.debugger, + net.sourceforge.htmlunit.corejs.javascript.tools.debugger.treetable, + net.sourceforge.htmlunit.corejs.javascript.tools.shell, + net.sourceforge.htmlunit.corejs.javascript.v8dtoa, + net.sourceforge.htmlunit.corejs.javascript.xml, + netscape.javascript, + org.apache.bcel, + org.apache.bcel.classfile, + org.apache.bcel.generic, + org.apache.bcel.util, + org.apache.bcel.verifier, + org.apache.bcel.verifier.exc, + org.apache.bcel.verifier.statics, + org.apache.bcel.verifier.structurals, + org.apache.commons.codec, + org.apache.commons.codec.binary, + org.apache.commons.codec.digest, + org.apache.commons.codec.language, + org.apache.commons.codec.language.bm, + org.apache.commons.codec.net, + org.apache.commons.collections, + org.apache.commons.collections.bag, + org.apache.commons.collections.bidimap, + org.apache.commons.collections.buffer, + org.apache.commons.collections.collection, + org.apache.commons.collections.comparators, + org.apache.commons.collections.functors, + org.apache.commons.collections.iterators, + org.apache.commons.collections.keyvalue, + org.apache.commons.collections.list, + org.apache.commons.collections.map, + org.apache.commons.collections.set, + org.apache.commons.el, + org.apache.commons.el.parser, + org.apache.commons.io, + org.apache.commons.io.comparator, + org.apache.commons.io.filefilter, + org.apache.commons.io.input, + org.apache.commons.io.monitor, + org.apache.commons.io.output, + org.apache.commons.lang3, + org.apache.commons.lang3.builder, + org.apache.commons.lang3.concurrent, + org.apache.commons.lang3.event, + org.apache.commons.lang3.exception, + org.apache.commons.lang3.math, + org.apache.commons.lang3.mutable, + org.apache.commons.lang3.reflect, + org.apache.commons.lang3.text, + org.apache.commons.lang3.text.translate, + org.apache.commons.lang3.time, + org.apache.commons.lang3.tuple, + org.apache.commons.logging, + org.apache.commons.logging.impl, + org.apache.html.dom, + org.apache.http, + org.apache.http.annotation, + org.apache.http.auth, + org.apache.http.auth.params, + org.apache.http.client, + org.apache.http.client.config, + org.apache.http.client.entity, + org.apache.http.client.methods, + org.apache.http.client.params, + org.apache.http.client.protocol, + org.apache.http.client.utils, + org.apache.http.concurrent, + org.apache.http.config, + org.apache.http.conn, + org.apache.http.conn.params, + org.apache.http.conn.routing, + org.apache.http.conn.scheme, + org.apache.http.conn.socket, + org.apache.http.conn.ssl, + org.apache.http.conn.util, + org.apache.http.cookie, + org.apache.http.cookie.params, + org.apache.http.entity, + org.apache.http.entity.mime, + org.apache.http.entity.mime.content, + org.apache.http.impl, + org.apache.http.impl.auth, + org.apache.http.impl.client, + org.apache.http.impl.conn, + org.apache.http.impl.conn.tsccm, + org.apache.http.impl.cookie, + org.apache.http.impl.entity, + org.apache.http.impl.execchain, + org.apache.http.impl.io, + org.apache.http.impl.pool, + org.apache.http.io, + org.apache.http.message, + org.apache.http.params, + org.apache.http.pool, + org.apache.http.protocol, + org.apache.http.util, + org.apache.james.mime4j, + org.apache.james.mime4j.codec, + org.apache.james.mime4j.descriptor, + org.apache.james.mime4j.field, + org.apache.james.mime4j.field.address, + org.apache.james.mime4j.field.address.parser, + org.apache.james.mime4j.field.contentdisposition.parser, + org.apache.james.mime4j.field.contenttype.parser, + org.apache.james.mime4j.field.datetime, + org.apache.james.mime4j.field.datetime.parser, + org.apache.james.mime4j.field.language.parser, + org.apache.james.mime4j.field.mimeversion.parser, + org.apache.james.mime4j.field.structured.parser, + org.apache.james.mime4j.io, + org.apache.james.mime4j.message, + org.apache.james.mime4j.parser, + org.apache.james.mime4j.storage, + org.apache.james.mime4j.util, + org.apache.jasper, + org.apache.jasper.compiler, + org.apache.jasper.compiler.tagplugin, + org.apache.jasper.runtime, + org.apache.jasper.security, + org.apache.jasper.servlet, + org.apache.jasper.tagplugins.jstl, + org.apache.jasper.util, + org.apache.jasper.xmlparser, + org.apache.regexp, + org.apache.tapestry.util.text, + org.apache.tools.ant, + org.apache.tools.ant.filters, + org.apache.tools.ant.filters.util, + org.apache.tools.ant.helper, + org.apache.tools.ant.input, + org.apache.tools.ant.listener, + org.apache.tools.ant.loader, + org.apache.tools.ant.taskdefs, + org.apache.tools.ant.taskdefs.compilers, + org.apache.tools.ant.taskdefs.condition, + org.apache.tools.ant.taskdefs.cvslib, + org.apache.tools.ant.taskdefs.email, + org.apache.tools.ant.taskdefs.rmic, + org.apache.tools.ant.types, + org.apache.tools.ant.types.mappers, + org.apache.tools.ant.types.resolver, + org.apache.tools.ant.types.selectors, + org.apache.tools.ant.types.selectors.modifiedselector, + org.apache.tools.ant.util, + org.apache.tools.ant.util.facade, + org.apache.tools.ant.util.regexp, + org.apache.tools.bzip2, + org.apache.tools.mail, + org.apache.tools.tar, + org.apache.tools.zip, + org.apache.wml, + org.apache.wml.dom, + org.apache.xalan, + org.apache.xalan.client, + org.apache.xalan.extensions, + org.apache.xalan.lib, + org.apache.xalan.lib.sql, + org.apache.xalan.processor, + org.apache.xalan.res, + org.apache.xalan.serialize, + org.apache.xalan.templates, + org.apache.xalan.trace, + org.apache.xalan.transformer, + org.apache.xalan.xslt, + org.apache.xalan.xsltc, + org.apache.xalan.xsltc.cmdline, + org.apache.xalan.xsltc.cmdline.getopt, + org.apache.xalan.xsltc.compiler, + org.apache.xalan.xsltc.compiler.util, + org.apache.xalan.xsltc.dom, + org.apache.xalan.xsltc.runtime, + org.apache.xalan.xsltc.runtime.output, + org.apache.xalan.xsltc.trax, + org.apache.xalan.xsltc.util, + org.apache.xerces.dom, + org.apache.xerces.dom.events, + org.apache.xerces.dom3.as, + org.apache.xerces.impl, + org.apache.xerces.impl.dtd, + org.apache.xerces.impl.dtd.models, + org.apache.xerces.impl.dv, + org.apache.xerces.impl.dv.dtd, + org.apache.xerces.impl.dv.util, + org.apache.xerces.impl.dv.xs, + org.apache.xerces.impl.io, + org.apache.xerces.impl.msg, + org.apache.xerces.impl.validation, + org.apache.xerces.impl.xpath, + org.apache.xerces.impl.xpath.regex, + org.apache.xerces.impl.xs, + org.apache.xerces.impl.xs.identity, + org.apache.xerces.impl.xs.models, + org.apache.xerces.impl.xs.opti, + org.apache.xerces.impl.xs.traversers, + org.apache.xerces.impl.xs.util, + org.apache.xerces.jaxp, + org.apache.xerces.jaxp.datatype, + org.apache.xerces.jaxp.validation, + org.apache.xerces.parsers, + org.apache.xerces.stax, + org.apache.xerces.stax.events, + org.apache.xerces.util, + org.apache.xerces.xinclude, + org.apache.xerces.xni, + org.apache.xerces.xni.grammars, + org.apache.xerces.xni.parser, + org.apache.xerces.xpointer, + org.apache.xerces.xs, + org.apache.xerces.xs.datatypes, + org.apache.xml.dtm, + org.apache.xml.dtm.ref, + org.apache.xml.dtm.ref.dom2dtm, + org.apache.xml.dtm.ref.sax2dtm, + org.apache.xml.res, + org.apache.xml.serialize, + org.apache.xml.serializer, + org.apache.xml.serializer.dom3, + org.apache.xml.serializer.utils, + org.apache.xml.utils, + org.apache.xml.utils.res, + org.apache.xmlcommons, + org.apache.xpath, + org.apache.xpath.axes, + org.apache.xpath.compiler, + org.apache.xpath.domapi, + org.apache.xpath.functions, + org.apache.xpath.jaxp, + org.apache.xpath.objects, + org.apache.xpath.operations, + org.apache.xpath.patterns, + org.apache.xpath.res, + org.cyberneko.html, + org.cyberneko.html.filters, + org.cyberneko.html.parsers, + org.cyberneko.html.xercesbridge, + org.eclipse.jdt.core, + org.eclipse.jdt.core.compiler, + org.eclipse.jdt.core.compiler.batch, + org.eclipse.jdt.internal.antadapter, + org.eclipse.jdt.internal.compiler, + org.eclipse.jdt.internal.compiler.ast, + org.eclipse.jdt.internal.compiler.batch, + org.eclipse.jdt.internal.compiler.classfmt, + org.eclipse.jdt.internal.compiler.codegen, + org.eclipse.jdt.internal.compiler.env, + org.eclipse.jdt.internal.compiler.flow, + org.eclipse.jdt.internal.compiler.impl, + org.eclipse.jdt.internal.compiler.lookup, + org.eclipse.jdt.internal.compiler.parser, + org.eclipse.jdt.internal.compiler.parser.diagnose, + org.eclipse.jdt.internal.compiler.problem, + org.eclipse.jdt.internal.compiler.util, + org.eclipse.jdt.internal.core.util, + org.eclipse.jetty.continuation, + org.eclipse.jetty.http, + org.eclipse.jetty.http.gzip, + org.eclipse.jetty.http.ssl, + org.eclipse.jetty.io, + org.eclipse.jetty.io.bio, + org.eclipse.jetty.io.nio, + org.eclipse.jetty.security, + org.eclipse.jetty.security.authentication, + org.eclipse.jetty.server, + org.eclipse.jetty.server.bio, + org.eclipse.jetty.server.handler, + org.eclipse.jetty.server.handler.jmx, + org.eclipse.jetty.server.jmx, + org.eclipse.jetty.server.nio, + org.eclipse.jetty.server.session, + org.eclipse.jetty.server.session.jmx, + org.eclipse.jetty.server.ssl, + org.eclipse.jetty.servlet, + org.eclipse.jetty.servlet.jmx, + org.eclipse.jetty.servlet.listener, + org.eclipse.jetty.servlets, + org.eclipse.jetty.util, + org.eclipse.jetty.util.ajax, + org.eclipse.jetty.util.component, + org.eclipse.jetty.util.log, + org.eclipse.jetty.util.preventers, + org.eclipse.jetty.util.resource, + org.eclipse.jetty.util.security, + org.eclipse.jetty.util.ssl, + org.eclipse.jetty.util.statistic, + org.eclipse.jetty.util.thread, + org.eclipse.jetty.webapp, + org.eclipse.jetty.websocket, + org.eclipse.jetty.xml, + org.objectweb.asm, + org.objectweb.asm.commons, + org.objectweb.asm.signature, + org.objectweb.asm.tree, + org.objectweb.asm.tree.analysis, + org.objectweb.asm.util, + org.objectweb.asm.xml, + org.w3c.css.sac, + org.w3c.css.sac.helpers, + org.w3c.dom, + org.w3c.dom.bootstrap, + org.w3c.dom.css, + org.w3c.dom.events, + org.w3c.dom.html, + org.w3c.dom.ls, + org.w3c.dom.ranges, + org.w3c.dom.stylesheets, + org.w3c.dom.traversal, + org.w3c.dom.views, + org.w3c.dom.xpath, + org.xml.sax, + org.xml.sax.ext, + org.xml.sax.helpers diff --git a/java/com.google.gwt.dev/build.properties b/java/com.google.gwt.dev/build.properties new file mode 100755 index 00000000000..2b37c8da50e --- /dev/null +++ b/java/com.google.gwt.dev/build.properties @@ -0,0 +1,3 @@ +bin.includes = META-INF/,\ + .,\ + lib/gwt-dev.jar diff --git a/java/com.google.gwt.osgi/lib/gwt-dev.jar b/java/com.google.gwt.dev/lib/gwt-dev.jar similarity index 100% rename from java/com.google.gwt.osgi/lib/gwt-dev.jar rename to java/com.google.gwt.dev/lib/gwt-dev.jar diff --git a/java/com.google.gwt.dev/pom.xml b/java/com.google.gwt.dev/pom.xml new file mode 100755 index 00000000000..845aa49059e --- /dev/null +++ b/java/com.google.gwt.dev/pom.xml @@ -0,0 +1,13 @@ + + + 4.0.0 + + root + com.sap.sailing + 1.0.0-SNAPSHOT + + com.google.gwt.dev + 2.7.0 + eclipse-plugin + diff --git a/java/com.google.gwt.osgi/META-INF/MANIFEST.MF b/java/com.google.gwt.osgi/META-INF/MANIFEST.MF index 8c41d90b6e2..400e003ca8c 100644 --- a/java/com.google.gwt.osgi/META-INF/MANIFEST.MF +++ b/java/com.google.gwt.osgi/META-INF/MANIFEST.MF @@ -172,6 +172,22 @@ Export-Package: com.google.gwt.activity.shared, com.google.web.bindery.requestfactory.vm.testing, org.hibernate.validator, org.hibernate.validator.engine -Require-Bundle: javax.validation;bundle-version="1.0.0" -Import-Package: javax.servlet;version="2.6.0", - javax.servlet.http;version="2.6.0" +Require-Bundle: javax.validation;bundle-version="1.0.0", + org.junit4;bundle-version="4.8.2" +Import-Package: com.gargoylesoftware.htmlunit, + com.google.gwt.core.ext, + com.google.gwt.core.ext.typeinfo, + com.google.gwt.dev, + com.google.gwt.dev.cfg, + com.google.gwt.dev.javac.typemodel, + com.google.gwt.dev.shell, + com.google.gwt.dev.shell.jetty, + com.google.gwt.dev.util.arg, + com.google.gwt.dev.util.collect, + com.google.gwt.junit, + com.google.gwt.thirdparty.guava.common.collect, + com.google.gwt.util.tools, + javax.servlet;version="2.6.0", + javax.servlet.http;version="2.6.0", + org.eclipse.jetty.server, + org.eclipse.jetty.webapp diff --git a/java/com.sap.sse.gwt.test/META-INF/MANIFEST.MF b/java/com.sap.sse.gwt.test/META-INF/MANIFEST.MF index 7fbd22023b4..4986d296d89 100644 --- a/java/com.sap.sse.gwt.test/META-INF/MANIFEST.MF +++ b/java/com.sap.sse.gwt.test/META-INF/MANIFEST.MF @@ -7,4 +7,5 @@ Bundle-Vendor: SAP Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Require-Bundle: com.sap.sse.gwt;bundle-version="1.0.0", com.sap.sse.common;bundle-version="1.0.0", - org.junit4;bundle-version="4.8.2" + org.junit4;bundle-version="4.8.2", + com.google.gwt.osgi;bundle-version="2.7.0" diff --git a/java/com.sap.sse.gwt.test/pom.xml b/java/com.sap.sse.gwt.test/pom.xml index b22d0bb4c1c..73933277341 100644 --- a/java/com.sap.sse.gwt.test/pom.xml +++ b/java/com.sap.sse.gwt.test/pom.xml @@ -9,6 +9,14 @@ com.sap.sse.gwt.test eclipse-test-plugin + + + com.google.gwt + gwt-dev + ${gwt.version} + + + diff --git a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/BusyIndicatorResources.java b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/BusyIndicatorResources.java new file mode 100644 index 00000000000..1add987b8c5 --- /dev/null +++ b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/BusyIndicatorResources.java @@ -0,0 +1,10 @@ +package com.sap.sse.gwt.client.controls.busyindicator; + +import com.google.gwt.resources.client.ClientBundle; +import com.google.gwt.resources.client.ImageResource; + +public interface BusyIndicatorResources extends ClientBundle { + + @Source("busy_indicator_circle.gif") + ImageResource busyIndicatorCircle(); +} diff --git a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/SimpleBusyIndicator.java b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/SimpleBusyIndicator.java new file mode 100644 index 00000000000..5a607e233d6 --- /dev/null +++ b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/SimpleBusyIndicator.java @@ -0,0 +1,44 @@ +package com.sap.sse.gwt.client.controls.busyindicator; + +import com.google.gwt.resources.client.ImageResource; +import com.google.gwt.user.client.ui.Image; + +public class SimpleBusyIndicator extends BusyIndicator { + + private Image busyIndicator; + + /** + * Creates a new SimpleBusyIndicator with the busy state false.
+ * The busy indicator component is a circling GIF. + */ + public SimpleBusyIndicator() { + this(false, 1.0f); + } + + /** + * Creates a new SimpleBusyIndicator with a custom busy state.
+ * The busy indicator component is a circling GIF. + * + * @param busy Sets the busy state of the BusyIndicator + * @param scale Scales the displayed image. 1.0 is 100%, 0.50 is 50%, ... + */ + public SimpleBusyIndicator(boolean busy, float scale) { + this(busy, scale, STYLE_NAME_PREFIX + "Simple", STYLE_NAME_PREFIX + "Circle"); + } + + public SimpleBusyIndicator(boolean busy, float scale, String panelCssClass, String imageCssClass) { + this.setStyleName(panelCssClass); + ImageResource resource = RESOURCES.busyIndicatorCircle(); + busyIndicator = new Image(resource.getSafeUri()); + busyIndicator.setStyleName(imageCssClass); + busyIndicator.setPixelSize((int) (resource.getWidth() * scale), (int) (resource.getHeight() * scale)); + add(busyIndicator); + setBusy(busy); + } + + @Override + public void setBusy(boolean busy) { + super.setBusy(busy); + busyIndicator.setVisible(busy); + } +} diff --git a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/carousel/ImageCarousel.java b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/carousel/ImageCarousel.java new file mode 100644 index 00000000000..a5456c8f101 --- /dev/null +++ b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/carousel/ImageCarousel.java @@ -0,0 +1,267 @@ +package com.sap.sse.gwt.client.controls.carousel; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.core.client.Scheduler; +import com.google.gwt.dom.client.DivElement; +import com.google.gwt.dom.client.Document; +import com.google.gwt.dom.client.Element; +import com.google.gwt.dom.client.ImageElement; +import com.google.gwt.dom.client.Style.Unit; +import com.google.gwt.safehtml.shared.UriUtils; +import com.google.gwt.uibinder.client.UiBinder; +import com.google.gwt.user.client.Command; +import com.google.gwt.user.client.ui.Widget; + +/** + * Image carousel that uses the open source "slick carousel". + *

+ * Documentation/ download of slick js and css from homepate/ github page. + * + * @see Slick homepage. + * @see Slick github page. + * + * + *

+ * + * This class uses JSNI to wrap the JS slick carousel. + * + * Usage: + * + * - Create widget + * + * ImageCarousel slider = new ImageCarousel(); + * + * - Add images + * + * slider.addImage("http://demotivators.despair.com/demotivational/foresightdemotivator.jpg"); + * slider.addImage("http://demotivators.despair.com/demotivational/commitmentdemotivator.jpg"); + * slider.addImage("http://demotivators.despair.com/demotivational/platitudesdemotivator.jpg"); + * slider.addImage("http://demotivators.despair.com/demotivational/destinyrockdemotivator.jpg"); + * slider.addImage("http://demotivators.despair.com/demotivational/aspirationdemotivator.jpg"); + * + * - Start the carousel + * + * slider.init(); + * + * The widget depends on css and js resources, as well as jquery 1.7+. + * + * + * Created by pgtaboada on 10.11.14. + */ +public class ImageCarousel extends Widget { + + private static SlickSliderUiBinder ourUiBinder = GWT.create(SlickSliderUiBinder.class); + + /** + * slick slider property: dots + */ + private boolean showDots = true; + /** + * slick slider property: centerMode + */ + private boolean centerMode = true; + /** + * slick slider property: variableWidth + */ + private boolean variableWidth = true; + /** + * slick slider property: infiniteScrolling + */ + private boolean infiniteScrolling = true; + /** + * Image margin (effectively sets spacing between images) + */ + private int contentMarginInPixels = 10; + /** + * Lazy load mechanism to use + */ + private String lazyload = LAZYLOAD.ONDEMAND.getPropertyValue(); + + /** + * The height of the images + */ + private int imagesHeight = 300; + + private final String uniqueId; + + /** + * Widget constructor + */ + public ImageCarousel() { + setElement(ourUiBinder.createAndBindUi(this)); + + uniqueId = "slider_" + Document.get().createUniqueId(); + getElement().addClassName(uniqueId); + init(); + } + + /** + * JSNI wrapper that does setup the slider + * + * @param uniqueId + */ + native void setupSlider(ImageCarousel sliderReference) /*-{ + + $wnd + .$( + '.' + + (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::uniqueId)) + .slick( + { + dots : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::showDots), + infinite : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::infiniteScrolling), + centerMode : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::centerMode), + variableWidth : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::variableWidth), + lazyLoad : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::lazyload), + swipeToSlide : false, + arrows : true, + responsive : true, + slidesToShow : 2 + + }); + $wnd + .$( + '.' + + (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::uniqueId) + + '>.slick-list>.slick-track') + .height( + sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::imagesHeight + + 'px'); + }-*/; + + /** + * Add new image to carousel. + * + * @param url + */ + public void addImage(String url, int height, int width) { + + DivElement imageHolder = Document.get().createDivElement(); + ImageElement imageElement = Document.get().createImageElement(); + imageElement.setAttribute("data-lazy", UriUtils.fromString(url).asString()); + + imageHolder.getStyle().setHeight(imagesHeight, Unit.PX); + imageHolder.getStyle().setWidth(Math.round(width * (imagesHeight / (double) height)), Unit.PX); + imageHolder.appendChild(imageElement); + + getElement().appendChild(imageHolder); + + if (getElement().getChildCount() > 20) { + setInfiniteScrolling(false); + setShowDots(false); + } + + } + + /** + * Define spacing between images in carousel. In fact, it is setting the img margins in pixels. + * + * @param contentMarginInPixels + */ + public void setContentMarginInPixels(int contentMarginInPixels) { + this.contentMarginInPixels = contentMarginInPixels; + } + + /** + * Set lazy loading technique. Accepts 'ondemand' or 'progressive'. + * + * @param lazyload + */ + public void setLazyload(LAZYLOAD lazyload) { + this.lazyload = lazyload.getPropertyValue(); + } + + /** + * Enable infinite loop sliding + */ + public void setInfiniteScrolling(boolean infiniteScrolling) { + this.infiniteScrolling = infiniteScrolling; + } + + /** + * Enable variable width slides. + * + * @param variableWidth + */ + public void setVariableWidth(boolean variableWidth) { + this.variableWidth = variableWidth; + } + + /** + * Enables centered view with partial prev/next slides. + * + * @param centerMode + */ + public void setCenterMode(boolean centerMode) { + this.centerMode = centerMode; + } + + /** + * Enable dot indicators + * + * @param showDots + */ + public void setShowDots(boolean showDots) { + this.showDots = showDots; + } + + /** + * UiBinder interface + */ + interface SlickSliderUiBinder extends UiBinder { + } + + /** + * Enum wrapper for lazy load techniques + */ + public enum LAZYLOAD { + + /** + * Loads each image "on demand" + */ + ONDEMAND("ondemand"), + + /** + * Progressively loads one image after another + */ + PROGRESSIVE("progressive"); + + String propertyValue; + + LAZYLOAD(String propertyValue) { + this.propertyValue = propertyValue; + } + + public String getPropertyValue() { + return propertyValue; + } + } + + /** + * Apply slick js to constructed dom tree. + */ + private void init() { + final ImageCarousel reference = this; + + Scheduler.get().scheduleDeferred(new Command() { + + @Override + public void execute() { + try { + setupSlider(reference); + + for (int childIndex = 0; childIndex < getElement().getChildCount(); childIndex++) { + Element child = Element.as(getElement().getChild(childIndex)); + if (child.getClassName() != null && child.getClassName().contains("slick-track")) { + + } + } + + } catch (Exception e) { + GWT.log("Catched Exception on slider init", e); + } + } + }); + } + +} \ No newline at end of file diff --git a/java/pom.xml b/java/pom.xml index 3374be9270a..8748125cac6 100755 --- a/java/pom.xml +++ b/java/pom.xml @@ -60,6 +60,7 @@ com.sap.sailing.www com.sap.sailing.www.events com.sap.sailing.xmlexport + com.google.gwt.dev com.google.gwt.osgi com.tractrac.clientmodule org.json.simple @@ -85,9 +86,9 @@ com.sap.sailing.gwt.ui com.sap.sailing.domain.test com.sap.sse.replication.testsupport - com.sap.sse.gwt.test - --> + com.sap.sse.datamining.test com.sap.sse.security.replication.test com.sap.sse.security.test From 1a4379c883f5ead3254e7de19c55cca7cf1671f4 Mon Sep 17 00:00:00 2001 From: fmittag Date: Thu, 19 Feb 2015 15:32:39 +0100 Subject: [PATCH 02/16] removed unused dependency in gwt.theme project --- java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF | 1 - 1 file changed, 1 deletion(-) diff --git a/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF b/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF index ff236c0cf0d..cd778356281 100644 --- a/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF +++ b/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF @@ -12,7 +12,6 @@ Import-Package: org.osgi.framework;version="1.7.0", javax.servlet.descriptor;version="3.1.0", javax.servlet.http;version="3.1.0" Require-Bundle: com.google.gwt.osgi;bundle-version="2.7.0", - com.sap.sailing.domain.common, com.sap.sse.common, com.sap.sse.gwt Web-ContextPath: /theme From 118cc09dd5c88d12c106fd14dac9dc630c831978 Mon Sep 17 00:00:00 2001 From: fmittag Date: Thu, 19 Feb 2015 16:00:51 +0100 Subject: [PATCH 03/16] removed another unused dependency in gwt.theme project --- java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF b/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF index cd778356281..b94daa9dc2a 100644 --- a/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF +++ b/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF @@ -12,7 +12,6 @@ Import-Package: org.osgi.framework;version="1.7.0", javax.servlet.descriptor;version="3.1.0", javax.servlet.http;version="3.1.0" Require-Bundle: com.google.gwt.osgi;bundle-version="2.7.0", - com.sap.sse.common, - com.sap.sse.gwt + com.sap.sse.common Web-ContextPath: /theme Export-Package: com.sap.sse.gwt.theme.client From 8117c1a08cfc3bcabc2880a3ec2160f3f8dcc475 Mon Sep 17 00:00:00 2001 From: fmittag Date: Thu, 19 Feb 2015 16:06:17 +0100 Subject: [PATCH 04/16] removed another dependency in gwt.theme project --- java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF b/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF index cd778356281..b94daa9dc2a 100644 --- a/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF +++ b/java/com.sap.sse.gwt.theme/META-INF/MANIFEST.MF @@ -12,7 +12,6 @@ Import-Package: org.osgi.framework;version="1.7.0", javax.servlet.descriptor;version="3.1.0", javax.servlet.http;version="3.1.0" Require-Bundle: com.google.gwt.osgi;bundle-version="2.7.0", - com.sap.sse.common, - com.sap.sse.gwt + com.sap.sse.common Web-ContextPath: /theme Export-Package: com.sap.sse.gwt.theme.client From a157a98b1ac518e1e14806997954b9f9695f0ef0 Mon Sep 17 00:00:00 2001 From: fmittag Date: Thu, 19 Feb 2015 16:07:40 +0100 Subject: [PATCH 05/16] removed unused dependency in sse.common --- java/com.sap.sse.common/META-INF/MANIFEST.MF | 1 - 1 file changed, 1 deletion(-) diff --git a/java/com.sap.sse.common/META-INF/MANIFEST.MF b/java/com.sap.sse.common/META-INF/MANIFEST.MF index 22a6396d68e..314738417f8 100644 --- a/java/com.sap.sse.common/META-INF/MANIFEST.MF +++ b/java/com.sap.sse.common/META-INF/MANIFEST.MF @@ -12,5 +12,4 @@ Export-Package: com.sap.sse.common, com.sap.sse.common.scalablevalue, com.sap.sse.common.search, com.sap.sse.common.util -Require-Bundle: com.sap.sse.datamining.shared;bundle-version="1.0.0" Bundle-ActivationPolicy: lazy From 50bd80e2fd51cd88fd33d7c3844558427e5c821b Mon Sep 17 00:00:00 2001 From: fmittag Date: Thu, 19 Feb 2015 16:14:02 +0100 Subject: [PATCH 06/16] readded removed dependency, but found a cyclic dependency this way --- java/com.sap.sse.common/META-INF/MANIFEST.MF | 1 + 1 file changed, 1 insertion(+) diff --git a/java/com.sap.sse.common/META-INF/MANIFEST.MF b/java/com.sap.sse.common/META-INF/MANIFEST.MF index 314738417f8..22a6396d68e 100644 --- a/java/com.sap.sse.common/META-INF/MANIFEST.MF +++ b/java/com.sap.sse.common/META-INF/MANIFEST.MF @@ -12,4 +12,5 @@ Export-Package: com.sap.sse.common, com.sap.sse.common.scalablevalue, com.sap.sse.common.search, com.sap.sse.common.util +Require-Bundle: com.sap.sse.datamining.shared;bundle-version="1.0.0" Bundle-ActivationPolicy: lazy From 05f067e5ad183e60d77495397876149e36cc124d Mon Sep 17 00:00:00 2001 From: fmittag Date: Thu, 19 Feb 2015 16:19:10 +0100 Subject: [PATCH 07/16] a try to further reduce the dependencies in gwt.theme project --- .../src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml index 8af42f07f54..261ba9709d6 100644 --- a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml @@ -5,11 +5,14 @@ + - + From 7e26237f75092cbd990cf1b5576316162394553a Mon Sep 17 00:00:00 2001 From: fmittag Date: Thu, 19 Feb 2015 16:54:53 +0100 Subject: [PATCH 08/16] reduced dependencies in gwt.theme project --- .../src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml index 261ba9709d6..a79745fe37b 100644 --- a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/SSETheme.gwt.xml @@ -5,14 +5,7 @@ - - From 8ed5f815254c28569e1e47aacf85b747bd6079ad Mon Sep 17 00:00:00 2001 From: fmittag Date: Sun, 22 Feb 2015 12:37:29 +0100 Subject: [PATCH 09/16] added (empty) image and video gallery to the theme library for ubilabs --- .../component/imagegallery/ImageGallery.gss | 2 ++ .../component/imagegallery/ImageGallery.java | 19 +++++++++++++++ .../imagegallery/ImageGallery.ui.xml | 9 ++++++++ .../imagegallery/ImageGalleryResources.java | 16 +++++++++++++ ...dingIndicator.css => LoadingIndicator.gss} | 0 .../loadingindicator/LoadingIndicator.ui.xml | 4 ++-- .../LoadingIndicatorResources.java | 2 +- .../{SAPHeader.css => SAPHeader.gss} | 1 - .../sapheader/SAPHeaderResources.java | 2 +- .../component/videogallery/VideoGallery.gss | 2 ++ .../component/videogallery/VideoGallery.java | 19 +++++++++++++++ .../videogallery/VideoGallery.ui.xml | 9 ++++++++ .../videogallery/VideoGalleryResources.java | 16 +++++++++++++ .../gwt/theme/client/showcase/MainPage.ui.xml | 6 +++++ .../components/ImageGalleryShowcase.java | 23 +++++++++++++++++++ .../components/ImageGalleryShowcase.ui.xml | 20 ++++++++++++++++ .../components/VideoGalleryShowcase.java | 23 +++++++++++++++++++ .../components/VideoGalleryShowcase.ui.xml | 20 ++++++++++++++++ 18 files changed, 188 insertions(+), 5 deletions(-) create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.gss create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.java create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.ui.xml create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGalleryResources.java rename java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/{LoadingIndicator.css => LoadingIndicator.gss} (100%) rename java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/{SAPHeader.css => SAPHeader.gss} (96%) create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.gss create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.java create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.ui.xml create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGalleryResources.java create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/ImageGalleryShowcase.java create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/ImageGalleryShowcase.ui.xml create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/VideoGalleryShowcase.java create mode 100644 java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/VideoGalleryShowcase.ui.xml diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.gss b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.gss new file mode 100644 index 00000000000..e46fdf65acd --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.gss @@ -0,0 +1,2 @@ +.sampleCssClass { +} \ No newline at end of file diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.java b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.java new file mode 100644 index 00000000000..3eb8d4bd577 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.java @@ -0,0 +1,19 @@ +package com.sap.sse.gwt.theme.client.component.imagegallery; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.uibinder.client.UiBinder; +import com.google.gwt.user.client.ui.Composite; +import com.google.gwt.user.client.ui.Widget; + +public class ImageGallery extends Composite { + private static ImageGalleryUiBinder uiBinder = GWT.create(ImageGalleryUiBinder.class); + + interface ImageGalleryUiBinder extends UiBinder { + } + + public ImageGallery() { + ImageGalleryResources.INSTANCE.css().ensureInjected(); + + initWidget(uiBinder.createAndBindUi(this)); + } +} diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.ui.xml b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.ui.xml new file mode 100644 index 00000000000..a98b61b8104 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGallery.ui.xml @@ -0,0 +1,9 @@ + + + + + + Image gallery... + + diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGalleryResources.java b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGalleryResources.java new file mode 100644 index 00000000000..b51de3ceda3 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/imagegallery/ImageGalleryResources.java @@ -0,0 +1,16 @@ +package com.sap.sse.gwt.theme.client.component.imagegallery; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.resources.client.ClientBundle; +import com.google.gwt.resources.client.CssResource; + +public interface ImageGalleryResources extends ClientBundle { + public static final ImageGalleryResources INSTANCE = GWT.create(ImageGalleryResources.class); + + @Source("ImageGallery.gss") + LocalCss css(); + + public interface LocalCss extends CssResource { + String sampleCssClass(); + } +} diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicator.css b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicator.gss similarity index 100% rename from java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicator.css rename to java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicator.gss diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicator.ui.xml b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicator.ui.xml index 506bb27b6de..2e51dbe3527 100644 --- a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicator.ui.xml +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicator.ui.xml @@ -2,8 +2,8 @@ - - + + Loading... diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicatorResources.java b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicatorResources.java index 683743fdc7d..4e3672bb46c 100644 --- a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicatorResources.java +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/loadingindicator/LoadingIndicatorResources.java @@ -7,7 +7,7 @@ import com.google.gwt.resources.client.CssResource; public interface LoadingIndicatorResources extends ClientBundle { public static final LoadingIndicatorResources INSTANCE = GWT.create(LoadingIndicatorResources.class); - @Source("LoadingIndicator.css") + @Source("LoadingIndicator.gss") LocalCss css(); public interface LocalCss extends CssResource { diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeader.css b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeader.gss similarity index 96% rename from java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeader.css rename to java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeader.gss index 9de247011bb..e5753a2d9cd 100644 --- a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeader.css +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeader.gss @@ -1,5 +1,4 @@ .siteheader { - font-size: 15px; font-size: 1rem; background: #333; border-bottom: 5px solid #f0ab00; diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeaderResources.java b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeaderResources.java index cea0a1754d1..dbc04cc3d51 100644 --- a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeaderResources.java +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/sapheader/SAPHeaderResources.java @@ -8,7 +8,7 @@ import com.google.gwt.resources.client.ImageResource; public interface SAPHeaderResources extends ClientBundle { public static final SAPHeaderResources INSTANCE = GWT.create(SAPHeaderResources.class); - @Source("SAPHeader.css") + @Source("SAPHeader.gss") LocalCss css(); public interface LocalCss extends CssResource { diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.gss b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.gss new file mode 100644 index 00000000000..e46fdf65acd --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.gss @@ -0,0 +1,2 @@ +.sampleCssClass { +} \ No newline at end of file diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.java b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.java new file mode 100644 index 00000000000..c197472e8a3 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.java @@ -0,0 +1,19 @@ +package com.sap.sse.gwt.theme.client.component.videogallery; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.uibinder.client.UiBinder; +import com.google.gwt.user.client.ui.Composite; +import com.google.gwt.user.client.ui.Widget; + +public class VideoGallery extends Composite { + private static VideoGalleryUiBinder uiBinder = GWT.create(VideoGalleryUiBinder.class); + + interface VideoGalleryUiBinder extends UiBinder { + } + + public VideoGallery() { + VideoGalleryResources.INSTANCE.css().ensureInjected(); + + initWidget(uiBinder.createAndBindUi(this)); + } +} diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.ui.xml b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.ui.xml new file mode 100644 index 00000000000..a98b61b8104 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGallery.ui.xml @@ -0,0 +1,9 @@ + + + + + + Image gallery... + + diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGalleryResources.java b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGalleryResources.java new file mode 100644 index 00000000000..3bc08cc64e2 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/component/videogallery/VideoGalleryResources.java @@ -0,0 +1,16 @@ +package com.sap.sse.gwt.theme.client.component.videogallery; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.resources.client.ClientBundle; +import com.google.gwt.resources.client.CssResource; + +public interface VideoGalleryResources extends ClientBundle { + public static final VideoGalleryResources INSTANCE = GWT.create(VideoGalleryResources.class); + + @Source("VideoGallery.gss") + LocalCss css(); + + public interface LocalCss extends CssResource { + String sampleCssClass(); + } +} diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/MainPage.ui.xml b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/MainPage.ui.xml index bd21ccd17ee..3dedb3af0cd 100644 --- a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/MainPage.ui.xml +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/MainPage.ui.xml @@ -14,6 +14,12 @@ + + + + + + diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/ImageGalleryShowcase.java b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/ImageGalleryShowcase.java new file mode 100644 index 00000000000..aee0647ff08 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/ImageGalleryShowcase.java @@ -0,0 +1,23 @@ +package com.sap.sse.gwt.theme.client.showcase.components; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.uibinder.client.UiBinder; +import com.google.gwt.uibinder.client.UiField; +import com.google.gwt.user.client.ui.Composite; +import com.google.gwt.user.client.ui.Widget; +import com.sap.sse.gwt.theme.client.component.imagegallery.ImageGallery; + +public class ImageGalleryShowcase extends Composite { + + private static ImageGalleryShowcaseUiBinder uiBinder = GWT.create(ImageGalleryShowcaseUiBinder.class); + + interface ImageGalleryShowcaseUiBinder extends UiBinder { + } + + @UiField + ImageGallery imageGallery; + + public ImageGalleryShowcase() { + initWidget(uiBinder.createAndBindUi(this)); + } +} diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/ImageGalleryShowcase.ui.xml b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/ImageGalleryShowcase.ui.xml new file mode 100644 index 00000000000..018e825f9e1 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/ImageGalleryShowcase.ui.xml @@ -0,0 +1,20 @@ + + + + + + + An image gallery. +

Import: xmlns:sap="urn:import:com.sap.sse.gwt.theme.client.component.imagegallery"

+ + + + + + + + + \ No newline at end of file diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/VideoGalleryShowcase.java b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/VideoGalleryShowcase.java new file mode 100644 index 00000000000..41d1ebc4a22 --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/VideoGalleryShowcase.java @@ -0,0 +1,23 @@ +package com.sap.sse.gwt.theme.client.showcase.components; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.uibinder.client.UiBinder; +import com.google.gwt.uibinder.client.UiField; +import com.google.gwt.user.client.ui.Composite; +import com.google.gwt.user.client.ui.Widget; +import com.sap.sse.gwt.theme.client.component.videogallery.VideoGallery; + +public class VideoGalleryShowcase extends Composite { + + private static VideoGalleryShowcaseUiBinder uiBinder = GWT.create(VideoGalleryShowcaseUiBinder.class); + + interface VideoGalleryShowcaseUiBinder extends UiBinder { + } + + @UiField + VideoGallery videoGallery; + + public VideoGalleryShowcase() { + initWidget(uiBinder.createAndBindUi(this)); + } +} diff --git a/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/VideoGalleryShowcase.ui.xml b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/VideoGalleryShowcase.ui.xml new file mode 100644 index 00000000000..cf7212aaced --- /dev/null +++ b/java/com.sap.sse.gwt.theme/src/main/java/com/sap/sse/gwt/theme/client/showcase/components/VideoGalleryShowcase.ui.xml @@ -0,0 +1,20 @@ + + + + + + + A video gallery. +

Import: xmlns:sap="urn:import:com.sap.sse.gwt.theme.client.component.videogallery"

+
+
+ + + + + +
+
\ No newline at end of file From c8be00dc035b1ce2849d37374d76f524c826cf93 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 23 Feb 2015 09:50:24 +0100 Subject: [PATCH 10/16] added theme/WEB-INF/classes/.dummy to force creation on clients, avoiding warnings and build errors due to missing directory --- java/com.sap.sse.gwt.theme/WEB-INF/.gitignore | 1 - java/com.sap.sse.gwt.theme/WEB-INF/classes/.dummy | 0 2 files changed, 1 deletion(-) create mode 100755 java/com.sap.sse.gwt.theme/WEB-INF/classes/.dummy diff --git a/java/com.sap.sse.gwt.theme/WEB-INF/.gitignore b/java/com.sap.sse.gwt.theme/WEB-INF/.gitignore index b30e141e749..8541464a78c 100644 --- a/java/com.sap.sse.gwt.theme/WEB-INF/.gitignore +++ b/java/com.sap.sse.gwt.theme/WEB-INF/.gitignore @@ -1,2 +1 @@ deploy -classes \ No newline at end of file diff --git a/java/com.sap.sse.gwt.theme/WEB-INF/classes/.dummy b/java/com.sap.sse.gwt.theme/WEB-INF/classes/.dummy new file mode 100755 index 00000000000..e69de29bb2d From bcd59b9b2a6065fbbe43dfe2d113160e5c82c960 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 23 Feb 2015 09:52:00 +0100 Subject: [PATCH 11/16] added classes directory to .gitignore again because we don't want to version build products --- java/com.sap.sse.gwt.theme/WEB-INF/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/java/com.sap.sse.gwt.theme/WEB-INF/.gitignore b/java/com.sap.sse.gwt.theme/WEB-INF/.gitignore index 8541464a78c..46b0c4dbcf4 100644 --- a/java/com.sap.sse.gwt.theme/WEB-INF/.gitignore +++ b/java/com.sap.sse.gwt.theme/WEB-INF/.gitignore @@ -1 +1,2 @@ deploy +classes From 67d1fa1a70fa022e12a9855beded0f823be74a3f Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 23 Feb 2015 11:09:19 +0100 Subject: [PATCH 12/16] removed the sap3sse package that was accidentally created in commit 25726e99e6eecabf00932f0c37aba285d8724313 --- .../SSETheme_GWT sdm.launch | 54 ++-- .../com.sap.sse.gwt.theme/SSETheme_GWT.launch | 52 ++-- .../busyindicator/BusyIndicatorResources.java | 10 - .../busyindicator/SimpleBusyIndicator.java | 44 --- .../controls/carousel/ImageCarousel.java | 267 ------------------ 5 files changed, 53 insertions(+), 374 deletions(-) delete mode 100644 java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/BusyIndicatorResources.java delete mode 100644 java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/SimpleBusyIndicator.java delete mode 100644 java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/carousel/ImageCarousel.java diff --git a/java/com.sap.sse.gwt.theme/SSETheme_GWT sdm.launch b/java/com.sap.sse.gwt.theme/SSETheme_GWT sdm.launch index e61889df28b..71c80a9b61b 100644 --- a/java/com.sap.sse.gwt.theme/SSETheme_GWT sdm.launch +++ b/java/com.sap.sse.gwt.theme/SSETheme_GWT sdm.launch @@ -1,27 +1,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/com.sap.sse.gwt.theme/SSETheme_GWT.launch b/java/com.sap.sse.gwt.theme/SSETheme_GWT.launch index 497ba323966..099018ea63b 100644 --- a/java/com.sap.sse.gwt.theme/SSETheme_GWT.launch +++ b/java/com.sap.sse.gwt.theme/SSETheme_GWT.launch @@ -1,26 +1,26 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/BusyIndicatorResources.java b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/BusyIndicatorResources.java deleted file mode 100644 index 1add987b8c5..00000000000 --- a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/BusyIndicatorResources.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.sap.sse.gwt.client.controls.busyindicator; - -import com.google.gwt.resources.client.ClientBundle; -import com.google.gwt.resources.client.ImageResource; - -public interface BusyIndicatorResources extends ClientBundle { - - @Source("busy_indicator_circle.gif") - ImageResource busyIndicatorCircle(); -} diff --git a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/SimpleBusyIndicator.java b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/SimpleBusyIndicator.java deleted file mode 100644 index 5a607e233d6..00000000000 --- a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/busyindicator/SimpleBusyIndicator.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.sap.sse.gwt.client.controls.busyindicator; - -import com.google.gwt.resources.client.ImageResource; -import com.google.gwt.user.client.ui.Image; - -public class SimpleBusyIndicator extends BusyIndicator { - - private Image busyIndicator; - - /** - * Creates a new SimpleBusyIndicator with the busy state false.
- * The busy indicator component is a circling GIF. - */ - public SimpleBusyIndicator() { - this(false, 1.0f); - } - - /** - * Creates a new SimpleBusyIndicator with a custom busy state.
- * The busy indicator component is a circling GIF. - * - * @param busy Sets the busy state of the BusyIndicator - * @param scale Scales the displayed image. 1.0 is 100%, 0.50 is 50%, ... - */ - public SimpleBusyIndicator(boolean busy, float scale) { - this(busy, scale, STYLE_NAME_PREFIX + "Simple", STYLE_NAME_PREFIX + "Circle"); - } - - public SimpleBusyIndicator(boolean busy, float scale, String panelCssClass, String imageCssClass) { - this.setStyleName(panelCssClass); - ImageResource resource = RESOURCES.busyIndicatorCircle(); - busyIndicator = new Image(resource.getSafeUri()); - busyIndicator.setStyleName(imageCssClass); - busyIndicator.setPixelSize((int) (resource.getWidth() * scale), (int) (resource.getHeight() * scale)); - add(busyIndicator); - setBusy(busy); - } - - @Override - public void setBusy(boolean busy) { - super.setBusy(busy); - busyIndicator.setVisible(busy); - } -} diff --git a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/carousel/ImageCarousel.java b/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/carousel/ImageCarousel.java deleted file mode 100644 index a5456c8f101..00000000000 --- a/java/com.sap.sse.gwt/src/com/sap3sse/gwt/client/controls/carousel/ImageCarousel.java +++ /dev/null @@ -1,267 +0,0 @@ -package com.sap.sse.gwt.client.controls.carousel; - -import com.google.gwt.core.client.GWT; -import com.google.gwt.core.client.Scheduler; -import com.google.gwt.dom.client.DivElement; -import com.google.gwt.dom.client.Document; -import com.google.gwt.dom.client.Element; -import com.google.gwt.dom.client.ImageElement; -import com.google.gwt.dom.client.Style.Unit; -import com.google.gwt.safehtml.shared.UriUtils; -import com.google.gwt.uibinder.client.UiBinder; -import com.google.gwt.user.client.Command; -import com.google.gwt.user.client.ui.Widget; - -/** - * Image carousel that uses the open source "slick carousel". - *

- * Documentation/ download of slick js and css from homepate/ github page. - * - * @see Slick homepage. - * @see Slick github page. - * - * - *

- * - * This class uses JSNI to wrap the JS slick carousel. - * - * Usage: - * - * - Create widget - * - * ImageCarousel slider = new ImageCarousel(); - * - * - Add images - * - * slider.addImage("http://demotivators.despair.com/demotivational/foresightdemotivator.jpg"); - * slider.addImage("http://demotivators.despair.com/demotivational/commitmentdemotivator.jpg"); - * slider.addImage("http://demotivators.despair.com/demotivational/platitudesdemotivator.jpg"); - * slider.addImage("http://demotivators.despair.com/demotivational/destinyrockdemotivator.jpg"); - * slider.addImage("http://demotivators.despair.com/demotivational/aspirationdemotivator.jpg"); - * - * - Start the carousel - * - * slider.init(); - * - * The widget depends on css and js resources, as well as jquery 1.7+. - * - * - * Created by pgtaboada on 10.11.14. - */ -public class ImageCarousel extends Widget { - - private static SlickSliderUiBinder ourUiBinder = GWT.create(SlickSliderUiBinder.class); - - /** - * slick slider property: dots - */ - private boolean showDots = true; - /** - * slick slider property: centerMode - */ - private boolean centerMode = true; - /** - * slick slider property: variableWidth - */ - private boolean variableWidth = true; - /** - * slick slider property: infiniteScrolling - */ - private boolean infiniteScrolling = true; - /** - * Image margin (effectively sets spacing between images) - */ - private int contentMarginInPixels = 10; - /** - * Lazy load mechanism to use - */ - private String lazyload = LAZYLOAD.ONDEMAND.getPropertyValue(); - - /** - * The height of the images - */ - private int imagesHeight = 300; - - private final String uniqueId; - - /** - * Widget constructor - */ - public ImageCarousel() { - setElement(ourUiBinder.createAndBindUi(this)); - - uniqueId = "slider_" + Document.get().createUniqueId(); - getElement().addClassName(uniqueId); - init(); - } - - /** - * JSNI wrapper that does setup the slider - * - * @param uniqueId - */ - native void setupSlider(ImageCarousel sliderReference) /*-{ - - $wnd - .$( - '.' - + (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::uniqueId)) - .slick( - { - dots : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::showDots), - infinite : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::infiniteScrolling), - centerMode : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::centerMode), - variableWidth : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::variableWidth), - lazyLoad : (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::lazyload), - swipeToSlide : false, - arrows : true, - responsive : true, - slidesToShow : 2 - - }); - $wnd - .$( - '.' - + (sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::uniqueId) - + '>.slick-list>.slick-track') - .height( - sliderReference.@com.sap.sse.gwt.client.controls.carousel.ImageCarousel::imagesHeight - + 'px'); - }-*/; - - /** - * Add new image to carousel. - * - * @param url - */ - public void addImage(String url, int height, int width) { - - DivElement imageHolder = Document.get().createDivElement(); - ImageElement imageElement = Document.get().createImageElement(); - imageElement.setAttribute("data-lazy", UriUtils.fromString(url).asString()); - - imageHolder.getStyle().setHeight(imagesHeight, Unit.PX); - imageHolder.getStyle().setWidth(Math.round(width * (imagesHeight / (double) height)), Unit.PX); - imageHolder.appendChild(imageElement); - - getElement().appendChild(imageHolder); - - if (getElement().getChildCount() > 20) { - setInfiniteScrolling(false); - setShowDots(false); - } - - } - - /** - * Define spacing between images in carousel. In fact, it is setting the img margins in pixels. - * - * @param contentMarginInPixels - */ - public void setContentMarginInPixels(int contentMarginInPixels) { - this.contentMarginInPixels = contentMarginInPixels; - } - - /** - * Set lazy loading technique. Accepts 'ondemand' or 'progressive'. - * - * @param lazyload - */ - public void setLazyload(LAZYLOAD lazyload) { - this.lazyload = lazyload.getPropertyValue(); - } - - /** - * Enable infinite loop sliding - */ - public void setInfiniteScrolling(boolean infiniteScrolling) { - this.infiniteScrolling = infiniteScrolling; - } - - /** - * Enable variable width slides. - * - * @param variableWidth - */ - public void setVariableWidth(boolean variableWidth) { - this.variableWidth = variableWidth; - } - - /** - * Enables centered view with partial prev/next slides. - * - * @param centerMode - */ - public void setCenterMode(boolean centerMode) { - this.centerMode = centerMode; - } - - /** - * Enable dot indicators - * - * @param showDots - */ - public void setShowDots(boolean showDots) { - this.showDots = showDots; - } - - /** - * UiBinder interface - */ - interface SlickSliderUiBinder extends UiBinder { - } - - /** - * Enum wrapper for lazy load techniques - */ - public enum LAZYLOAD { - - /** - * Loads each image "on demand" - */ - ONDEMAND("ondemand"), - - /** - * Progressively loads one image after another - */ - PROGRESSIVE("progressive"); - - String propertyValue; - - LAZYLOAD(String propertyValue) { - this.propertyValue = propertyValue; - } - - public String getPropertyValue() { - return propertyValue; - } - } - - /** - * Apply slick js to constructed dom tree. - */ - private void init() { - final ImageCarousel reference = this; - - Scheduler.get().scheduleDeferred(new Command() { - - @Override - public void execute() { - try { - setupSlider(reference); - - for (int childIndex = 0; childIndex < getElement().getChildCount(); childIndex++) { - Element child = Element.as(getElement().getChild(childIndex)); - if (child.getClassName() != null && child.getClassName().contains("slick-track")) { - - } - } - - } catch (Exception e) { - GWT.log("Catched Exception on slider init", e); - } - } - }); - } - -} \ No newline at end of file From b8cba71dfe6d483eb1fc6657feb1b57842e1cdb7 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 23 Feb 2015 13:16:44 +0100 Subject: [PATCH 13/16] override runTest() method to ensure AsyncActionsExecutioTest is on the call stack, donating its bundle class loader for resolving the gwt.xml module definition --- .../sse/gwt/test/client/AsyncActionsExecutorTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/java/com.sap.sse.gwt.test/src/com/sap/sse/gwt/test/client/AsyncActionsExecutorTest.java b/java/com.sap.sse.gwt.test/src/com/sap/sse/gwt/test/client/AsyncActionsExecutorTest.java index e8779f89c46..121b468cfe9 100644 --- a/java/com.sap.sse.gwt.test/src/com/sap/sse/gwt/test/client/AsyncActionsExecutorTest.java +++ b/java/com.sap.sse.gwt.test/src/com/sap/sse/gwt/test/client/AsyncActionsExecutorTest.java @@ -55,7 +55,16 @@ public class AsyncActionsExecutorTest extends GWTTestCase { }; private AsyncActionsExecutor executor; - + + /** + * Delegate to super; this has the effect of putting this class on the stack frame before the module loading takes place. + * Therefore, this class's class loader will be consulted for resolving the GWT module definition. + */ + @Override + public void runTest() { + super.run(); + } + @Test public void testThatANonTriggeringActionLeadsToPendingCall() { executor = new AsyncActionsExecutor(/*maxPendingCalls*/6, /*maxPendingCallsPerType*/5, From 16ce440a97870c3f1f9edf8aa70519fae19c818c Mon Sep 17 00:00:00 2001 From: Lennart Hensler Date: Mon, 23 Feb 2015 13:23:33 +0000 Subject: [PATCH 14/16] Added a passage about the new curios error, since the update to GWT 2.7 --- wiki/local-gwt.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wiki/local-gwt.md b/wiki/local-gwt.md index 02e687f4165..0690be0ae51 100644 --- a/wiki/local-gwt.md +++ b/wiki/local-gwt.md @@ -28,4 +28,10 @@ One of the great strengths of GWT is the use of Eclipse as a Java source-level d You can set breakpoints in your GWT Java code and inspect values for suspended threads as usual for any Java development. -Note the reduced performance which is largely due to the way the Java VM and the browser plug-in communicate. In particular, many fine-grained changes to the DOM can be quite costly. Therefore, if you're only interested in server-side debugging, consider [compiling](#Local-GWT-Compile) the GWT code for better performance. \ No newline at end of file +Note the reduced performance which is largely due to the way the Java VM and the browser plug-in communicate. In particular, many fine-grained changes to the DOM can be quite costly. Therefore, if you're only interested in server-side debugging, consider [compiling](#Local-GWT-Compile) the GWT code for better performance. + +## Curious Errors + +There's a randomly occuring error, since the update to GWT 2.7, where an entry point fails to load. The Development Mode view of Eclipse shows the error +**Your source appears not to live underneath a subpackage called 'client'; no problem, but you'll need to use the <source> directive in your module to make it accessible** +The problem can be "solved" by retrying until it works. \ No newline at end of file From 4215ca202dce934c9d2018ddce84c9537335cb8d Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 23 Feb 2015 18:25:11 +0100 Subject: [PATCH 15/16] made all gwt.osgi to gwt.dev dependencies optional --- java/com.google.gwt.osgi/META-INF/MANIFEST.MF | 34 +++++++++---------- .../security/jaxrs/api/SecurityResource.java | 9 ++++- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java/com.google.gwt.osgi/META-INF/MANIFEST.MF b/java/com.google.gwt.osgi/META-INF/MANIFEST.MF index 400e003ca8c..cb85f9ff759 100644 --- a/java/com.google.gwt.osgi/META-INF/MANIFEST.MF +++ b/java/com.google.gwt.osgi/META-INF/MANIFEST.MF @@ -172,22 +172,22 @@ Export-Package: com.google.gwt.activity.shared, com.google.web.bindery.requestfactory.vm.testing, org.hibernate.validator, org.hibernate.validator.engine -Require-Bundle: javax.validation;bundle-version="1.0.0", - org.junit4;bundle-version="4.8.2" -Import-Package: com.gargoylesoftware.htmlunit, - com.google.gwt.core.ext, - com.google.gwt.core.ext.typeinfo, - com.google.gwt.dev, - com.google.gwt.dev.cfg, - com.google.gwt.dev.javac.typemodel, - com.google.gwt.dev.shell, - com.google.gwt.dev.shell.jetty, - com.google.gwt.dev.util.arg, - com.google.gwt.dev.util.collect, - com.google.gwt.junit, - com.google.gwt.thirdparty.guava.common.collect, - com.google.gwt.util.tools, +Require-Bundle: javax.validation;bundle-version="1.0.0";resolution:=optional, + org.junit4;bundle-version="4.8.2";resolution:=optional +Import-Package: com.gargoylesoftware.htmlunit;resolution:=optional, + com.google.gwt.core.ext;resolution:=optional, + com.google.gwt.core.ext.typeinfo;resolution:=optional, + com.google.gwt.dev;resolution:=optional, + com.google.gwt.dev.cfg;resolution:=optional, + com.google.gwt.dev.javac.typemodel;resolution:=optional, + com.google.gwt.dev.shell;resolution:=optional, + com.google.gwt.dev.shell.jetty;resolution:=optional, + com.google.gwt.dev.util.arg;resolution:=optional, + com.google.gwt.dev.util.collect;resolution:=optional, + com.google.gwt.junit;resolution:=optional, + com.google.gwt.thirdparty.guava.common.collect;resolution:=optional, + com.google.gwt.util.tools;resolution:=optional, javax.servlet;version="2.6.0", javax.servlet.http;version="2.6.0", - org.eclipse.jetty.server, - org.eclipse.jetty.webapp + org.eclipse.jetty.server;resolution:=optional, + org.eclipse.jetty.webapp;resolution:=optional diff --git a/java/com.sap.sse.security/src/com/sap/sse/security/jaxrs/api/SecurityResource.java b/java/com.sap.sse.security/src/com/sap/sse/security/jaxrs/api/SecurityResource.java index 3baf3a3c261..d0122e6a051 100644 --- a/java/com.sap.sse.security/src/com/sap/sse/security/jaxrs/api/SecurityResource.java +++ b/java/com.sap.sse.security/src/com/sap/sse/security/jaxrs/api/SecurityResource.java @@ -11,6 +11,7 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; +import org.apache.shiro.SecurityUtils; import org.json.simple.JSONObject; import com.sap.sse.security.User; @@ -29,7 +30,13 @@ public class SecurityResource extends AbstractSecurityResource { @Path("/hello") @Produces("application/json;charset=UTF-8") public Response sayHello() { - return Response.ok("Hello!", MediaType.TEXT_PLAIN).build(); + final String messageText; + if (SecurityUtils.getSubject().isAuthenticated()) { + messageText = "Hello "+SecurityUtils.getSubject().getPrincipal(); + } else { + messageText = "Hello!"; + } + return Response.ok(messageText, MediaType.TEXT_PLAIN).build(); } @POST From 3336007f4eac13a2cb99d288adbe38ad1b5312e5 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 23 Feb 2015 21:04:02 +0100 Subject: [PATCH 16/16] made javax.servlet dependenciees optional in gwt.osgi; added extraRequirement com.google.gwt.dev to target platform for testing --- java/com.google.gwt.osgi/META-INF/MANIFEST.MF | 4 ++-- java/pom.xml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/java/com.google.gwt.osgi/META-INF/MANIFEST.MF b/java/com.google.gwt.osgi/META-INF/MANIFEST.MF index cb85f9ff759..8827322a846 100644 --- a/java/com.google.gwt.osgi/META-INF/MANIFEST.MF +++ b/java/com.google.gwt.osgi/META-INF/MANIFEST.MF @@ -187,7 +187,7 @@ Import-Package: com.gargoylesoftware.htmlunit;resolution:=optional, com.google.gwt.junit;resolution:=optional, com.google.gwt.thirdparty.guava.common.collect;resolution:=optional, com.google.gwt.util.tools;resolution:=optional, - javax.servlet;version="2.6.0", - javax.servlet.http;version="2.6.0", + javax.servlet;version="2.6.0";resolution:=optional, + javax.servlet.http;version="2.6.0";resolution:=optional, org.eclipse.jetty.server;resolution:=optional, org.eclipse.jetty.webapp;resolution:=optional diff --git a/java/pom.xml b/java/pom.xml index 8748125cac6..f027f41b003 100755 --- a/java/pom.xml +++ b/java/pom.xml @@ -261,6 +261,15 @@ ${tycho-version} p2 + + + + eclipse-plugin + com.google.gwt.dev + 0.0.0 + + + ${project.groupId}