Commit Graph

141 Commits

Author SHA1 Message Date
Taras Hupalo
a33772e3f5 Replaced HashMaps with TreeMaps to keep the same order (#14736)
Change-Id: Ia2d8b6a2189e0bb7673f28b3606120d77628afb4
2015-07-14 13:02:47 +00:00
Teppo Kurki
3ecc805eff Fixed CvalChecker invalid version message (#17879)
Change-Id: I2eed6d907be299ebca3e69d7f492aff6f1244fe4
2015-06-05 09:52:33 +00:00
Johannes Dahlström
8da6cbdd02 Allow arbitrary serializable types as Renderer data type (#15410)
Change-Id: If535c5603116be204e11936f9186ce3856b74b03
2015-06-03 13:53:22 +00:00
Artur Signell
8361d1379c Reformat build files
Change-Id: Iab68be3e5d5e59bb05610677642a5715efe50feb
2015-01-15 08:56:10 +02:00
Leif Åstrand
8e17afda2e Rename BackgroundMessage -> NoLoadingIndicator (#15373)
Change-Id: Icc25e5727880baa9dceba3394522b3c5b3a4314f
2015-01-13 20:15:00 +00:00
Leif Åstrand
2e0d4f149a Add @BackgroundMessage annotation (#15373)
Change-Id: Id5367b7b1ef4b7dbabfd58902ac6134222e641ba
2015-01-12 13:00:20 +00:00
Leif Åstrand
7efa1d6ec1 Handle generated method flags in a unified way (#15373)
Refactor existing functionality without functional changes to make it
easier to add support for the @BackgroundMessage annotation added in a
separate commit.

Change-Id: I27454ba44af4b7b3b7beccf29b12e22bf9f75a86
2015-01-12 10:36:59 +00:00
Teemu Suo-Anttila
2286f9871f Merge remote-tracking branch 'origin/master' into grid
Change-Id: Ic6b667ea6ceff43a609ce2037f656c6274871fb7
2015-01-12 11:28:55 +02:00
Leif Åstrand
35d91245de Support JsonValue types as declared types in state and RPC (#15560)
Change-Id: I2779a533811bb1b60c4e74789f6378574bc6ac61
2015-01-12 08:46:08 +00:00
Artur Signell
32a5d8f382 Reformat project using Eclipse Luna SR1
Change-Id: I58748499c87d470e70304d882d3227cda5803481
2014-12-29 14:12:27 +02:00
Leif Åstrand
fe6f23946a Set @since values for Grid classes
Change-Id: Ib0c7d23c2a963e24ecca7769f6b179826be55102
2014-12-18 20:38:59 +00:00
Leif Åstrand
e3d0fbbab6 Merge remote-tracking branch 'origin/master' into grid
Change-Id: Ic7629f9cedb3c948edf4f63c678ca499e3d52805
2014-12-18 18:30:09 +02:00
Leif Åstrand
fd62b6efe8 replace com.google.gwt.json.* usages with elemental.json.* (#8942)
Change-Id: I745b12685be4696fd8f1158005bf731f35ae8a81
2014-12-18 11:45:06 +00:00
Jonatan Kronqvist
272711e6f7 Fix the license checker after elemental.json #15383
The elemental.json update changed how null values and string
representations of numbers were parsed, which caused a lot of
tests for CvalChecker to fail. Unfortunately the tests were
never run in an automated fashion, which means that they were
never discovered until we stumbled upon it due to the issue
reported in #15383

Change-Id: If2cb9fa96effea7ce55a4ffe6d1666ca7521e1fb
2014-12-17 11:28:06 +00:00
Henrik Paul
a50e590b9d Move Grid related renderer to com.vaadin.client.connectors (#13334)
Change-Id: Ia2b74c6d6b99ef9ec5aa0d41956c55ebd8a2615a
2014-12-08 14:52:34 +02:00
Leif Åstrand
a44f7cbfd8 Show better feedback if renderer connector is not parameterized (#13334)
Change-Id: Ica9281e254938443576fcd3c61197a50ceaa2d2e
2014-12-07 18:49:17 +00:00
Leif Åstrand
ec1d9a12ca Add @NoLayout annotation (#12936)
This commit adds support for @NoLayout and updates most framework
components to use the annotation where it makes sense

Change-Id: I99320a6aa6de717da5f2463dd8acfcd412165767
2014-11-25 08:12:08 +00:00
Teemu Suo-Anttila
d1cd6ffce4 Merge remote-tracking branch 'origin/master' into grid
Change-Id: Iec61d9242be530edbb76ba952746ba0f9c9bd966
2014-11-14 11:27:32 +02:00
Artur Signell
5a8f373e53 Update GWT to 2.7.0.beta1vaadin1.
Update client-compiler-deps to 1.2.0.
Fix classpaths for devmodes.

Change-Id: I8452271594b4563bf476420ff7ab22985913e397
2014-10-31 07:34:00 +00:00
Leif Åstrand
9542a79187 Merge remote-tracking branch 'origin/master' into grid
Change-Id: I8a35a090619778b1cfbff55e112ab2f30e6881a2
2014-09-20 10:15:37 +03:00
Manolo Carrasco
3a9aa4c277 URI to cval file was wrong in Windows (#14629)
Change-Id: Ifdcf8bcaf6f613660b185501be92eec0b43700b5
2014-09-12 12:17:14 +00:00
Teemu Suo-Anttila
927e424acc Merge remote-tracking branch 'origin/master' into grid
This merge needs Grid to use elemental.json instead of org.json

Change-Id: Ib3c387c7e282b2502f266bafbdaad8727f5dc6ef
2014-09-03 15:33:01 +03:00
Taras Hupalo
f2551a9fc0 replaced all org.json.* usages with elemental.json.* (#8942)
Change-Id: I4809fbbdb48f3e36c8e1da8552ff3fa734714105
2014-08-26 09:51:15 +00:00
Teemu Suo-Anttila
c1a873bc9e Merge remote-tracking branch 'origin/master' into grid
Change-Id: Iac6947bc82bfbbb6856a924e7d538d195cfb405e
2014-08-19 09:42:27 +03:00
Jonatan Kronqvist
fba69ae5d8 Allow for multiple license keys in a single license file #14408
License files can now contain multiple keys to support different
versions of a product. The keys are identified by the major version
number followed by an equals sign and the key for that version, e.g.

  1 = foo-bar-baz
  2 = baz-foo-bar

The license file can also contain a "default" license key, which
is used for all versions except for the explicitly defined ones, e.g.

  foo-bar-baz
  3 = baz-bar-foo
  4 = bar-baz-baz

Change-Id: Id07d22e9fdc44189c4298b634006cf0df128bfd9
2014-08-13 13:37:42 +00:00
John Ahlroos
ecff9648d1 Merge remote-tracking branch 'origin/master' into grid
Conflicts:
	WebContent/release-notes.html

Change-Id: Ie05bea7142134a7a9d655fcdf6ca232fd13c742b
2014-08-07 16:35:06 +03:00
Mikael Grankvist
75f42d3222 DelegateToWidget will now be run even for parent states for extending
states (#14059)

Updated the code to encompass Leif's suggestion.

Change-Id: I70c0a4a93b9fe9ee8b2c458d666a1fec791f20b4
2014-08-07 06:32:16 +00:00
Leif Åstrand
86e1c71857 Merge branch 'master' into grid
Change-Id: I6878b3c64eb5c98174537f4e5864e2ff2cb1863f
2014-07-22 12:59:32 +03:00
Johannes Dahlström
59cdaeddf3 Generate type data for AbstractRendererConnector.decode (#13334)
The presentation type parameter is stored so that decode works
without implementers having to implement a getType method.

Change-Id: Ia2b9f977f2bf6ed006379cda5eeb61674dd92ee0
2014-07-17 06:31:06 +00:00
Johannes Dahlström
5c93158858 Generate type data for AbstractRendererConnector.createRenderer (#13334)
The declared return type of the most-derived getRenderer method is stored
to make the default createRenderer implementation work. This is identical
to the way AbstractComponentConnector getWidget and createWidget work.

Change-Id: I879e9e6739e366bd81773a1e65195336e0cdac6d
2014-07-10 16:05:59 +00:00
Leif Åstrand
c5df7f5bf6 Box and unbox long values in state fields (#14176)
We actually want to pass around the primitive long values emulated by
GWT even though JavaScript code can't do anything with the values.
Skipping the unboxing caused long fields to always be 0 since that's how
JavaScript converts an object into a number.

This patch also makes the test assert that the expected state values are
received and updates those values to actually make sense in some
situations.

Change-Id: Id9c3696d699593bd9e59e249c5daf077873b85fc
2014-07-09 08:28:11 +00:00
Henri Sara
ff8efe1b94 Add missing @since 7.3 to javadoc
Change-Id: I62610ef647fbbb5a7cfae25ac5c7628f78f2c6ff
2014-07-03 06:50:15 +00:00
Manolo Carrasco
9a84fb14f2 License Checker for vaadin cval products (#13696 #13474)
- This patch includes four elements:
  1.- A class able to validate a licensed product against Vaadin
      license server. It can be used in any vaadin product (thought
      for non addons like TB) just adding vaadin dependency, or
      copying the class.
  2.- A class able to inspect all addons in the classpath and figure
      out, based on the MANIFEST.MF info, whether we have to check
      developer license.
  3.- A modification to Vaadin connector generator to use the classes
      above and to stop compilation in case.
  4.- A modification to ConnectorBundleLoader, so as when a new connector
      is instatiated, we check whether it is using an evaluation
      license and show a notice. We only show the notice once.

- In addition to validating developer licenses, the checker caches the
  server response for using it when there are connection problems.
- This stuff is in Vaadin core, so as we dont maintain license code in
  each addon. For checking an addon license we just add the license type
  to the manifest when packaging the artefact.
- It checks expiration time, product name and major version.

Fixes: #13696
In some-way related with: #13474

Change-Id: Ib61b1c2e9c3cacd463a1ce5db02c2cfbc06851c2
2014-06-26 08:30:46 +00:00
Leif Åstrand
94a051b542 Don't generate GWT.create for bean superclasses (#13813)
Change-Id: I20e03a79562d6bc71ae1454cbbe2d6903649c771
2014-06-05 12:34:00 +00:00
Artur Signell
c5122e3713 Use more appropriate dependencies for Jetty (#13682)
Change-Id: Ic977ae403068e41a64eabc42cd00c4a933d02a95
2014-05-13 18:33:16 +03:00
Jonatan Kronqvist
82033e827f Support long in state again (#13692)
The fix to #9379 broke the support for long type fields in state classes. This
patch bypasses the unboxing of long values and adds the @UnsafeNativeLong annotation
to the methods which may fetch and return (without modifying) long values.

SerializerTest is extended to test the different data types in States.

Change-Id: I29fd2c6af13cd9a0d29ecb1444ed9eb8a2b013e3
2014-05-12 12:05:18 +00:00
Artur Signell
20f5633040 Make SuperDevMode work again (#13682)
VNotification now works without ApplicationConnection again.
Dependencies needed by codeserver are now dependencies for client-compiler
Error message now takes into account that devModeRedirect is enabled by default

Change-Id: I079d162d9975f99fe7b91e14ad100459c80a5587
2014-05-12 05:15:58 +00:00
Jonatan Kronqvist
0745a29a95 Merge changes from origin/7.2 into master
Conflicts:
	build.properties
	client/src/com/vaadin/client/ApplicationConnection.java
	client/src/com/vaadin/client/extensions/ResponsiveConnector.java
	server/src/com/vaadin/server/Responsive.java

Change-Id: I49f90521611d1b86704a60c3d003cdeea9c3b864
2014-05-05 11:43:28 +03:00
Denis Anisimov
8e632ae093 Report an error if RPC interface is parameterized (#10392).
Change-Id: I887c14b1df282c56a1e839eae5a4534501fa3911
2014-04-24 12:21:38 +00:00
Artur Signell
2c8c29e68b Update remaining copyright years to 2014
Change-Id: I1fc2bd735b538ebac6d4f41fc8536f26795cc85f
2014-04-23 21:04:14 +03:00
Artur Signell
e2db3e777a Merge changes from origin/7.1
e77e73c Update copyright year to 2014

Conflicts:
	client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java
	client/src/com/vaadin/client/ApplicationConnection.java
	server/src/com/vaadin/data/util/converter/StringToNumberConverter.java
	shared/src/com/vaadin/shared/ui/ui/PageState.java
	shared/src/com/vaadin/shared/ui/window/WindowState.java
	theme-compiler/src/com/vaadin/sass/SassCompiler.java
	theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java
	theme-compiler/src/com/vaadin/sass/internal/expression/ArithmeticExpressionEvaluator.java
	theme-compiler/src/com/vaadin/sass/internal/expression/BinaryExpression.java
	theme-compiler/src/com/vaadin/sass/internal/expression/BinaryOperator.java
	theme-compiler/src/com/vaadin/sass/internal/expression/exception/ArithmeticException.java
	theme-compiler/src/com/vaadin/sass/internal/expression/exception/IncompatibleUnitsException.java
	theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandler.java
	theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandlerImpl.java
	theme-compiler/src/com/vaadin/sass/internal/handler/SCSSErrorHandler.java
	theme-compiler/src/com/vaadin/sass/internal/parser/CharStream.java
	theme-compiler/src/com/vaadin/sass/internal/parser/Generic_CharStream.java
	theme-compiler/src/com/vaadin/sass/internal/parser/LexicalUnitImpl.java
	theme-compiler/src/com/vaadin/sass/internal/parser/LocatorImpl.java
	theme-compiler/src/com/vaadin/sass/internal/parser/MediaListImpl.java
	theme-compiler/src/com/vaadin/sass/internal/parser/ParseException.java
	theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java
	theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java
	theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java
	theme-compiler/src/com/vaadin/sass/internal/parser/SCSSLexicalUnit.java
	theme-compiler/src/com/vaadin/sass/internal/parser/SCSSParseException.java
	theme-compiler/src/com/vaadin/sass/internal/parser/SelectorListImpl.java
	theme-compiler/src/com/vaadin/sass/internal/parser/Selectors.java
	theme-compiler/src/com/vaadin/sass/internal/parser/ThrowedParseException.java
	theme-compiler/src/com/vaadin/sass/internal/parser/Token.java
	theme-compiler/src/com/vaadin/sass/internal/parser/TokenMgrError.java
	theme-compiler/src/com/vaadin/sass/internal/resolver/ClassloaderResolver.java
	theme-compiler/src/com/vaadin/sass/internal/resolver/FilesystemResolver.java
	theme-compiler/src/com/vaadin/sass/internal/resolver/ScssStylesheetResolver.java
	theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java
	theme-compiler/src/com/vaadin/sass/internal/selector/SelectorUtil.java
	theme-compiler/src/com/vaadin/sass/internal/tree/BlockNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/ExtendNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/ForNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/FunctionNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/ImportNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/KeyframesNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/ListContainsNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/ListModifyNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/ListRemoveNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/MediaNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/MicrosoftRuleNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/MixinDefNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/MixinNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/NestPropertiesNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/Node.java
	theme-compiler/src/com/vaadin/sass/internal/tree/RuleNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/SimpleNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/VariableNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/controldirective/EachDefNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/controldirective/IfElseDefNode.java
	theme-compiler/src/com/vaadin/sass/internal/tree/controldirective/IfNode.java
	theme-compiler/src/com/vaadin/sass/internal/util/ColorUtil.java
	theme-compiler/src/com/vaadin/sass/internal/util/DeepCopy.java
	theme-compiler/src/com/vaadin/sass/internal/util/FastByteArrayInputStream.java
	theme-compiler/src/com/vaadin/sass/internal/util/FastByteArrayOutputStream.java
	theme-compiler/src/com/vaadin/sass/internal/util/StringUtil.java
	theme-compiler/src/com/vaadin/sass/internal/visitor/BlockNodeHandler.java
	theme-compiler/src/com/vaadin/sass/internal/visitor/EachNodeHandler.java
	theme-compiler/src/com/vaadin/sass/internal/visitor/ExtendNodeHandler.java
	theme-compiler/src/com/vaadin/sass/internal/visitor/IfElseNodeHandler.java
	theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java
	theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java
	theme-compiler/src/com/vaadin/sass/internal/visitor/NestedNodeHandler.java
	theme-compiler/src/com/vaadin/sass/internal/visitor/VariableNodeHandler.java
	theme-compiler/tests/src/com/vaadin/sass/AbstractTestBase.java
	theme-compiler/tests/src/com/vaadin/sass/internal/expression/ArithmeticExpressionEvaluatorTest.java
	theme-compiler/tests/src/com/vaadin/sass/parser/ParserTest.java
	theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/css/Interpolation.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/css/Selectors.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AutomaticSassTests.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Comments.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/ControlDirectives.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Extends.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Functions.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Imports.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Mixins.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/NestedProperties.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Nesting.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/ParentImports.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/ParentSelector.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/SassLangTests.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/SassLangTestsBroken.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/SassTestRunner.java
	theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Variables.java
	theme-compiler/tests/src/com/vaadin/sass/tree/ImportNodeTest.java
	uitest/src/com/vaadin/tests/push/BasicPushTest.java
	uitest/src/com/vaadin/tests/push/PushConfigurationTest.java
	uitest/src/com/vaadin/tests/push/PushReconnectTest.java

Change-Id: Ic08c4f9aecd4c684ce74408de4e0b0d0ff617273
2014-04-23 20:52:07 +03:00
Artur Signell
e77e73cf64 Update copyright year to 2014
Change-Id: Ic77338304dc7e58e49f27dcdaf0bab2e00f5bba6
2014-04-16 11:17:52 +00:00
Jonatan Kronqvist
3efe81da8b Override the cssparser dependency from sass-compiler (#13532)
vaadin-sass-compiler depends on an older version of cssparser than the
one used in client-compiler. This change overrides all sass-compiler
provided cssparser deps with the newer version.

Change-Id: I06d2b957d66dd3abbef161ae2643eec0cdf7e13a
2014-04-03 13:26:01 +03:00
Jonatan Kronqvist
563b0ca0d8 Update commons-io to the same version in all modules (#13531)
Adds a commons-io.version property to the build.properties file

Change-Id: I57a72f8841846d77ba73d567bd9bc3c8415b243c
2014-04-03 10:28:02 +03:00
Leif Åstrand
7bfb2347ad Implement @OnStateChange (#12958)
Change-Id: I8ea2b781fab42458bf55a751c1229e391365e965
2014-04-01 08:15:56 +00:00
Leif Åstrand
a636bb70c2 Make Invoker support non-public methods (#12959)
Change-Id: Ie449489f3c9222bbe4a4221841c4ebc20693f969
2014-04-01 08:15:56 +00:00
Jonatan Kronqvist
353a1a1c30 Remove theme-compiler and replace with external vaadin-sass-compiler
* Moves CompileTheme from the theme-compiler to buildhelpers
* Refactors CompileTheme to get the Vaadin version on the command line
  instead of using the Version class found in vaadin-shared
* Refactors build scripts to pass the version number on the command line
  when running CompileTheme
* Removes the theme-compiler module/project/whatchamacallit
* Replaces the theme-compiler dependency with vaadin-sass-compiler 0.9.0
  from maven

Change-Id: I4f98d15b60e18a826bf264eb55d12b3e736e8e54
2014-03-31 13:37:27 +00:00
denisanisimov
18b66b9fe7 Avoid using toString method to access to SCSS serialized state (#9530).
Change-Id: I387ae1bbc960acd5a5a588b38c6791a9c9a90690
2014-03-13 12:00:54 +00:00
denisanisimov
5592f056be Reduce generated ConnectorBundleLoaderImpl size. (#9379)
Change-Id: I49411e6893f3adc1c41cc690aca35cd919769625
2014-02-12 07:32:02 +00:00
Jonatan Kronqvist
0e8500a5af Merge changes from origin/7.1
8245079 Decrease the websocket buffer size due to a Jetty 9.1 issue (#13087)
ea8f381 Show the widgetset name to more easily spot misconfigurations
797ebdf Allow user to override Atmosphere init params set by Vaadin (#13088)
65c2f2b Properly remove shadow event listeners to prevent IE8 memory leak (#13129)
e9a547a Fixed spelling mistake in log message.
0b95f8d Moved selection of selected rows in TableConnector to occur after the new rows are created (#13008)
0579fba Upload control with empty selection (#9602)
db4dba4 Ensure event listener is a widget before casting #13130
5e8e866 Changes padding for Textfields with Chameleon theme. (#12974)
171e68d Only use ClientRcp and ServerRpc types that are interfaces (#13056)
e41a2ce Add helper for adding multiple components to AbstractTestUI
407bdb3 Ignores scroll events while update from server is in progress (#11454)

Change-Id: I5d21b4071165b02da0f53bd055fb1c64e90cae5b
2014-02-07 15:46:30 +02:00