summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-05 19:35:55 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-05 19:35:55 +0300
commitd344148d038498aeb8ef04511d0a44d95ebff32b (patch)
tree1ab0e8fef98bdfe48fa4b7055d8434a16d424fa4 /uitest
parent4a69dcbca783a0fd0ed353a7a218c31d8d814c34 (diff)
parent4019f7d03a1d8437a24ccadc562c30f99da5efe0 (diff)
downloadvaadin-framework-d344148d038498aeb8ef04511d0a44d95ebff32b.tar.gz
vaadin-framework-d344148d038498aeb8ef04511d0a44d95ebff32b.zip
Merge branch 'removeApplication'
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java35
-rw-r--r--uitest/src/com/vaadin/tests/Components.java2
-rw-r--r--uitest/src/com/vaadin/tests/CustomLayoutDemo.java3
-rw-r--r--uitest/src/com/vaadin/tests/LayoutDemo.java3
-rw-r--r--uitest/src/com/vaadin/tests/ListenerOrder.java3
-rw-r--r--uitest/src/com/vaadin/tests/ModalWindow.java5
-rw-r--r--uitest/src/com/vaadin/tests/NativeWindowing.java2
-rw-r--r--uitest/src/com/vaadin/tests/Parameters.java9
-rw-r--r--uitest/src/com/vaadin/tests/RandomLayoutStress.java3
-rw-r--r--uitest/src/com/vaadin/tests/ScrollbarStressTest.java2
-rw-r--r--uitest/src/com/vaadin/tests/StressComponentsInTable.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestBench.java10
-rw-r--r--uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestForNativeWindowing.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestForStyledUpload.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestForUpload.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java3
-rw-r--r--uitest/src/com/vaadin/tests/TestSizeableIncomponents.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestSplitPanel.java3
-rw-r--r--uitest/src/com/vaadin/tests/TreeFilesystem.java9
-rw-r--r--uitest/src/com/vaadin/tests/TreeFilesystemContainer.java9
-rw-r--r--uitest/src/com/vaadin/tests/UsingObjectsInSelect.java3
-rw-r--r--uitest/src/com/vaadin/tests/VerifyBrowserVersion.java4
-rw-r--r--uitest/src/com/vaadin/tests/appengine/GAESyncTest.java2
-rw-r--r--uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java9
-rw-r--r--uitest/src/com/vaadin/tests/application/RefreshStatePreserve.html7
-rw-r--r--uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java31
-rw-r--r--uitest/src/com/vaadin/tests/application/ThreadLocalInstances.html20
-rw-r--r--uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java36
-rw-r--r--uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java6
-rw-r--r--uitest/src/com/vaadin/tests/applicationcontext/RemoveTransactionListener.java84
-rw-r--r--uitest/src/com/vaadin/tests/components/AbstractTestCase.java7
-rw-r--r--uitest/src/com/vaadin/tests/components/AbstractTestUI.java6
-rw-r--r--uitest/src/com/vaadin/tests/components/AbstractTestUIProvider.java (renamed from uitest/src/com/vaadin/tests/components/AbstractTestApplication.java)9
-rw-r--r--uitest/src/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java3
-rw-r--r--uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java11
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TableFirstRowFlicker.java8
-rw-r--r--uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java3
-rw-r--r--uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java37
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java38
-rw-r--r--uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java31
-rw-r--r--uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java2
-rw-r--r--uitest/src/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java2
-rw-r--r--uitest/src/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java2
-rw-r--r--uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java2
-rw-r--r--uitest/src/com/vaadin/tests/integration/JSR286PortletApplication.java12
-rw-r--r--uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java2
-rw-r--r--uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java4
-rw-r--r--uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java2
-rw-r--r--uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java2
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java2
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java50
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java8
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/resources/NonExistingFileResource.java8
-rw-r--r--uitest/src/com/vaadin/tests/themes/ButtonsTest.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1225.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1230.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket124.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1245.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1365.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1368.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1397.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1435.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1444.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1519.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1572.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1581.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1589.java7
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1598.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket161.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1632.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1659.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1663.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1673.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1710.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1737.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1767.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1772.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1775.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1804.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1805.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1806.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1811.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1819.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1857.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1868.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1869.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1878.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1900.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1904.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1916.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1919.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1921.java7
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1923.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1925.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1939.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1940.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1953.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1966.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1966_2.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1969.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1970.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1972.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1973.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1975.java12
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1982.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1983.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1986.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1991.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1995.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket20.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2001.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2002.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2007.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2009.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2011.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2014.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2021.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2022.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2023.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2024.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2026.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2029.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2037.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2038.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2040.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2042.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2043.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2048.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2051.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2053.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2060.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2061.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2061b.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2061c.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2062.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2083.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2090.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2095.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2098.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2099.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2101.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2103.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2104.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2106.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2107.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2117.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2119.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2125.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2126.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2151.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2157.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2178.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2179.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2180.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2181.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2186.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2204.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2208.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2209.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2209OL.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2209OL2.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2215.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2221.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2222.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2231.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2232.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2234.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2235.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2240.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2242.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2244.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2245.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2267.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2271.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2282.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2283.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2289.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2292.java7
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2294.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2296.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2303.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2304.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2310.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2319.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2323.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2325.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2329.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2337.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2339.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2341.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2344.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2347.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2364.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2365.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2398.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2404.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2405.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2406.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2407.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2411.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2415.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2420.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2425.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2426.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2431.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2432.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2434.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2436.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2526.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2742.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2901.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2998.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket3146.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket34.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket5053.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket5157.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket5952.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket677.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket695.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket736.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket846.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket932.java2
-rw-r--r--uitest/src/com/vaadin/tests/util/SampleDirectory.java17
233 files changed, 461 insertions, 536 deletions
diff --git a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
index 11685033a9..1e963a8cc8 100644
--- a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
+++ b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
@@ -21,7 +21,6 @@ import java.net.MalformedURLException;
import java.net.URL;
import java.util.Collections;
import java.util.LinkedHashSet;
-import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -32,14 +31,18 @@ import javax.servlet.http.HttpServletResponse;
import com.vaadin.Application;
import com.vaadin.server.AbstractUIProvider;
-import com.vaadin.server.VaadinServlet;
+import com.vaadin.server.ApplicationConfiguration;
+import com.vaadin.server.LegacyVaadinServlet;
+import com.vaadin.server.VaadinServletSession;
+import com.vaadin.server.UIProvider;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedHttpServletRequest;
import com.vaadin.server.WrappedRequest;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.UI;
@SuppressWarnings("serial")
-public class ApplicationRunnerServlet extends VaadinServlet {
+public class ApplicationRunnerServlet extends LegacyVaadinServlet {
/**
* The name of the application class currently used. Only valid within one
@@ -104,25 +107,34 @@ public class ApplicationRunnerServlet extends VaadinServlet {
}
@Override
- protected Application getNewApplication(HttpServletRequest request)
- throws ServletException {
+ protected Class<? extends Application> getApplicationClass()
+ throws ClassNotFoundException {
+ return getClassToRun().asSubclass(Application.class);
+ }
- // Creates a new application instance
+ @Override
+ protected VaadinServletSession createApplication(
+ HttpServletRequest request) throws ServletException {
try {
final Class<?> classToRun = getClassToRun();
if (UI.class.isAssignableFrom(classToRun)) {
- Application application = new Application();
+ VaadinServletSession application = new VaadinServletSession();
application.addUIProvider(new AbstractUIProvider() {
@Override
public Class<? extends UI> getUIClass(
- Application application, WrappedRequest request) {
+ VaadinSession application, WrappedRequest request) {
return (Class<? extends UI>) classToRun;
}
});
return application;
} else if (Application.class.isAssignableFrom(classToRun)) {
- return (Application) classToRun.newInstance();
+ return super.createApplication(request);
+ } else if (UIProvider.class.isAssignableFrom(classToRun)) {
+ VaadinServletSession application = new VaadinServletSession();
+ application
+ .addUIProvider((UIProvider) classToRun.newInstance());
+ return application;
} else {
throw new ServletException(classToRun.getCanonicalName()
+ " is neither an Application nor a UI");
@@ -259,8 +271,9 @@ public class ApplicationRunnerServlet extends VaadinServlet {
@Override
protected ServletDeploymentConfiguration createDeploymentConfiguration(
- Properties applicationProperties) {
- return new ServletDeploymentConfiguration(this, applicationProperties) {
+ ApplicationConfiguration applicationConfiguration) {
+ return new ServletDeploymentConfiguration(this,
+ applicationConfiguration) {
@Override
public String getStaticFileLocation(WrappedRequest request) {
URIS uris = getApplicationRunnerURIs(WrappedHttpServletRequest
diff --git a/uitest/src/com/vaadin/tests/Components.java b/uitest/src/com/vaadin/tests/Components.java
index 7ac1b55d35..5d1cb6a5dc 100644
--- a/uitest/src/com/vaadin/tests/Components.java
+++ b/uitest/src/com/vaadin/tests/Components.java
@@ -30,7 +30,7 @@ import com.vaadin.ui.Tree.ItemStyleGenerator;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Components extends Application.LegacyApplication {
+public class Components extends Application {
private static final Object CAPTION = "c";
private Map<Class<? extends AbstractComponentTest>, String> tests = new HashMap<Class<? extends AbstractComponentTest>, String>();
diff --git a/uitest/src/com/vaadin/tests/CustomLayoutDemo.java b/uitest/src/com/vaadin/tests/CustomLayoutDemo.java
index 833340f678..af80ac0a88 100644
--- a/uitest/src/com/vaadin/tests/CustomLayoutDemo.java
+++ b/uitest/src/com/vaadin/tests/CustomLayoutDemo.java
@@ -16,6 +16,7 @@
package com.vaadin.tests;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -43,7 +44,7 @@ import com.vaadin.ui.Tree;
* @since 4.0.0
*
*/
-public class CustomLayoutDemo extends com.vaadin.Application.LegacyApplication
+public class CustomLayoutDemo extends com.vaadin.Application
implements Listener {
private CustomLayout mainLayout = null;
diff --git a/uitest/src/com/vaadin/tests/LayoutDemo.java b/uitest/src/com/vaadin/tests/LayoutDemo.java
index a5331b94af..e4d6683e2a 100644
--- a/uitest/src/com/vaadin/tests/LayoutDemo.java
+++ b/uitest/src/com/vaadin/tests/LayoutDemo.java
@@ -16,6 +16,7 @@
package com.vaadin.tests;
+import com.vaadin.Application;
import com.vaadin.server.ClassResource;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Component;
@@ -37,7 +38,7 @@ import com.vaadin.ui.VerticalLayout;
* @since 4.0.0
*
*/
-public class LayoutDemo extends com.vaadin.Application.LegacyApplication {
+public class LayoutDemo extends com.vaadin.Application {
/**
* Initialize Application. Demo components are added to main window.
diff --git a/uitest/src/com/vaadin/tests/ListenerOrder.java b/uitest/src/com/vaadin/tests/ListenerOrder.java
index ab364a8781..dafa142e1d 100644
--- a/uitest/src/com/vaadin/tests/ListenerOrder.java
+++ b/uitest/src/com/vaadin/tests/ListenerOrder.java
@@ -3,6 +3,7 @@ package com.vaadin.tests;
import java.util.HashMap;
import java.util.Iterator;
+import com.vaadin.Application;
import com.vaadin.data.Container.ItemSetChangeEvent;
import com.vaadin.data.Container.ItemSetChangeListener;
import com.vaadin.data.Container.PropertySetChangeEvent;
@@ -16,7 +17,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
-public class ListenerOrder extends com.vaadin.Application.LegacyApplication
+public class ListenerOrder extends com.vaadin.Application
implements Button.ClickListener, PropertySetChangeListener,
ItemSetChangeListener, ValueChangeListener {
diff --git a/uitest/src/com/vaadin/tests/ModalWindow.java b/uitest/src/com/vaadin/tests/ModalWindow.java
index 6153f14285..04d6c1eb1d 100644
--- a/uitest/src/com/vaadin/tests/ModalWindow.java
+++ b/uitest/src/com/vaadin/tests/ModalWindow.java
@@ -16,6 +16,7 @@
package com.vaadin.tests;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@@ -30,11 +31,11 @@ import com.vaadin.ui.Window;
*
* @author Vaadin Ltd.
* @since 4.0.1
- * @see com.vaadin.Application
+ * @see com.vaadin.server.VaadinSession
* @see com.vaadin.ui.Window
* @see com.vaadin.ui.Label
*/
-public class ModalWindow extends com.vaadin.Application.LegacyApplication
+public class ModalWindow extends com.vaadin.Application
implements ClickListener {
private Window test;
diff --git a/uitest/src/com/vaadin/tests/NativeWindowing.java b/uitest/src/com/vaadin/tests/NativeWindowing.java
index 2418c74db8..b364d506ce 100644
--- a/uitest/src/com/vaadin/tests/NativeWindowing.java
+++ b/uitest/src/com/vaadin/tests/NativeWindowing.java
@@ -27,7 +27,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class NativeWindowing extends Application.LegacyApplication {
+public class NativeWindowing extends Application {
LegacyWindow main = new LegacyWindow("Windowing test");
diff --git a/uitest/src/com/vaadin/tests/Parameters.java b/uitest/src/com/vaadin/tests/Parameters.java
index b16d4ef65b..206a2e77ab 100644
--- a/uitest/src/com/vaadin/tests/Parameters.java
+++ b/uitest/src/com/vaadin/tests/Parameters.java
@@ -24,14 +24,15 @@ import java.util.Map;
import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
import com.vaadin.server.WrappedResponse;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout.MarginHandler;
import com.vaadin.ui.Link;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
/**
@@ -41,7 +42,7 @@ import com.vaadin.ui.VerticalLayout;
*
* @since 3.1.1
*/
-public class Parameters extends com.vaadin.Application.LegacyApplication
+public class Parameters extends com.vaadin.Application
implements RequestHandler {
private final Label context = new Label();
@@ -56,7 +57,7 @@ public class Parameters extends com.vaadin.Application.LegacyApplication
setMainWindow(main);
// This class acts both as URI handler and parameter handler
- addRequestHandler(this);
+ VaadinSession.getCurrent().addRequestHandler(this);
final VerticalLayout layout = new VerticalLayout();
final Label info = new Label("To test URI and Parameter Handlers, "
@@ -106,7 +107,7 @@ public class Parameters extends com.vaadin.Application.LegacyApplication
}
@Override
- public boolean handleRequest(Application application,
+ public boolean handleRequest(VaadinSession application,
WrappedRequest request, WrappedResponse response)
throws IOException {
context.setValue("Context not available");
diff --git a/uitest/src/com/vaadin/tests/RandomLayoutStress.java b/uitest/src/com/vaadin/tests/RandomLayoutStress.java
index 0b6b0cf8ba..60db80eb6a 100644
--- a/uitest/src/com/vaadin/tests/RandomLayoutStress.java
+++ b/uitest/src/com/vaadin/tests/RandomLayoutStress.java
@@ -18,6 +18,7 @@ package com.vaadin.tests;
import java.util.Random;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Button;
@@ -43,7 +44,7 @@ import com.vaadin.ui.VerticalLayout;
*
*/
public class RandomLayoutStress extends
- com.vaadin.Application.LegacyApplication {
+ com.vaadin.Application {
private final Random seededRandom = new Random(1);
diff --git a/uitest/src/com/vaadin/tests/ScrollbarStressTest.java b/uitest/src/com/vaadin/tests/ScrollbarStressTest.java
index 7436bfc539..bce62a65b0 100644
--- a/uitest/src/com/vaadin/tests/ScrollbarStressTest.java
+++ b/uitest/src/com/vaadin/tests/ScrollbarStressTest.java
@@ -17,7 +17,7 @@ import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
import com.vaadin.ui.Window;
-public class ScrollbarStressTest extends Application.LegacyApplication {
+public class ScrollbarStressTest extends Application {
final LegacyWindow main = new LegacyWindow("Scrollbar Stress Test");
diff --git a/uitest/src/com/vaadin/tests/StressComponentsInTable.java b/uitest/src/com/vaadin/tests/StressComponentsInTable.java
index 7c4cca2b0b..fa0b98b1b1 100644
--- a/uitest/src/com/vaadin/tests/StressComponentsInTable.java
+++ b/uitest/src/com/vaadin/tests/StressComponentsInTable.java
@@ -54,7 +54,7 @@ public class StressComponentsInTable extends CustomComponent {
Button b = event.getButton();
System.out.println(b.getCaption() + " click: "
+ (new Date()).toString());
- System.out.println(b.getApplication());
+ System.out.println(b.getUI().getSession());
}
}));
diff --git a/uitest/src/com/vaadin/tests/TestBench.java b/uitest/src/com/vaadin/tests/TestBench.java
index 67e1180d75..41d7d207cb 100644
--- a/uitest/src/com/vaadin/tests/TestBench.java
+++ b/uitest/src/com/vaadin/tests/TestBench.java
@@ -37,8 +37,8 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.Link;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
/**
@@ -51,7 +51,7 @@ import com.vaadin.ui.VerticalLayout;
* @author Vaadin Ltd.
*
*/
-public class TestBench extends com.vaadin.Application.LegacyApplication
+public class TestBench extends com.vaadin.Application
implements Property.ValueChangeListener {
// Add here packages which are used for finding testable classes
@@ -223,9 +223,9 @@ public class TestBench extends com.vaadin.Application.LegacyApplication
private Component createTestable(Class<?> c) {
try {
- final Application.LegacyApplication app = (Application.LegacyApplication) c
+ final Application app = (Application) c
.newInstance();
- app.init();
+ app.doInit();
Layout lo = (Layout) app.getMainWindow().getContent();
lo.setParent(null);
return lo;
@@ -312,7 +312,7 @@ public class TestBench extends com.vaadin.Application.LegacyApplication
final Class<?> c = Class.forName(p);
if (c.getSuperclass() != null) {
if ((c.getSuperclass()
- .equals(com.vaadin.Application.class))) {
+ .equals(com.vaadin.server.VaadinSession.class))) {
classes.add(c);
} else if ((c.getSuperclass()
.equals(com.vaadin.ui.CustomComponent.class))) {
diff --git a/uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java b/uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java
index c3fa269fba..e5998592b7 100644
--- a/uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java
+++ b/uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java
@@ -25,7 +25,7 @@ import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
public class TestForApplicationLayoutThatUsesWholeBrosersSpace extends
- Application.LegacyApplication {
+ Application {
LegacyWindow main = new LegacyWindow("Windowing test");
diff --git a/uitest/src/com/vaadin/tests/TestForNativeWindowing.java b/uitest/src/com/vaadin/tests/TestForNativeWindowing.java
index cef9269b53..6f131bdb8e 100644
--- a/uitest/src/com/vaadin/tests/TestForNativeWindowing.java
+++ b/uitest/src/com/vaadin/tests/TestForNativeWindowing.java
@@ -27,7 +27,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class TestForNativeWindowing extends Application.LegacyApplication {
+public class TestForNativeWindowing extends Application {
LegacyWindow main = new LegacyWindow("Windowing test");
diff --git a/uitest/src/com/vaadin/tests/TestForStyledUpload.java b/uitest/src/com/vaadin/tests/TestForStyledUpload.java
index 14fe7902aa..a534f0ec84 100644
--- a/uitest/src/com/vaadin/tests/TestForStyledUpload.java
+++ b/uitest/src/com/vaadin/tests/TestForStyledUpload.java
@@ -48,7 +48,7 @@ import com.vaadin.ui.Upload.SucceededEvent;
import com.vaadin.ui.Upload.SucceededListener;
import com.vaadin.ui.VerticalLayout;
-public class TestForStyledUpload extends Application.LegacyApplication
+public class TestForStyledUpload extends Application
implements Upload.FinishedListener, FailedListener, SucceededListener,
StartedListener {
diff --git a/uitest/src/com/vaadin/tests/TestForUpload.java b/uitest/src/com/vaadin/tests/TestForUpload.java
index b0697d337d..7c2359a404 100644
--- a/uitest/src/com/vaadin/tests/TestForUpload.java
+++ b/uitest/src/com/vaadin/tests/TestForUpload.java
@@ -244,7 +244,7 @@ public class TestForUpload extends CustomComponent implements
@Override
public void buttonClick(ClickEvent event) {
- getApplication().close();
+ getSession().close();
}
});
main.addComponent(restart);
diff --git a/uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java b/uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java
index 6bb8bac200..2e81daa781 100644
--- a/uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java
+++ b/uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java
@@ -16,6 +16,7 @@
package com.vaadin.tests;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@@ -24,7 +25,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
public class TestSetVisibleAndCaching extends
- com.vaadin.Application.LegacyApplication {
+ com.vaadin.Application {
Panel panelA = new Panel("Panel A");
Panel panelB = new Panel("Panel B");
diff --git a/uitest/src/com/vaadin/tests/TestSizeableIncomponents.java b/uitest/src/com/vaadin/tests/TestSizeableIncomponents.java
index 6121647bc1..c376b40e24 100644
--- a/uitest/src/com/vaadin/tests/TestSizeableIncomponents.java
+++ b/uitest/src/com/vaadin/tests/TestSizeableIncomponents.java
@@ -41,7 +41,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class TestSizeableIncomponents extends Application.LegacyApplication {
+public class TestSizeableIncomponents extends Application {
private IndexedContainer cont;
private ComboBox select;
diff --git a/uitest/src/com/vaadin/tests/TestSplitPanel.java b/uitest/src/com/vaadin/tests/TestSplitPanel.java
index 4b0b47ed74..dddef837c7 100644
--- a/uitest/src/com/vaadin/tests/TestSplitPanel.java
+++ b/uitest/src/com/vaadin/tests/TestSplitPanel.java
@@ -16,11 +16,12 @@
package com.vaadin.tests;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalSplitPanel;
-public class TestSplitPanel extends com.vaadin.Application.LegacyApplication {
+public class TestSplitPanel extends com.vaadin.Application {
VerticalSplitPanel verticalSplit = new VerticalSplitPanel();
diff --git a/uitest/src/com/vaadin/tests/TreeFilesystem.java b/uitest/src/com/vaadin/tests/TreeFilesystem.java
index f2a0d97b08..5434bbdd82 100644
--- a/uitest/src/com/vaadin/tests/TreeFilesystem.java
+++ b/uitest/src/com/vaadin/tests/TreeFilesystem.java
@@ -18,14 +18,16 @@ package com.vaadin.tests;
import java.io.File;
+import com.vaadin.Application;
import com.vaadin.data.Item;
+import com.vaadin.server.VaadinSession;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.util.SampleDirectory;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Tree;
import com.vaadin.ui.Tree.ExpandEvent;
+import com.vaadin.ui.UI.LegacyWindow;
/**
* Browsable file explorer using Vaadin Tree component. Demonstrates: how to add
@@ -36,7 +38,7 @@ import com.vaadin.ui.Tree.ExpandEvent;
* @since 4.0.0
*
*/
-public class TreeFilesystem extends com.vaadin.Application.LegacyApplication
+public class TreeFilesystem extends com.vaadin.Application
implements Tree.ExpandListener {
// Filesystem explorer panel and it's components
@@ -61,7 +63,8 @@ public class TreeFilesystem extends com.vaadin.Application.LegacyApplication
tree.addListener(this);
// Get sample directory
- final File sampleDir = SampleDirectory.getDirectory(this, main);
+ final File sampleDir = SampleDirectory.getDirectory(
+ VaadinSession.getCurrent(), main);
// populate tree's root node with example directory
if (sampleDir != null) {
populateNode(sampleDir.getAbsolutePath(), null);
diff --git a/uitest/src/com/vaadin/tests/TreeFilesystemContainer.java b/uitest/src/com/vaadin/tests/TreeFilesystemContainer.java
index 672c518ea8..4390b24d4b 100644
--- a/uitest/src/com/vaadin/tests/TreeFilesystemContainer.java
+++ b/uitest/src/com/vaadin/tests/TreeFilesystemContainer.java
@@ -18,16 +18,18 @@ package com.vaadin.tests;
import java.io.File;
+import com.vaadin.Application;
import com.vaadin.data.util.FilesystemContainer;
import com.vaadin.data.util.FilesystemContainer.FileItem;
+import com.vaadin.server.VaadinSession;
import com.vaadin.tests.util.SampleDirectory;
import com.vaadin.ui.Component.Event;
import com.vaadin.ui.Component.Listener;
import com.vaadin.ui.Field;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
/**
@@ -41,7 +43,7 @@ import com.vaadin.ui.VerticalLayout;
*
*/
public class TreeFilesystemContainer extends
- com.vaadin.Application.LegacyApplication implements Listener {
+ com.vaadin.Application implements Listener {
// Filesystem explorer panel and it's components
private final Panel explorerPanel = new Panel("Filesystem explorer");
@@ -77,7 +79,8 @@ public class TreeFilesystemContainer extends
propertyPanel.setEnabled(false);
// Get sample directory
- final File sampleDir = SampleDirectory.getDirectory(this, w);
+ final File sampleDir = SampleDirectory.getDirectory(
+ VaadinSession.getCurrent(), w);
// Populate tree with FilesystemContainer
final FilesystemContainer fsc = new FilesystemContainer(sampleDir, true);
filesystem.setContainerDataSource(fsc);
diff --git a/uitest/src/com/vaadin/tests/UsingObjectsInSelect.java b/uitest/src/com/vaadin/tests/UsingObjectsInSelect.java
index c5a836b4f1..04980b7aac 100644
--- a/uitest/src/com/vaadin/tests/UsingObjectsInSelect.java
+++ b/uitest/src/com/vaadin/tests/UsingObjectsInSelect.java
@@ -19,6 +19,7 @@ package com.vaadin.tests;
import java.util.LinkedList;
import java.util.Random;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.shared.ui.label.ContentMode;
@@ -28,7 +29,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
public class UsingObjectsInSelect extends
- com.vaadin.Application.LegacyApplication implements ValueChangeListener {
+ com.vaadin.Application implements ValueChangeListener {
private final Select select = new Select();
private final Label selectedTask = new Label("Selected task",
diff --git a/uitest/src/com/vaadin/tests/VerifyBrowserVersion.java b/uitest/src/com/vaadin/tests/VerifyBrowserVersion.java
index f4cf236a24..022a343196 100644
--- a/uitest/src/com/vaadin/tests/VerifyBrowserVersion.java
+++ b/uitest/src/com/vaadin/tests/VerifyBrowserVersion.java
@@ -1,6 +1,5 @@
package com.vaadin.tests;
-import com.vaadin.server.ApplicationContext;
import com.vaadin.server.WebBrowser;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Label;
@@ -9,8 +8,7 @@ public class VerifyBrowserVersion extends TestBase {
@Override
protected void setup() {
- ApplicationContext context = getContext();
- WebBrowser browser = context.getBrowser();
+ WebBrowser browser = getBrowser();
addComponent(new Label(browser.getBrowserApplication()));
addComponent(new Label("Touch device? "
+ (browser.isTouchDevice() ? "YES" : "No")));
diff --git a/uitest/src/com/vaadin/tests/appengine/GAESyncTest.java b/uitest/src/com/vaadin/tests/appengine/GAESyncTest.java
index a7d2b03415..c819f4ebea 100644
--- a/uitest/src/com/vaadin/tests/appengine/GAESyncTest.java
+++ b/uitest/src/com/vaadin/tests/appengine/GAESyncTest.java
@@ -15,7 +15,7 @@ import com.vaadin.ui.Notification;
import com.vaadin.ui.TextField;
import com.vaadin.ui.UI.LegacyWindow;
-public class GAESyncTest extends Application.LegacyApplication {
+public class GAESyncTest extends Application {
/**
*
diff --git a/uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java b/uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java
index 1f5f0dc691..8cfed569dc 100644
--- a/uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java
+++ b/uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.application;
-import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
@@ -15,9 +14,9 @@ public class ApplicationCloseTest extends TestBase {
protected void setup() {
Label applications = new Label("Applications in session: <br/>",
ContentMode.XHTML);
- for (Application a : getContext().getApplications()) {
- applications.setValue(applications.getValue() + "App: " + a
- + "<br/>");
+ if (getContext() != null) {
+ applications.setValue(applications.getValue() + "App: "
+ + getContext() + "<br/>");
}
applications.setValue(applications.getValue() + "<br/><br/>");
@@ -27,7 +26,7 @@ public class ApplicationCloseTest extends TestBase {
@Override
public void buttonClick(ClickEvent event) {
- event.getButton().getApplication().close();
+ event.getButton().getUI().getSession().close();
}
});
diff --git a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.html b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.html
index 47e766e76a..ea8c0c93b6 100644
--- a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.html
+++ b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.html
@@ -18,7 +18,7 @@
</tr>
<tr>
<td>assertText</td>
- <td>vaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/ChildComponentContainer[1]/VLabel[0]</td>
+ <td>vaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/VVerticalLayout[0]/VLabel[1]</td>
<td>UI id: 0</td>
</tr>
<tr>
@@ -28,7 +28,7 @@
</tr>
<tr>
<td>assertText</td>
- <td>vaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/ChildComponentContainer[1]/VLabel[0]</td>
+ <td>vaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/VVerticalLayout[0]/VLabel[1]</td>
<td>UI id: 0</td>
</tr>
<tr>
@@ -43,10 +43,9 @@
</tr>
<tr>
<td>assertText</td>
- <td>vaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/ChildComponentContainer[1]/VLabel[0]</td>
+ <td>vaadin=runcomvaadintestsapplicationRefreshStatePreserve::/VVerticalLayout[0]/VVerticalLayout[0]/VLabel[1]</td>
<td>UI id: 0</td>
</tr>
-
</tbody></table>
</body>
</html>
diff --git a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
index 8962f5de9a..13ceceab6c 100644
--- a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
+++ b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
@@ -1,35 +1,18 @@
package com.vaadin.tests.application;
-import com.vaadin.Application;
import com.vaadin.annotations.PreserveOnRefresh;
-import com.vaadin.server.AbstractUIProvider;
import com.vaadin.server.WrappedRequest;
-import com.vaadin.tests.components.AbstractTestApplication;
+import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI;
-public class RefreshStatePreserve extends AbstractTestApplication {
- @PreserveOnRefresh
- public static class RefreshStateUI extends UI {
- @Override
- public void init(WrappedRequest request) {
- getContent().addComponent(
- new Label("window.name: "
- + request.getBrowserDetails().getWindowName()));
- getContent().addComponent(new Label("UI id: " + getUIId()));
- }
- }
+@PreserveOnRefresh
+public class RefreshStatePreserve extends AbstractTestUI {
@Override
- public void init() {
- super.init();
- addUIProvider(new AbstractUIProvider() {
- @Override
- public Class<? extends UI> getUIClass(Application application,
- WrappedRequest request) {
- return RefreshStateUI.class;
- }
- });
+ protected void setup(WrappedRequest request) {
+ addComponent(new Label("window.name: "
+ + request.getBrowserDetails().getWindowName()));
+ addComponent(new Label("UI id: " + getUIId()));
}
@Override
diff --git a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.html b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.html
index 35657c73fc..0d3a746152 100644
--- a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.html
+++ b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.html
@@ -29,7 +29,7 @@
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_15</td>
- <td>1. null app in class init</td>
+ <td>1. some app in class init</td>
</tr>
<tr>
<td>assertText</td>
@@ -39,7 +39,7 @@
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_13</td>
- <td>3. null app in app constructor</td>
+ <td>3. some app in app constructor</td>
</tr>
<tr>
<td>assertText</td>
@@ -49,7 +49,7 @@
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_11</td>
- <td>5. this app in app init</td>
+ <td>5. some app in app init</td>
</tr>
<tr>
<td>assertText</td>
@@ -59,7 +59,7 @@
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_9</td>
- <td>7. this app in root init</td>
+ <td>7. some app in root init</td>
</tr>
<tr>
<td>assertText</td>
@@ -69,7 +69,7 @@
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_7</td>
- <td>9. this app in root paint</td>
+ <td>9. some app in root paint</td>
</tr>
<tr>
<td>assertText</td>
@@ -79,27 +79,27 @@
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_5</td>
- <td>11. null app in background thread</td>
+ <td>11. some app in background thread</td>
</tr>
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_4</td>
- <td>12. null root in background thread</td>
+ <td>12. this root in background thread</td>
</tr>
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_3</td>
- <td>13. this app in resource handler</td>
+ <td>13. some app in resource handler</td>
</tr>
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_2</td>
- <td>14. null root in resource handler</td>
+ <td>14. this root in resource handler</td>
</tr>
<tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestsapplicationThreadLocalInstances::PID_SLog_row_1</td>
- <td>15. this app in button listener</td>
+ <td>15. some app in button listener</td>
</tr>
<tr>
<td>assertText</td>
diff --git a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
index 0f576a0f69..3adb284f1b 100644
--- a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
+++ b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
@@ -1,24 +1,24 @@
package com.vaadin.tests.application;
-import com.vaadin.Application;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.PaintException;
-import com.vaadin.server.UIProvider;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
-import com.vaadin.tests.components.AbstractTestApplication;
+import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.tests.integration.FlagSeResource;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.UI;
+import com.vaadin.ui.UI.LegacyWindow;
-public class ThreadLocalInstances extends AbstractTestApplication {
- private static final Application staticInitApplication = Application
+public class ThreadLocalInstances extends AbstractTestCase {
+ private static final VaadinSession staticInitApplication = VaadinSession
.getCurrent();
private static final UI staticInitRoot = UI.getCurrent();
- private final UI mainWindow = new UI() {
+ private final LegacyWindow mainWindow = new LegacyWindow() {
boolean paintReported = false;
@Override
@@ -71,25 +71,13 @@ public class ThreadLocalInstances extends AbstractTestApplication {
}
@Override
- public void init() {
+ protected void init() {
reportCurrentStatus("app init");
- addUIProvider(new UIProvider() {
- @Override
- public UI createInstance(Application application,
- Class<? extends UI> type, WrappedRequest request) {
- return mainWindow;
- }
-
- @Override
- public Class<? extends UI> getUIClass(Application application,
- WrappedRequest request) {
- return mainWindow.getClass();
- }
- });
+ setMainWindow(mainWindow);
}
@Override
- protected String getTestDescription() {
+ protected String getDescription() {
return "Tests the precence of Application.getCurrentApplication() and UI.getCurrentRoot() from different contexts";
}
@@ -99,10 +87,10 @@ public class ThreadLocalInstances extends AbstractTestApplication {
}
private void reportCurrentStatus(String phase) {
- reportStatus(phase, Application.getCurrent(), UI.getCurrent());
+ reportStatus(phase, VaadinSession.getCurrent(), UI.getCurrent());
}
- private void reportStatus(String phase, Application application, UI uI) {
+ private void reportStatus(String phase, VaadinSession application, UI uI) {
log.log(getState(application, this) + " app in " + phase);
log.log(getState(uI, mainWindow) + " root in " + phase);
}
@@ -113,7 +101,7 @@ public class ThreadLocalInstances extends AbstractTestApplication {
} else if (value == reference) {
return "this";
} else {
- return value.toString();
+ return "some";
}
}
diff --git a/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java b/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java
index 96ebe1345f..72e0a215a7 100644
--- a/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java
+++ b/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java
@@ -1,6 +1,6 @@
package com.vaadin.tests.applicationcontext;
-import com.vaadin.server.ServletApplicationContext;
+import com.vaadin.server.VaadinServletSession;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.Button;
@@ -32,7 +32,7 @@ public class ChangeSessionId extends AbstractTestCase {
loginButton.addListener(new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
- ServletApplicationContext context = ((ServletApplicationContext) getContext());
+ VaadinServletSession context = ((VaadinServletSession) getContext());
String oldSessionId = context.getHttpSession().getId();
context.reinitializeSession();
@@ -55,7 +55,7 @@ public class ChangeSessionId extends AbstractTestCase {
}
protected String getSessionId() {
- return ((ServletApplicationContext) getContext()).getHttpSession().getId();
+ return ((VaadinServletSession) getContext()).getHttpSession().getId();
}
@Override
diff --git a/uitest/src/com/vaadin/tests/applicationcontext/RemoveTransactionListener.java b/uitest/src/com/vaadin/tests/applicationcontext/RemoveTransactionListener.java
deleted file mode 100644
index 5927e9c19f..0000000000
--- a/uitest/src/com/vaadin/tests/applicationcontext/RemoveTransactionListener.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package com.vaadin.tests.applicationcontext;
-
-import com.vaadin.Application;
-import com.vaadin.server.ApplicationContext;
-import com.vaadin.server.ApplicationContext.TransactionListener;
-import com.vaadin.tests.components.TestBase;
-import com.vaadin.tests.util.Log;
-
-public class RemoveTransactionListener extends TestBase {
-
- private final Log log = new Log(10);
-
- @Override
- protected void setup() {
- // Add one listener that will remove itself from within transactionEnd
- getMainWindow().getApplication().getContext()
- .addTransactionListener(new TransactionListener() {
- @Override
- public void transactionStart(Application application,
- Object transactionData) {
- }
-
- @Override
- public void transactionEnd(Application application,
- Object transactionData) {
- removeListener(this);
- log.log("Listener removed in transactionEnd");
- }
- });
-
- // Add one listener that will remove itself from within transactionStart
- getMainWindow().getApplication().getContext()
- .addTransactionListener(new TransactionListener() {
- @Override
- public void transactionStart(Application application,
- Object transactionData) {
- removeListener(this);
- log.log("Listener removed in transactionStart");
- }
-
- @Override
- public void transactionEnd(Application application,
- Object transactionData) {
- }
- });
-
- // Add one listener to verify that all listeners are called, as thrown
- // ConcurrentModificationException causes subsequent listeners to be
- // ignored
- getMainWindow().getApplication().getContext()
- .addTransactionListener(new TransactionListener() {
- @Override
- public void transactionStart(Application application,
- Object transactionData) {
- log.log("transactionStart from last listener");
- }
-
- @Override
- public void transactionEnd(Application application,
- Object transactionData) {
- log.log("transactionEnd from last listener");
- }
- });
-
- addComponent(log);
- }
-
- private void removeListener(TransactionListener l) {
- ApplicationContext context = getMainWindow().getApplication()
- .getContext();
- context.removeTransactionListener(l);
- }
-
- @Override
- protected String getDescription() {
- return "Tests that a transaction listener can be removed from within the listener.";
- }
-
- @Override
- protected Integer getTicketNumber() {
- return Integer.valueOf(7065);
- }
-
-}
diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestCase.java b/uitest/src/com/vaadin/tests/components/AbstractTestCase.java
index f51c74d4a8..7556976d00 100644
--- a/uitest/src/com/vaadin/tests/components/AbstractTestCase.java
+++ b/uitest/src/com/vaadin/tests/components/AbstractTestCase.java
@@ -1,18 +1,17 @@
package com.vaadin.tests.components;
import com.vaadin.Application;
-import com.vaadin.server.ApplicationContext;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WebBrowser;
-public abstract class AbstractTestCase extends Application.LegacyApplication {
+public abstract class AbstractTestCase extends Application {
protected abstract String getDescription();
protected abstract Integer getTicketNumber();
protected WebBrowser getBrowser() {
- ApplicationContext context = getContext();
- WebBrowser webBrowser = context.getBrowser();
+ WebBrowser webBrowser = VaadinSession.getCurrent().getBrowser();
return webBrowser;
}
diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
index 21eda56891..210cb2535e 100644
--- a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
+++ b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
@@ -1,7 +1,5 @@
package com.vaadin.tests.components;
-import com.vaadin.Application;
-import com.vaadin.server.ApplicationContext;
import com.vaadin.server.WebBrowser;
import com.vaadin.server.WrappedRequest;
import com.vaadin.shared.ui.label.ContentMode;
@@ -56,9 +54,7 @@ public abstract class AbstractTestUI extends UI {
protected abstract Integer getTicketNumber();
protected WebBrowser getBrowser() {
- ApplicationContext context = Application.getCurrent().getContext();
- ApplicationContext webContext = context;
- return webContext.getBrowser();
+ return getSession().getBrowser();
}
}
diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestApplication.java b/uitest/src/com/vaadin/tests/components/AbstractTestUIProvider.java
index db17c67fdd..db388405a8 100644
--- a/uitest/src/com/vaadin/tests/components/AbstractTestApplication.java
+++ b/uitest/src/com/vaadin/tests/components/AbstractTestUIProvider.java
@@ -1,17 +1,16 @@
package com.vaadin.tests.components;
-import com.vaadin.Application;
-import com.vaadin.server.ApplicationContext;
+import com.vaadin.server.AbstractUIProvider;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WebBrowser;
-public abstract class AbstractTestApplication extends Application {
+public abstract class AbstractTestUIProvider extends AbstractUIProvider {
protected abstract String getTestDescription();
protected abstract Integer getTicketNumber();
protected WebBrowser getBrowser() {
- ApplicationContext context = getContext();
- WebBrowser webBrowser = context.getBrowser();
+ WebBrowser webBrowser = VaadinSession.getCurrent().getBrowser();
return webBrowser;
}
}
diff --git a/uitest/src/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java b/uitest/src/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java
index 9b29ae1bab..2eef498aff 100644
--- a/uitest/src/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java
+++ b/uitest/src/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java
@@ -8,6 +8,7 @@ import com.vaadin.data.Container;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
+import com.vaadin.server.VaadinSession;
import com.vaadin.tests.components.TestBase;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.AbstractField;
@@ -54,7 +55,7 @@ public abstract class AbstractComponentDataBindingTest extends TestBase
}
protected void updateLocale(Locale locale) {
- setLocale(locale);
+ VaadinSession.getCurrent().setLocale(locale);
for (Component c : fields) {
removeComponent(c);
}
diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java
index 10afb05ae3..4482cf3121 100644
--- a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java
+++ b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java
@@ -12,7 +12,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
@SuppressWarnings("serial")
-public class ComboBoxReapperingOldValue extends Application.LegacyApplication
+public class ComboBoxReapperingOldValue extends Application
implements ValueChangeListener {
ComboBox cbox1 = new ComboBox();
diff --git a/uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java b/uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java
index b34db2170e..218e3998a6 100644
--- a/uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java
+++ b/uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.TextField;
@SuppressWarnings("serial")
public class UndefinedWideFormWithRelativeWideFooter extends
- Application.LegacyApplication {
+ Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java b/uitest/src/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java
index 84c14763ab..6de14e949b 100644
--- a/uitest/src/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java
+++ b/uitest/src/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java
@@ -1,12 +1,9 @@
package com.vaadin.tests.components.loginform;
import com.vaadin.Application;
-import com.vaadin.server.AbstractUIProvider;
-import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.LoginForm;
import com.vaadin.ui.LoginForm.LoginEvent;
import com.vaadin.ui.LoginForm.LoginListener;
-import com.vaadin.ui.UI;
import com.vaadin.ui.UI.LegacyWindow;
@SuppressWarnings("serial")
@@ -14,13 +11,7 @@ public class LoginFormWithMultipleWindows extends Application {
@Override
public void init() {
- addUIProvider(new AbstractUIProvider() {
- @Override
- public Class<? extends UI> getUIClass(Application application,
- WrappedRequest request) {
- return LoginFormWindow.class;
- }
- });
+ setMainWindow(new LoginFormWindow());
}
public static class LoginFormWindow extends LegacyWindow {
diff --git a/uitest/src/com/vaadin/tests/components/table/TableFirstRowFlicker.java b/uitest/src/com/vaadin/tests/components/table/TableFirstRowFlicker.java
index 90df5610eb..27905b5cf9 100644
--- a/uitest/src/com/vaadin/tests/components/table/TableFirstRowFlicker.java
+++ b/uitest/src/com/vaadin/tests/components/table/TableFirstRowFlicker.java
@@ -1,15 +1,15 @@
package com.vaadin.tests.components.table;
-import com.vaadin.Application.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Label;
import com.vaadin.ui.ProgressIndicator;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class TableFirstRowFlicker extends LegacyApplication {
+public class TableFirstRowFlicker extends Application {
Table t;
@@ -43,7 +43,7 @@ public class TableFirstRowFlicker extends LegacyApplication {
@Override
public void run() {
while (t != null) {
- synchronized (t.getApplication()) {
+ synchronized (t.getUI().getSession()) {
int firstId = t.getCurrentPageFirstItemIndex();
Object selected = t.getValue();
t.setContainerDataSource(buildContainer());
diff --git a/uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java b/uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java
index f6368f0c78..d63d7ddc66 100644
--- a/uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java
+++ b/uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java
@@ -30,7 +30,8 @@ public class SelectionAndCursorPosition extends TestBase {
ml.addListener(new Property.ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- if (textField.getApplication() == null) {
+ if (textField.getUI() == null
+ || textField.getUI().getSession() == null) {
replaceComponent(textArea, textField);
activeComponent = textField;
} else {
diff --git a/uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java b/uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java
index 903226c87c..bab39bf656 100644
--- a/uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java
+++ b/uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class TextFieldInLayoutInTable extends Application.LegacyApplication {
+public class TextFieldInLayoutInTable extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java b/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
index 3980cbd4de..a3ca2420f7 100644
--- a/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
+++ b/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
@@ -1,16 +1,15 @@
package com.vaadin.tests.components.ui;
-import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
-import com.vaadin.server.UIProvider;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
import com.vaadin.shared.ui.label.ContentMode;
-import com.vaadin.tests.components.AbstractTestApplication;
+import com.vaadin.tests.components.AbstractTestUIProvider;
import com.vaadin.ui.Label;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI;
-public class LazyInitUIs extends AbstractTestApplication {
+public class LazyInitUIs extends AbstractTestUIProvider {
// @EagerInit
private static class EagerInitUI extends UI {
@@ -21,21 +20,15 @@ public class LazyInitUIs extends AbstractTestApplication {
}
@Override
- public void init() {
- addUIProvider(new UIProvider() {
-
- @Override
- public UI createInstance(Application application,
- Class<? extends UI> type, WrappedRequest request) {
- return getUI(request);
- }
+ public UI createInstance(VaadinSession application, Class<? extends UI> type,
+ WrappedRequest request) {
+ return getUI(request);
+ }
- @Override
- public Class<? extends UI> getUIClass(Application application,
- WrappedRequest request) {
- return getUI(request).getClass();
- }
- });
+ @Override
+ public Class<? extends UI> getUIClass(VaadinSession application,
+ WrappedRequest request) {
+ return getUI(request).getClass();
}
private UI getUI(WrappedRequest request) {
@@ -59,14 +52,14 @@ public class LazyInitUIs extends AbstractTestApplication {
addComponent(getRequestInfo("NormalUI", request));
Link lazyCreateLink = new Link("Open lazyCreate UI",
- new ExternalResource(getURL()
- + "?lazyCreate#lazyCreate"));
+ new ExternalResource(VaadinSession.getCurrent()
+ .getURL() + "?lazyCreate#lazyCreate"));
lazyCreateLink.setTargetName("_blank");
addComponent(lazyCreateLink);
Link lazyInitLink = new Link("Open eagerInit UI",
- new ExternalResource(getURL()
- + "?eagerInit#eagerInit"));
+ new ExternalResource(VaadinSession.getCurrent()
+ .getURL() + "?eagerInit#eagerInit"));
lazyInitLink.setTargetName("_blank");
addComponent(lazyInitLink);
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java b/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
index fe2fe16d93..19c85a729d 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
+++ b/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
@@ -1,34 +1,40 @@
package com.vaadin.tests.components.ui;
-import com.vaadin.Application;
-import com.vaadin.server.AbstractUIProvider;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.atomic.AtomicInteger;
+
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
-import com.vaadin.tests.components.AbstractTestApplication;
+import com.vaadin.tests.components.AbstractTestUIProvider;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
-public class UIsInMultipleTabs extends AbstractTestApplication {
- private int numberOfUIsOpened;
+public class UIsInMultipleTabs extends AbstractTestUIProvider {
+ // No cleanup -> will leak, but shouldn't matter for tests
+ private static ConcurrentHashMap<VaadinSession, AtomicInteger> numberOfUIsOpened = new ConcurrentHashMap<VaadinSession, AtomicInteger>();
public static class TabUI extends UI {
@Override
protected void init(WrappedRequest request) {
- UIsInMultipleTabs application = (UIsInMultipleTabs) getApplication();
- String message = "This is UI number "
- + ++application.numberOfUIsOpened;
+ VaadinSession application = VaadinSession.getCurrent();
+ AtomicInteger count = numberOfUIsOpened.get(application);
+ if (count == null) {
+ numberOfUIsOpened.putIfAbsent(application, new AtomicInteger());
+ // Get our added instance or another instance that was added by
+ // another thread between previous get and putIfAbsent
+ count = numberOfUIsOpened.get(application);
+ }
+ int currentCount = count.incrementAndGet();
+ String message = "This is UI number " + currentCount;
addComponent(new Label(message));
}
}
- public UIsInMultipleTabs() {
- addUIProvider(new AbstractUIProvider() {
- @Override
- public Class<? extends UI> getUIClass(Application application,
- WrappedRequest request) {
- return TabUI.class;
- }
- });
+ @Override
+ public Class<? extends UI> getUIClass(VaadinSession application,
+ WrappedRequest request) {
+ return TabUI.class;
}
@Override
diff --git a/uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java b/uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java
index 6d2623c199..6f21346b7d 100644
--- a/uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java
+++ b/uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java
@@ -1,10 +1,7 @@
package com.vaadin.tests.components.window;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
import com.vaadin.event.ShortcutAction.KeyCode;
-import com.vaadin.server.HttpServletRequestListener;
+import com.vaadin.server.WrappedRequest;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.Button;
@@ -14,9 +11,9 @@ import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.Window;
+import com.vaadin.util.CurrentInstance;
-public class AttachShouldBeCalledForSubWindows extends AbstractTestCase
- implements HttpServletRequestListener {
+public class AttachShouldBeCalledForSubWindows extends AbstractTestCase {
private static final long serialVersionUID = 1L;
private Log log = new Log(20);
@@ -26,6 +23,13 @@ public class AttachShouldBeCalledForSubWindows extends AbstractTestCase
@Override
public void init() {
+ WrappedRequest request = CurrentInstance.get(WrappedRequest.class);
+ if (request.getParameter("attachMainFirst") != null) {
+ addSubWindowBeforeMainWindow = false;
+ } else {
+ addSubWindowBeforeMainWindow = true;
+ }
+
UI.LegacyWindow mainWindow = new UI.LegacyWindow() {
@Override
public void attach() {
@@ -115,19 +119,4 @@ public class AttachShouldBeCalledForSubWindows extends AbstractTestCase
return 8170;
}
- @Override
- public void onRequestStart(HttpServletRequest request,
- HttpServletResponse response) {
- if (request.getParameter("attachMainFirst") != null) {
- addSubWindowBeforeMainWindow = false;
- }
-
- }
-
- @Override
- public void onRequestEnd(HttpServletRequest request,
- HttpServletResponse response) {
- // TODO Auto-generated method stub
-
- }
}
diff --git a/uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java b/uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java
index 0c1fdc23f6..3af415217c 100644
--- a/uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java
+++ b/uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java
@@ -15,7 +15,7 @@ import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class CheckboxUpdateProblem extends Application.LegacyApplication
+public class CheckboxUpdateProblem extends Application
implements Property.ValueChangeListener {
private final DatabaseHelper databaseHelper = new DatabaseHelper();
private Table testList;
diff --git a/uitest/src/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java b/uitest/src/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java
index aec0f0e28e..e33607b4f7 100644
--- a/uitest/src/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java
+++ b/uitest/src/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.UI;
/**
* See http://dev.vaadin.com/ticket/9155 .
*/
-public class ComboBoxUpdateProblem extends Application.LegacyApplication {
+public class ComboBoxUpdateProblem extends Application {
private final DatabaseHelper databaseHelper = new DatabaseHelper();
@Override
diff --git a/uitest/src/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java b/uitest/src/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java
index 8bb2ba1092..1546f51a33 100644
--- a/uitest/src/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java
+++ b/uitest/src/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java
@@ -25,7 +25,7 @@ import com.vaadin.ui.VerticalLayout;
// +-------------+-------------+------+-----+---------+----------------+
@SuppressWarnings("serial")
-public class MassInsertMemoryLeakTestApp extends Application.LegacyApplication {
+public class MassInsertMemoryLeakTestApp extends Application {
ProgressIndicator proggress = new ProgressIndicator();
Button process = new Button("Mass insert");
diff --git a/uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java b/uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java
index 9c7225b510..d3c85cbde5 100644
--- a/uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java
+++ b/uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Table;
import com.vaadin.ui.UI.LegacyWindow;
-public class IntegrationTestApplication extends Application.LegacyApplication {
+public class IntegrationTestApplication extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/integration/JSR286PortletApplication.java b/uitest/src/com/vaadin/tests/integration/JSR286PortletApplication.java
index 2243adf336..db8307b635 100644
--- a/uitest/src/com/vaadin/tests/integration/JSR286PortletApplication.java
+++ b/uitest/src/com/vaadin/tests/integration/JSR286PortletApplication.java
@@ -21,8 +21,8 @@ import javax.portlet.WindowState;
import com.vaadin.Application;
import com.vaadin.annotations.StyleSheet;
import com.vaadin.server.ExternalResource;
-import com.vaadin.server.PortletApplicationContext2;
-import com.vaadin.server.PortletApplicationContext2.PortletListener;
+import com.vaadin.server.VaadinPortletSession;
+import com.vaadin.server.VaadinPortletSession.PortletListener;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.Label;
@@ -37,7 +37,7 @@ import com.vaadin.ui.Upload.Receiver;
/**
* Adapted from old PortletDemo to support integration testing.
*/
-public class JSR286PortletApplication extends Application.LegacyApplication {
+public class JSR286PortletApplication extends Application {
@StyleSheet("PortletConnectorResource.css")
public final class LegacyWindowWithStylesheet extends LegacyWindow {
@@ -87,9 +87,9 @@ public class JSR286PortletApplication extends Application.LegacyApplication {
});
main.addComponent(upload);
- if (getContext() instanceof PortletApplicationContext2) {
- PortletApplicationContext2 ctx = (PortletApplicationContext2) getContext();
- ctx.addPortletListener(this, new DemoPortletListener());
+ if (getContext() instanceof VaadinPortletSession) {
+ VaadinPortletSession ctx = (VaadinPortletSession) getContext();
+ ctx.addPortletListener(new DemoPortletListener());
} else {
getMainWindow().showNotification("Not inited via Portal!",
Notification.TYPE_ERROR_MESSAGE);
diff --git a/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java b/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java
index 0cbf50ae1b..82761afa68 100644
--- a/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java
+++ b/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java
@@ -57,7 +57,7 @@ import com.vaadin.ui.Window;
import com.vaadin.ui.themes.LiferayTheme;
@SuppressWarnings("serial")
-public class LiferayThemeDemo extends Application.LegacyApplication {
+public class LiferayThemeDemo extends Application {
@SuppressWarnings("deprecation")
private static final Date DATE = new Date(2009 - 1900, 6 - 1, 2);
diff --git a/uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java b/uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java
index fc54547890..abbc819705 100644
--- a/uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java
+++ b/uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java
@@ -1,6 +1,6 @@
package com.vaadin.tests.integration;
-import com.vaadin.Application.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
@@ -12,7 +12,7 @@ import com.vaadin.ui.VerticalLayout;
* See ticket #5521.
*/
public class PortletSizeInLiferayFreeformLayoutApplication extends
- LegacyApplication {
+ Application {
@Override
public void init() {
LegacyWindow mainWindow = new LegacyWindow("Portlet5521 Application");
diff --git a/uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java b/uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java
index f4050ea085..b584cdb5cf 100644
--- a/uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java
+++ b/uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java
@@ -73,7 +73,7 @@ public class ComplexGLColumnExpansionWithColSpan extends AbstractTestCase {
restart.addListener(new Button.ClickListener() {
@Override
public void buttonClick(Button.ClickEvent event) {
- mainLayout.getUI().getApplication().close();
+ mainLayout.getUI().getSession().close();
}
});
diff --git a/uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java b/uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java
index 6273b92838..66248d7a5b 100644
--- a/uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java
+++ b/uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.UI.LegacyWindow;
-public class GridLayoutInsidePanel2 extends Application.LegacyApplication {
+public class GridLayoutInsidePanel2 extends Application {
private Layout layout;
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java
index 2cbff64117..ff2263e208 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.TextField;
public class CustomConverterFactoryUI extends AbstractTestUI {
@Override
public void setup(WrappedRequest request) {
- getApplication().setConverterFactory(new MyConverterFactory());
+ getSession().setConverterFactory(new MyConverterFactory());
TextField tf = new TextField("This is my double field");
tf.setImmediate(true);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
index 9e4c719830..f9309d87b2 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
@@ -16,8 +16,8 @@
package com.vaadin.tests.minitutorials.v7a1;
-import com.vaadin.Application;
-import com.vaadin.server.UIProvider;
+import com.vaadin.server.AbstractUIProvider;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WebBrowser;
import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.Label;
@@ -31,35 +31,29 @@ import com.vaadin.ui.UI;
* @author Vaadin Ltd
* @since 7.0.0
*/
-public class DifferentFeaturesForDifferentClients extends Application {
+public class DifferentFeaturesForDifferentClients extends AbstractUIProvider {
@Override
- public void init() {
- super.init();
- addUIProvider(new UIProvider() {
- @Override
- public Class<? extends UI> getUIClass(Application application,
- WrappedRequest request) {
- // could also use browser version etc.
- if (request.getHeader("user-agent").contains("mobile")) {
- return TouchRoot.class;
- } else {
- return DefaultRoot.class;
- }
- }
+ public Class<? extends UI> getUIClass(VaadinSession application,
+ WrappedRequest request) {
+ // could also use browser version etc.
+ if (request.getHeader("user-agent").contains("mobile")) {
+ return TouchRoot.class;
+ } else {
+ return DefaultRoot.class;
+ }
+ }
- // Must override as default implementation isn't allowed to
- // instantiate our non-public classes
- @Override
- public UI createInstance(Application application,
- Class<? extends UI> type, WrappedRequest request) {
- try {
- return type.newInstance();
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- });
+ // Must override as default implementation isn't allowed to
+ // instantiate our non-public classes
+ @Override
+ public UI createInstance(VaadinSession application, Class<? extends UI> type,
+ WrappedRequest request) {
+ try {
+ return type.newInstance();
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
}
}
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java
index 4fd9c1187b..632eda2491 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java
@@ -7,9 +7,9 @@ import java.net.URL;
import javax.imageio.ImageIO;
-import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
import com.vaadin.server.WrappedResponse;
import com.vaadin.tests.components.AbstractTestUI;
@@ -20,12 +20,12 @@ public class DynamicImageUI extends AbstractTestUI {
@Override
public void setup(WrappedRequest request) {
// Add the request handler that handles our dynamic image
- getApplication().addRequestHandler(new DynamicImageRequestHandler());
+ getSession().addRequestHandler(new DynamicImageRequestHandler());
// Create a URL that we can handle in DynamicImageRequestHandler
URL imageUrl;
try {
- imageUrl = new URL(getApplication().getURL(),
+ imageUrl = new URL(getSession().getURL(),
DynamicImageRequestHandler.IMAGE_URL + "?text=Hello!");
} catch (MalformedURLException e) {
// This should never happen
@@ -56,7 +56,7 @@ class DynamicImageRequestHandler implements RequestHandler {
public static final String IMAGE_URL = "myimage.png";
@Override
- public boolean handleRequest(Application application,
+ public boolean handleRequest(VaadinSession application,
WrappedRequest request, WrappedResponse response)
throws IOException {
String pathInfo = request.getRequestPathInfo();
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java
index e0f53935c7..147ea2a919 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.minitutorials.v7a1;
-import com.vaadin.Application;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -41,7 +41,7 @@ public class FindCurrentUI extends UI {
@Override
public void buttonClick(ClickEvent event) {
String msg = "Running in ";
- msg += Application.getCurrent().isProductionMode() ? "production"
+ msg += VaadinSession.getCurrent().isProductionMode() ? "production"
: "debug";
Notification.show(msg);
}
diff --git a/uitest/src/com/vaadin/tests/resources/NonExistingFileResource.java b/uitest/src/com/vaadin/tests/resources/NonExistingFileResource.java
index eb8559f746..45552df39c 100644
--- a/uitest/src/com/vaadin/tests/resources/NonExistingFileResource.java
+++ b/uitest/src/com/vaadin/tests/resources/NonExistingFileResource.java
@@ -3,9 +3,11 @@ package com.vaadin.tests.resources;
import java.io.File;
import com.vaadin.server.FileResource;
+import com.vaadin.server.WrappedRequest;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
+import com.vaadin.util.CurrentInstance;
public class NonExistingFileResource extends TestBase {
@@ -24,8 +26,10 @@ public class NonExistingFileResource extends TestBase {
@Override
public void buttonClick(ClickEvent event) {
- FileResource res = new FileResource(new File(getContext()
- .getBaseDirectory() + "/" + filename));
+ FileResource res = new FileResource(new File(CurrentInstance
+ .get(WrappedRequest.class).getDeploymentConfiguration()
+ .getBaseDirectory()
+ + "/" + filename));
getMainWindow().open(res);
}
diff --git a/uitest/src/com/vaadin/tests/themes/ButtonsTest.java b/uitest/src/com/vaadin/tests/themes/ButtonsTest.java
index 39b43f3516..411dbed340 100644
--- a/uitest/src/com/vaadin/tests/themes/ButtonsTest.java
+++ b/uitest/src/com/vaadin/tests/themes/ButtonsTest.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.themes;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.server.ThemeResource;
@@ -14,7 +15,7 @@ import com.vaadin.ui.UI;
import com.vaadin.ui.UI.LegacyWindow;
@SuppressWarnings("serial")
-public class ButtonsTest extends com.vaadin.Application.LegacyApplication {
+public class ButtonsTest extends com.vaadin.Application {
final UI.LegacyWindow main = new LegacyWindow("Button states & themes");
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1225.java b/uitest/src/com/vaadin/tests/tickets/Ticket1225.java
index 8c99fe6ebb..5ea26c882e 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1225.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1225.java
@@ -16,7 +16,7 @@ import com.vaadin.ui.VerticalSplitPanel;
* properly. Scrollbars will disappear if "shaking" content a bit, like
* selecting tests in area.
*/
-public class Ticket1225 extends Application.LegacyApplication {
+public class Ticket1225 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1230.java b/uitest/src/com/vaadin/tests/tickets/Ticket1230.java
index e11d6ea024..69a1e7d20d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1230.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1230.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
-public class Ticket1230 extends Application.LegacyApplication {
+public class Ticket1230 extends Application {
private static final Object PROPERTY_ID = new Object();
private static final Object NULL_ITEM_ID = new Object();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket124.java b/uitest/src/com/vaadin/tests/tickets/Ticket124.java
index 4bcf31a366..6fc67af975 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket124.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket124.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket124 extends Application.LegacyApplication {
+public class Ticket124 extends Application {
private TextField tf;
private GridLayout gl;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1245.java b/uitest/src/com/vaadin/tests/tickets/Ticket1245.java
index 6aa1c1752a..0c72d8ecaa 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1245.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1245.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.ui.AbstractSelect;
@@ -11,7 +12,7 @@ import com.vaadin.ui.Tree;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket1245 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1245 extends com.vaadin.Application {
TextField f = new TextField();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1365.java b/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
index c617b07248..80b29fff17 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.event.Action;
import com.vaadin.event.Action.Handler;
import com.vaadin.event.ShortcutAction;
@@ -7,7 +8,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1365 extends com.vaadin.Application.LegacyApplication
+public class Ticket1365 extends com.vaadin.Application
implements Handler {
TextField f = new TextField();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1368.java b/uitest/src/com/vaadin/tests/tickets/Ticket1368.java
index 16b47a1f31..27410af474 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1368.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1368.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Table;
/**
*/
-public class Ticket1368 extends Application.LegacyApplication {
+public class Ticket1368 extends Application {
private Table t;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1397.java b/uitest/src/com/vaadin/tests/tickets/Ticket1397.java
index e162e96bfa..7cbe2cfd3b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1397.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1397.java
@@ -14,7 +14,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket1397 extends Application.LegacyApplication {
+public class Ticket1397 extends Application {
LegacyWindow main;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1435.java b/uitest/src/com/vaadin/tests/tickets/Ticket1435.java
index d46a56f73a..fa6a4d42f7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1435.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1435.java
@@ -16,7 +16,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1435 extends Application.LegacyApplication {
+public class Ticket1435 extends Application {
private static final boolean useWorkaround = true;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1444.java b/uitest/src/com/vaadin/tests/tickets/Ticket1444.java
index 1da3b5c290..256b519371 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1444.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1444.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1444 extends Application.LegacyApplication {
+public class Ticket1444 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java b/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java
index 3c766ef985..c13b6968ed 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1465ModalNotification.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Notification;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class Ticket1465ModalNotification extends Application.LegacyApplication {
+public class Ticket1465ModalNotification extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1519.java b/uitest/src/com/vaadin/tests/tickets/Ticket1519.java
index 8b1736637b..cd3bc86677 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1519.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1519.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
-public class Ticket1519 extends Application.LegacyApplication {
+public class Ticket1519 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1572.java b/uitest/src/com/vaadin/tests/tickets/Ticket1572.java
index a511bae6d9..adeb4c7a87 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1572.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1572.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.shared.ui.MarginInfo;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -9,7 +10,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1572 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1572 extends com.vaadin.Application {
private Label state;
private GridLayout gl;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1581.java b/uitest/src/com/vaadin/tests/tickets/Ticket1581.java
index 5025605413..8766e1135a 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1581.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1581.java
@@ -2,6 +2,7 @@ package com.vaadin.tests.tickets;
import java.util.Date;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@@ -9,7 +10,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.ProgressIndicator;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1581 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1581 extends com.vaadin.Application {
private Label time;
private ProgressIndicator poller;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1589.java b/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
index 37f9197285..82cfa2b3ec 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
@@ -14,12 +14,13 @@ import com.vaadin.Application;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
import com.vaadin.server.WrappedResponse;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1589 extends Application.LegacyApplication {
+public class Ticket1589 extends Application {
@Override
public void init() {
@@ -28,7 +29,7 @@ public class Ticket1589 extends Application.LegacyApplication {
MyDynamicResource res = new MyDynamicResource();
- addRequestHandler(res);
+ VaadinSession.getCurrent().addRequestHandler(res);
w.addComponent(new Link(
"Test (without Content-Disposition, should suggest generatedFile.png when saving, browser default for actual disposition)",
@@ -51,7 +52,7 @@ class MyDynamicResource implements RequestHandler {
* stream that contains the response from the server.
*/
@Override
- public boolean handleRequest(Application application,
+ public boolean handleRequest(VaadinSession application,
WrappedRequest request, WrappedResponse response)
throws IOException {
String relativeUri = request.getRequestPathInfo();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1598.java b/uitest/src/com/vaadin/tests/tickets/Ticket1598.java
index 2f845a2264..e1f04cbf8e 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1598.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1598.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.MenuBar.Command;
import com.vaadin.ui.MenuBar.MenuItem;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1598 extends Application.LegacyApplication {
+public class Ticket1598 extends Application {
LegacyWindow main = new LegacyWindow("MenuBar test");
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket161.java b/uitest/src/com/vaadin/tests/tickets/Ticket161.java
index 4da1b3a6b4..94eba29551 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket161.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket161.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Table;
/**
*/
-public class Ticket161 extends Application.LegacyApplication {
+public class Ticket161 extends Application {
private Table t;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1632.java b/uitest/src/com/vaadin/tests/tickets/Ticket1632.java
index bca902a73f..ff50380c42 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1632.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1632.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Table;
/**
*/
-public class Ticket1632 extends Application.LegacyApplication {
+public class Ticket1632 extends Application {
private Table t;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1659.java b/uitest/src/com/vaadin/tests/tickets/Ticket1659.java
index 57d2ad73e5..cd96ac56c7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1659.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1659.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1659 extends Application.LegacyApplication {
+public class Ticket1659 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1663.java b/uitest/src/com/vaadin/tests/tickets/Ticket1663.java
index 1ef16afe95..7a5c1163b5 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1663.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1663.java
@@ -1,10 +1,11 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.server.SystemError;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1663 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1663 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1673.java b/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
index bf95001464..c2b7b38435 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
@@ -1,12 +1,13 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.server.CustomizedSystemMessages;
import com.vaadin.server.SystemMessages;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1673 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1673 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1710.java b/uitest/src/com/vaadin/tests/tickets/Ticket1710.java
index c00e2f32eb..641bd43f70 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1710.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1710.java
@@ -2,6 +2,7 @@ package com.vaadin.tests.tickets;
import java.util.Iterator;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.util.MethodProperty;
@@ -28,7 +29,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1710 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1710 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1737.java b/uitest/src/com/vaadin/tests/tickets/Ticket1737.java
index caf44865f9..8bb244545a 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1737.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1737.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1737 extends Application.LegacyApplication {
+public class Ticket1737 extends Application {
Resource slowRes = new ClassResource(Ticket1737.class, "m-bullet-blue.gif") {
@Override
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1767.java b/uitest/src/com/vaadin/tests/tickets/Ticket1767.java
index eca0c0f833..42706a1428 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1767.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1767.java
@@ -1,9 +1,10 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1767 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1767 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1772.java b/uitest/src/com/vaadin/tests/tickets/Ticket1772.java
index a269acc1e0..a2ddbebad8 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1772.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1772.java
@@ -1,12 +1,13 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1772 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1772 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1775.java b/uitest/src/com/vaadin/tests/tickets/Ticket1775.java
index ec28a957bb..80a19720bb 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1775.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1775.java
@@ -1,12 +1,13 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1775 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1775 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1804.java b/uitest/src/com/vaadin/tests/tickets/Ticket1804.java
index a77e6e843a..d7c9a45992 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1804.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1804.java
@@ -3,6 +3,7 @@ package com.vaadin.tests.tickets;
import java.util.Iterator;
import java.util.LinkedList;
+import com.vaadin.Application;
import com.vaadin.data.Validator;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.server.SystemError;
@@ -15,7 +16,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
import com.vaadin.ui.Window;
-public class Ticket1804 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1804 extends com.vaadin.Application {
LinkedList<Select> listOfAllFields = new LinkedList<Select>();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1805.java b/uitest/src/com/vaadin/tests/tickets/Ticket1805.java
index 7f5c684479..376173ebf2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1805.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1805.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.Alignment;
@@ -10,7 +11,7 @@ import com.vaadin.ui.Layout.MarginHandler;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1805 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1805 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1806.java b/uitest/src/com/vaadin/tests/tickets/Ticket1806.java
index 8359b024aa..31746b455d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1806.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1806.java
@@ -1,12 +1,13 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1806 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1806 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1811.java b/uitest/src/com/vaadin/tests/tickets/Ticket1811.java
index 824c58436f..d68fc8be3d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1811.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1811.java
@@ -3,6 +3,7 @@ package com.vaadin.tests.tickets;
import java.util.Iterator;
import java.util.LinkedList;
+import com.vaadin.Application;
import com.vaadin.data.Validator;
import com.vaadin.data.validator.StringLengthValidator;
import com.vaadin.shared.ui.label.ContentMode;
@@ -13,7 +14,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Window;
-public class Ticket1811 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1811 extends com.vaadin.Application {
LinkedList<TextField> listOfAllFields = new LinkedList<TextField>();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1819.java b/uitest/src/com/vaadin/tests/tickets/Ticket1819.java
index e16b2c2774..162bfbad2d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1819.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1819.java
@@ -3,6 +3,7 @@ package com.vaadin.tests.tickets;
import java.util.Iterator;
import java.util.LinkedList;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.AbstractField;
import com.vaadin.ui.Button;
@@ -12,7 +13,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
import com.vaadin.ui.Window;
-public class Ticket1819 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1819 extends com.vaadin.Application {
LinkedList<Select> listOfAllFields = new LinkedList<Select>();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java b/uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java
index f7329037cc..a929b3a60b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@@ -9,7 +10,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1834PanelScrolling extends
- com.vaadin.Application.LegacyApplication {
+ com.vaadin.Application {
private static final int ROWS = 50;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1857.java b/uitest/src/com/vaadin/tests/tickets/Ticket1857.java
index be0158e0fb..1b74d3c142 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1857.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1857.java
@@ -11,7 +11,7 @@ import com.vaadin.ui.Table;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1857 extends Application.LegacyApplication implements
+public class Ticket1857 extends Application implements
Handler {
@Override
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1868.java b/uitest/src/com/vaadin/tests/tickets/Ticket1868.java
index 8bd4a77204..b301eb1ea9 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1868.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1868.java
@@ -1,9 +1,10 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1868 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1868 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1869.java b/uitest/src/com/vaadin/tests/tickets/Ticket1869.java
index 741adecae4..f704235178 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1869.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1869.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
@@ -7,7 +8,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1869 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1869 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1878.java b/uitest/src/com/vaadin/tests/tickets/Ticket1878.java
index 90a96ba0f1..3b53023084 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1878.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1878.java
@@ -27,7 +27,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1878 extends Application.LegacyApplication {
+public class Ticket1878 extends Application {
private Layout orderedLayout;
private Layout gridLayout;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1900.java b/uitest/src/com/vaadin/tests/tickets/Ticket1900.java
index 136af23474..d1bd127500 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1900.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1900.java
@@ -7,7 +7,7 @@ import com.vaadin.data.Validator;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1900 extends Application.LegacyApplication {
+public class Ticket1900 extends Application {
TextField f[] = new TextField[5];
LegacyWindow main = new LegacyWindow("#1900 test");
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1904.java b/uitest/src/com/vaadin/tests/tickets/Ticket1904.java
index f35463f6a8..5891831038 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1904.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1904.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1904 extends Application.LegacyApplication {
+public class Ticket1904 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1916.java b/uitest/src/com/vaadin/tests/tickets/Ticket1916.java
index 92102426ca..422b6e57d0 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1916.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1916.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1916 extends Application.LegacyApplication {
+public class Ticket1916 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1919.java b/uitest/src/com/vaadin/tests/tickets/Ticket1919.java
index 8e9e0cb0ba..ae7f44dc19 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1919.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1919.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Component;
@@ -7,7 +8,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1919 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1919 extends com.vaadin.Application {
private GridLayout lo;
private boolean on = true;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1921.java b/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
index ac5f990915..33be859fec 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
@@ -5,6 +5,7 @@ import java.util.Map;
import com.vaadin.Application;
import com.vaadin.server.RequestHandler;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
import com.vaadin.server.WrappedResponse;
import com.vaadin.ui.Button;
@@ -13,7 +14,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1921 extends Application.LegacyApplication implements
+public class Ticket1921 extends Application implements
RequestHandler {
int state = -1;
@@ -42,7 +43,7 @@ public class Ticket1921 extends Application.LegacyApplication implements
newState();
- addRequestHandler(this);
+ VaadinSession.getCurrent().addRequestHandler(this);
}
public void newState() {
@@ -94,7 +95,7 @@ public class Ticket1921 extends Application.LegacyApplication implements
}
@Override
- public boolean handleRequest(Application application,
+ public boolean handleRequest(VaadinSession application,
WrappedRequest request, WrappedResponse response)
throws IOException {
Map<String, String[]> parameters = request.getParameterMap();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1923.java b/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
index 2bde4c95ec..32c4adeff9 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
@@ -1,11 +1,12 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1923 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1923 extends com.vaadin.Application {
private static final int ROWS = 50;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1925.java b/uitest/src/com/vaadin/tests/tickets/Ticket1925.java
index b5d938dbed..8e0b65bb6e 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1925.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1925.java
@@ -3,7 +3,7 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1925 extends Application.LegacyApplication {
+public class Ticket1925 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1939.java b/uitest/src/com/vaadin/tests/tickets/Ticket1939.java
index f65fbf9852..ee349c79e1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1939.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1939.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1939 extends Application.LegacyApplication {
+public class Ticket1939 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1940.java b/uitest/src/com/vaadin/tests/tickets/Ticket1940.java
index 1a27e1ad28..5d5b9c4918 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1940.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1940.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1940 extends Application.LegacyApplication {
+public class Ticket1940 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1953.java b/uitest/src/com/vaadin/tests/tickets/Ticket1953.java
index 9bf4ddee51..8fd62b8a2b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1953.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1953.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1953 extends Application.LegacyApplication {
+public class Ticket1953 extends Application {
public static final String cellStyle = "test-cell";
public static final String colHeadStyle = "test-col-head";
public static final String headingStyle = "test-heading";
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1966.java b/uitest/src/com/vaadin/tests/tickets/Ticket1966.java
index 9440855bbe..ebd04a8857 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1966.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1966.java
@@ -12,7 +12,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1966 extends Application.LegacyApplication {
+public class Ticket1966 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1966_2.java b/uitest/src/com/vaadin/tests/tickets/Ticket1966_2.java
index c5442e6473..12b17a4601 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1966_2.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1966_2.java
@@ -12,7 +12,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1966_2 extends Application.LegacyApplication {
+public class Ticket1966_2 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java b/uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java
index 7258971f50..577ca463bc 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1966_3 extends Application.LegacyApplication {
+public class Ticket1966_3 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1969.java b/uitest/src/com/vaadin/tests/tickets/Ticket1969.java
index 78c09d8914..04cd11ce72 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1969.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1969.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.server.UserError;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Button;
@@ -10,7 +11,7 @@ import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1969 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1969 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1970.java b/uitest/src/com/vaadin/tests/tickets/Ticket1970.java
index b07a997f8f..839e9e683c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1970.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1970.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1970 extends Application.LegacyApplication {
+public class Ticket1970 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1972.java b/uitest/src/com/vaadin/tests/tickets/Ticket1972.java
index 6b406a2f89..0de827bfd2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1972.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1972.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1972 extends Application.LegacyApplication {
+public class Ticket1972 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1973.java b/uitest/src/com/vaadin/tests/tickets/Ticket1973.java
index a3365bedcb..b91d8dfee3 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1973.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1973.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Button;
@@ -8,7 +9,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1973 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1973 extends com.vaadin.Application {
LegacyWindow main = new LegacyWindow();
Table table = new Table();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java b/uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java
index 27c3d4a8a7..9ea740b546 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1973_2 extends Application.LegacyApplication {
+public class Ticket1973_2 extends Application {
LegacyWindow main = new LegacyWindow();
Table table = new Table();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1975.java b/uitest/src/com/vaadin/tests/tickets/Ticket1975.java
index e85fe294f2..93ecf4b6eb 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1975.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1975.java
@@ -5,15 +5,16 @@ import java.io.File;
import java.io.FileInputStream;
import com.vaadin.Application;
-import com.vaadin.server.ServletApplicationContext;
+import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
+import com.vaadin.util.CurrentInstance;
-public class Ticket1975 extends Application.LegacyApplication {
+public class Ticket1975 extends Application {
private CustomLayout cl1;
private CustomLayout cl2;
@@ -33,7 +34,6 @@ public class Ticket1975 extends Application.LegacyApplication {
try {
cl1 = new CustomLayout(new ByteArrayInputStream(s.getBytes()));
layout.addComponent(cl1);
- ServletApplicationContext wc = ((ServletApplicationContext) getContext());
layout.addComponent(new Button("Disable/Enable",
new ClickListener() {
@@ -47,8 +47,10 @@ public class Ticket1975 extends Application.LegacyApplication {
}
}));
- File f = new File(wc.getBaseDirectory().getAbsoluteFile()
- + "/VAADIN/themes/" + getTheme()
+ File baseDir = CurrentInstance.get(WrappedRequest.class)
+ .getDeploymentConfiguration().getBaseDirectory()
+ .getAbsoluteFile();
+ File f = new File(baseDir + "/VAADIN/themes/" + getTheme()
+ "/layouts/Ticket1975.html");
cl2 = new CustomLayout(new FileInputStream(f));
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1982.java b/uitest/src/com/vaadin/tests/tickets/Ticket1982.java
index a5953d22af..433dce1bfb 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1982.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1982.java
@@ -12,7 +12,7 @@ import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1982 extends Application.LegacyApplication {
+public class Ticket1982 extends Application {
private List<TitleBar> components = new ArrayList<TitleBar>();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1983.java b/uitest/src/com/vaadin/tests/tickets/Ticket1983.java
index 7b544ec9b0..2e38c7c1b1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1983.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1983.java
@@ -16,7 +16,7 @@ import com.vaadin.ui.VerticalLayout;
/**
* Test class for ticket 1983
*/
-public class Ticket1983 extends Application.LegacyApplication {
+public class Ticket1983 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1986.java b/uitest/src/com/vaadin/tests/tickets/Ticket1986.java
index fd6665b2fe..dc452e1664 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1986.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1986.java
@@ -12,7 +12,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.TwinColSelect;
-public class Ticket1986 extends Application.LegacyApplication {
+public class Ticket1986 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1991.java b/uitest/src/com/vaadin/tests/tickets/Ticket1991.java
index ed60c89c16..ef3b4c73e8 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1991.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1991.java
@@ -1,10 +1,11 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket1991 extends com.vaadin.Application.LegacyApplication {
+public class Ticket1991 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1995.java b/uitest/src/com/vaadin/tests/tickets/Ticket1995.java
index 04ce9c712d..cf628ad806 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1995.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1995.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket1995 extends Application.LegacyApplication {
+public class Ticket1995 extends Application {
private static final Object PROPERTY_1 = "Test";
private Table table;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket20.java b/uitest/src/com/vaadin/tests/tickets/Ticket20.java
index ea610a3db8..e8ea84c96d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket20.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket20.java
@@ -11,7 +11,7 @@ import com.vaadin.ui.CheckBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket20 extends Application.LegacyApplication {
+public class Ticket20 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2001.java b/uitest/src/com/vaadin/tests/tickets/Ticket2001.java
index 8ff3d952c4..447d0e671c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2001.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2001.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2001 extends Application.LegacyApplication {
+public class Ticket2001 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2002.java b/uitest/src/com/vaadin/tests/tickets/Ticket2002.java
index aeaf3bfb33..148d7e67ef 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2002.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2002.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2002 extends Application.LegacyApplication {
+public class Ticket2002 extends Application {
private Long long1 = new Long(1L);
private Long long2 = new Long(2L);
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2007.java b/uitest/src/com/vaadin/tests/tickets/Ticket2007.java
index fcffbc01bf..4b64cc33d2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2007.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2007.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2007 extends Application.LegacyApplication {
+public class Ticket2007 extends Application {
int childs = 0;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2009.java b/uitest/src/com/vaadin/tests/tickets/Ticket2009.java
index e79ec8905e..a3517fdf76 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2009.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2009.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.event.ItemClickEvent;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
@@ -15,7 +16,7 @@ import com.vaadin.ui.Tree;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2009 extends com.vaadin.Application.LegacyApplication {
+public class Ticket2009 extends com.vaadin.Application {
TextField f = new TextField();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2011.java b/uitest/src/com/vaadin/tests/tickets/Ticket2011.java
index 754036cd5b..65634de549 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2011.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2011.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
-public class Ticket2011 extends Application.LegacyApplication {
+public class Ticket2011 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2014.java b/uitest/src/com/vaadin/tests/tickets/Ticket2014.java
index bf909acb35..bf05b8bb14 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2014.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2014.java
@@ -11,7 +11,7 @@ import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2014 extends Application.LegacyApplication {
+public class Ticket2014 extends Application {
private HorizontalLayout innerLayout1;
private Button b1;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2021.java b/uitest/src/com/vaadin/tests/tickets/Ticket2021.java
index c23f031a91..8ebf41bbe4 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2021.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2021.java
@@ -15,7 +15,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2021 extends Application.LegacyApplication {
+public class Ticket2021 extends Application {
private TextArea tf1, tf2, tf3;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2022.java b/uitest/src/com/vaadin/tests/tickets/Ticket2022.java
index ea142b7e9e..523e1b7f7d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2022.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2022.java
@@ -4,7 +4,7 @@ import com.vaadin.Application;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2022 extends Application.LegacyApplication {
+public class Ticket2022 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2023.java b/uitest/src/com/vaadin/tests/tickets/Ticket2023.java
index c6b2c0f28a..a336f18428 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2023.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2023.java
@@ -1,12 +1,13 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2023 extends com.vaadin.Application.LegacyApplication
+public class Ticket2023 extends com.vaadin.Application
implements Button.ClickListener {
AbstractComponent c = new Button();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2024.java b/uitest/src/com/vaadin/tests/tickets/Ticket2024.java
index b1a8b64931..4ef8c2fa89 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2024.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2024.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2024 extends Application.LegacyApplication {
+public class Ticket2024 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2026.java b/uitest/src/com/vaadin/tests/tickets/Ticket2026.java
index 0b72073bec..9528f2c56b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2026.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2026.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2026 extends Application.LegacyApplication {
+public class Ticket2026 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2029.java b/uitest/src/com/vaadin/tests/tickets/Ticket2029.java
index 5900c76706..bf11aa312a 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2029.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2029.java
@@ -16,7 +16,7 @@ import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2029 extends Application.LegacyApplication {
+public class Ticket2029 extends Application {
int COMPONENTS;
int DIM1, DIM2;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2037.java b/uitest/src/com/vaadin/tests/tickets/Ticket2037.java
index da47f796a5..f39e6a2845 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2037.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2037.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
@@ -7,7 +8,7 @@ import com.vaadin.ui.Layout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2037 extends com.vaadin.Application.LegacyApplication {
+public class Ticket2037 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2038.java b/uitest/src/com/vaadin/tests/tickets/Ticket2038.java
index c4714783a0..db01fae34f 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2038.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2038.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Notification;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2038 extends Application.LegacyApplication {
+public class Ticket2038 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2040.java b/uitest/src/com/vaadin/tests/tickets/Ticket2040.java
index a7ca7b179f..2c30f666dc 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2040.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2040.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout.MarginHandler;
@@ -7,7 +8,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
-public class Ticket2040 extends com.vaadin.Application.LegacyApplication {
+public class Ticket2040 extends com.vaadin.Application {
TextField f = new TextField();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2042.java b/uitest/src/com/vaadin/tests/tickets/Ticket2042.java
index 49e999a601..2cb9e103d6 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2042.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2042.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Notification;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2042 extends Application.LegacyApplication {
+public class Ticket2042 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2043.java b/uitest/src/com/vaadin/tests/tickets/Ticket2043.java
index 8a10067455..84e7167164 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2043.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2043.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2043 extends Application.LegacyApplication {
+public class Ticket2043 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2048.java b/uitest/src/com/vaadin/tests/tickets/Ticket2048.java
index 5ac0480fe2..4d9454341a 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2048.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2048.java
@@ -13,7 +13,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2048 extends Application.LegacyApplication {
+public class Ticket2048 extends Application {
private Embedded embedded;
private Panel p;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2051.java b/uitest/src/com/vaadin/tests/tickets/Ticket2051.java
index 1660f00d88..b1c2666808 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2051.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2051.java
@@ -11,7 +11,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket2051 extends Application.LegacyApplication {
+public class Ticket2051 extends Application {
private static final Object P1 = new Object();
private static final Object P2 = new Object();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2053.java b/uitest/src/com/vaadin/tests/tickets/Ticket2053.java
index 31973e4c92..33c1313e20 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2053.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2053.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2053 extends Application.LegacyApplication {
+public class Ticket2053 extends Application {
int childs = 0;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2060.java b/uitest/src/com/vaadin/tests/tickets/Ticket2060.java
index c9e91930bf..de5f44d0e8 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2060.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2060.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2060 extends Application.LegacyApplication {
+public class Ticket2060 extends Application {
private Button button1;
private Button button2;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2061.java b/uitest/src/com/vaadin/tests/tickets/Ticket2061.java
index 4d6549bfbf..54f1d22a45 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2061.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2061.java
@@ -13,7 +13,7 @@ import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2061 extends Application.LegacyApplication {
+public class Ticket2061 extends Application {
private LegacyWindow mainWindow;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2061b.java b/uitest/src/com/vaadin/tests/tickets/Ticket2061b.java
index 87d92ad9f6..402b1c195c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2061b.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2061b.java
@@ -21,7 +21,7 @@ import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
-public class Ticket2061b extends Application.LegacyApplication implements
+public class Ticket2061b extends Application implements
SelectedTabChangeListener {
private LegacyWindow mainWindow;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2061c.java b/uitest/src/com/vaadin/tests/tickets/Ticket2061c.java
index 5cb041788b..14f1a3b6ea 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2061c.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2061c.java
@@ -17,7 +17,7 @@ import com.vaadin.ui.TabSheet.SelectedTabChangeListener;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2061c extends Application.LegacyApplication implements
+public class Ticket2061c extends Application implements
SelectedTabChangeListener {
private LegacyWindow mainWindow;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2062.java b/uitest/src/com/vaadin/tests/tickets/Ticket2062.java
index 9b2fe05514..24122b7dee 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2062.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2062.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket2062 extends Application.LegacyApplication {
+public class Ticket2062 extends Application {
private static final Object P1 = new Object();
@Override
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2083.java b/uitest/src/com/vaadin/tests/tickets/Ticket2083.java
index 87bea00023..69583ce367 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2083.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2083.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2083 extends Application.LegacyApplication {
+public class Ticket2083 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2090.java b/uitest/src/com/vaadin/tests/tickets/Ticket2090.java
index 2f311b9428..786d922973 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2090.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2090.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2090 extends Application.LegacyApplication {
+public class Ticket2090 extends Application {
Label label = new Label();
Button target = new Button();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2095.java b/uitest/src/com/vaadin/tests/tickets/Ticket2095.java
index 53f2aac79e..c0152a1fc9 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2095.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2095.java
@@ -5,7 +5,7 @@ import com.vaadin.server.ExternalResource;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2095 extends Application.LegacyApplication {
+public class Ticket2095 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2098.java b/uitest/src/com/vaadin/tests/tickets/Ticket2098.java
index a8a3e22d2b..a4ba5b0595 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2098.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2098.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
-public class Ticket2098 extends Application.LegacyApplication {
+public class Ticket2098 extends Application {
private static final String info = "First tab hidden, second should initially be selected";
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2099.java b/uitest/src/com/vaadin/tests/tickets/Ticket2099.java
index 2bba0504a5..f5e36a1650 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2099.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2099.java
@@ -11,7 +11,7 @@ import com.vaadin.ui.TabSheet;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2099 extends Application.LegacyApplication {
+public class Ticket2099 extends Application {
private Label l1, l2, l3;
private VerticalLayout ol1, ol2, ol3;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2101.java b/uitest/src/com/vaadin/tests/tickets/Ticket2101.java
index c29eaaf453..c38e4b6ed2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2101.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2101.java
@@ -4,7 +4,7 @@ import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2101 extends Application.LegacyApplication {
+public class Ticket2101 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2103.java b/uitest/src/com/vaadin/tests/tickets/Ticket2103.java
index 576fe03d87..7dc7d7bf95 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2103.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2103.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2103 extends Application.LegacyApplication {
+public class Ticket2103 extends Application {
private LegacyWindow mainWindow;
@Override
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2104.java b/uitest/src/com/vaadin/tests/tickets/Ticket2104.java
index 0dba639712..f3fb936c9a 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2104.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2104.java
@@ -15,7 +15,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.Tree;
-public class Ticket2104 extends Application.LegacyApplication {
+public class Ticket2104 extends Application {
private static final Label info = new Label(
"Click event should _always_ come trough. Switching features on/off should immediatly affect the tree (verify w/ debug window)",
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2106.java b/uitest/src/com/vaadin/tests/tickets/Ticket2106.java
index a57a20cdc3..f509a082e1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2106.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2106.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2106 extends Application.LegacyApplication {
+public class Ticket2106 extends Application {
private static CustomizedSystemMessages msgs = new CustomizedSystemMessages();
static {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2107.java b/uitest/src/com/vaadin/tests/tickets/Ticket2107.java
index 37d570546b..c6dd33fdd9 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2107.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2107.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Notification;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2107 extends Application.LegacyApplication {
+public class Ticket2107 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2117.java b/uitest/src/com/vaadin/tests/tickets/Ticket2117.java
index fb0d62ba85..e4365c3edb 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2117.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2117.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2117 extends Application.LegacyApplication {
+public class Ticket2117 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2119.java b/uitest/src/com/vaadin/tests/tickets/Ticket2119.java
index 38cc567295..9c02eef318 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2119.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2119.java
@@ -15,7 +15,7 @@ import com.vaadin.ui.VerticalLayout;
/**
* Test case for Ticket 2119.
*/
-public class Ticket2119 extends Application.LegacyApplication {
+public class Ticket2119 extends Application {
private ObjectProperty<String> globalValue;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2125.java b/uitest/src/com/vaadin/tests/tickets/Ticket2125.java
index defd7f4a22..8b65bc6b0d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2125.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2125.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Table.CellStyleGenerator;
import com.vaadin.ui.Table.ColumnGenerator;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2125 extends Application.LegacyApplication {
+public class Ticket2125 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2126.java b/uitest/src/com/vaadin/tests/tickets/Ticket2126.java
index d49c73ea5f..02644d8a67 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2126.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2126.java
@@ -1,5 +1,6 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Button;
@@ -14,7 +15,7 @@ import com.vaadin.ui.Table;
* client.
*
*/
-public class Ticket2126 extends com.vaadin.Application.LegacyApplication {
+public class Ticket2126 extends com.vaadin.Application {
LegacyWindow main = new LegacyWindow();
Table table = new Table();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2151.java b/uitest/src/com/vaadin/tests/tickets/Ticket2151.java
index 721bdf3c9f..13611bf16c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2151.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2151.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2151 extends Application.LegacyApplication {
+public class Ticket2151 extends Application {
private Label status;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2157.java b/uitest/src/com/vaadin/tests/tickets/Ticket2157.java
index b8f75fc279..423183bddf 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2157.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2157.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2157 extends Application.LegacyApplication {
+public class Ticket2157 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2178.java b/uitest/src/com/vaadin/tests/tickets/Ticket2178.java
index e64db69ced..33b5177935 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2178.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2178.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2178 extends Application.LegacyApplication {
+public class Ticket2178 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2179.java b/uitest/src/com/vaadin/tests/tickets/Ticket2179.java
index 622488dc0f..9894baa00b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2179.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2179.java
@@ -7,7 +7,7 @@ import com.vaadin.data.Validator;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2179 extends Application.LegacyApplication {
+public class Ticket2179 extends Application {
TextField f = new TextField("Test fiel ( must contain 1 & 2 )");
LegacyWindow main = new LegacyWindow("Dual validator test");
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2180.java b/uitest/src/com/vaadin/tests/tickets/Ticket2180.java
index fb9332d100..4de46eff3a 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2180.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2180.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
-public class Ticket2180 extends Application.LegacyApplication {
+public class Ticket2180 extends Application {
private LegacyWindow mainWindow;
private TabSheet tabSheet;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2181.java b/uitest/src/com/vaadin/tests/tickets/Ticket2181.java
index b67fad52c0..cc9fa442c9 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2181.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2181.java
@@ -16,7 +16,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2181 extends Application.LegacyApplication implements
+public class Ticket2181 extends Application implements
Button.ClickListener {
// private static final Object PROPERTY_VALUE = new Object();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2186.java b/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
index 50b8a1f113..ed1873b9f8 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2186 extends Application.LegacyApplication {
+public class Ticket2186 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2204.java b/uitest/src/com/vaadin/tests/tickets/Ticket2204.java
index 24c4d6e8b9..f7116348fd 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2204.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2204.java
@@ -31,7 +31,7 @@ import com.vaadin.ui.TabSheet;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
-public class Ticket2204 extends Application.LegacyApplication {
+public class Ticket2204 extends Application {
private final List<RichTextArea> textAreas = new ArrayList<RichTextArea>();
private TabSheet ts;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2208.java b/uitest/src/com/vaadin/tests/tickets/Ticket2208.java
index 98cd6724d4..c8c1eba9d7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2208.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2208.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Table.CellStyleGenerator;
import com.vaadin.ui.Table.ColumnGenerator;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2208 extends Application.LegacyApplication {
+public class Ticket2208 extends Application {
private Table t;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2209.java b/uitest/src/com/vaadin/tests/tickets/Ticket2209.java
index ecad9a950a..9e84b82a0f 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2209.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2209.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2209 extends Application.LegacyApplication {
+public class Ticket2209 extends Application {
private GridLayout gl;
private ComboBox combo;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2209OL.java b/uitest/src/com/vaadin/tests/tickets/Ticket2209OL.java
index 6eec0a7704..76ce659370 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2209OL.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2209OL.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2209OL extends Application.LegacyApplication {
+public class Ticket2209OL extends Application {
private VerticalLayout gl;
private ComboBox combo;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2209OL2.java b/uitest/src/com/vaadin/tests/tickets/Ticket2209OL2.java
index 7f4082d0f8..63947d91fb 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2209OL2.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2209OL2.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2209OL2 extends Application.LegacyApplication {
+public class Ticket2209OL2 extends Application {
private VerticalLayout gl;
private ComboBox combo;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2215.java b/uitest/src/com/vaadin/tests/tickets/Ticket2215.java
index f7099d88f4..1a9e4382d7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2215.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2215.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket2215 extends Application.LegacyApplication {
+public class Ticket2215 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2221.java b/uitest/src/com/vaadin/tests/tickets/Ticket2221.java
index e3f1516fb8..4677995119 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2221.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2221.java
@@ -13,7 +13,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2221 extends Application.LegacyApplication {
+public class Ticket2221 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2222.java b/uitest/src/com/vaadin/tests/tickets/Ticket2222.java
index 14024fda8b..c0b56f14c2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2222.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2222.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2222 extends Application.LegacyApplication {
+public class Ticket2222 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java b/uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java
index f9c670708e..56bdc7782d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
public class Ticket2227OrderedlayoutInTable extends
- Application.LegacyApplication {
+ Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2231.java b/uitest/src/com/vaadin/tests/tickets/Ticket2231.java
index 21994bff60..c26c08c0bd 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2231.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2231.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2231 extends Application.LegacyApplication {
+public class Ticket2231 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2232.java b/uitest/src/com/vaadin/tests/tickets/Ticket2232.java
index d71134696f..48b4765c0a 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2232.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2232.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Layout.SpacingHandler;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2232 extends Application.LegacyApplication {
+public class Ticket2232 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2234.java b/uitest/src/com/vaadin/tests/tickets/Ticket2234.java
index ccda59bb6a..a66164043a 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2234.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2234.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2234 extends Application.LegacyApplication {
+public class Ticket2234 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2235.java b/uitest/src/com/vaadin/tests/tickets/Ticket2235.java
index fba82956e0..9126b9916b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2235.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2235.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
-public class Ticket2235 extends Application.LegacyApplication {
+public class Ticket2235 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2240.java b/uitest/src/com/vaadin/tests/tickets/Ticket2240.java
index bb16a40cd7..5f9a005af0 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2240.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2240.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2240 extends Application.LegacyApplication {
+public class Ticket2240 extends Application {
public static final String txt = "<p>There are two main types of windows: application-level windows, and "
+ "\"sub windows\".</p><p>A sub window is rendered as a \"inline\" popup window"
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2242.java b/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
index 77fbfefe1a..e49920a4d1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
@@ -13,7 +13,7 @@ import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2242 extends Application.LegacyApplication implements
+public class Ticket2242 extends Application implements
ValueChangeListener {
private Object tableValue = null;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2244.java b/uitest/src/com/vaadin/tests/tickets/Ticket2244.java
index 495e3de26a..e65e826a53 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2244.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2244.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2244 extends Application.LegacyApplication {
+public class Ticket2244 extends Application {
Form form;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2245.java b/uitest/src/com/vaadin/tests/tickets/Ticket2245.java
index ab474fe6f7..c62ccd0395 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2245.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2245.java
@@ -4,7 +4,7 @@ import com.vaadin.Application;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2245 extends Application.LegacyApplication {
+public class Ticket2245 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2267.java b/uitest/src/com/vaadin/tests/tickets/Ticket2267.java
index 41843a9742..0cedac4490 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2267.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2267.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2267 extends Application.LegacyApplication {
+public class Ticket2267 extends Application {
Label l = new Label("0");
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2271.java b/uitest/src/com/vaadin/tests/tickets/Ticket2271.java
index 91fb51034b..c784385e93 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2271.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2271.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2271 extends Application.LegacyApplication {
+public class Ticket2271 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2282.java b/uitest/src/com/vaadin/tests/tickets/Ticket2282.java
index 976b06fe32..b805f2403c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2282.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2282.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.FormLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2282 extends Application.LegacyApplication {
+public class Ticket2282 extends Application {
private FormLayout layout1;
private FormLayout layout2;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2283.java b/uitest/src/com/vaadin/tests/tickets/Ticket2283.java
index 5576e48fba..3a174bf9cf 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2283.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2283.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2283 extends Application.LegacyApplication {
+public class Ticket2283 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2289.java b/uitest/src/com/vaadin/tests/tickets/Ticket2289.java
index c715fafd74..fc7e5feadf 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2289.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2289.java
@@ -11,7 +11,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2289 extends Application.LegacyApplication {
+public class Ticket2289 extends Application {
TabSheet ts = null;
Accordion acc = null;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
index ce7960a169..adafa93a75 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
@@ -13,6 +13,7 @@ import com.vaadin.Application;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
import com.vaadin.server.WrappedResponse;
import com.vaadin.ui.Button;
@@ -21,7 +22,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2292 extends com.vaadin.Application.LegacyApplication
+public class Ticket2292 extends com.vaadin.Application
implements RequestHandler {
@Override
@@ -44,11 +45,11 @@ public class Ticket2292 extends com.vaadin.Application.LegacyApplication
Link l = new Link("l", icon);
main.addComponent(l);
- addRequestHandler(this);
+ VaadinSession.getCurrent().addRequestHandler(this);
}
@Override
- public boolean handleRequest(Application application,
+ public boolean handleRequest(VaadinSession application,
WrappedRequest request, WrappedResponse response)
throws IOException {
String relativeUri = request.getRequestPathInfo();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2294.java b/uitest/src/com/vaadin/tests/tickets/Ticket2294.java
index 053534191b..e8b36596fc 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2294.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2294.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Alignment;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2294 extends Application.LegacyApplication {
+public class Ticket2294 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2296.java b/uitest/src/com/vaadin/tests/tickets/Ticket2296.java
index d059b96953..d274151b63 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2296.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2296.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2296 extends Application.LegacyApplication {
+public class Ticket2296 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2303.java b/uitest/src/com/vaadin/tests/tickets/Ticket2303.java
index fb1c5440ad..b32828abfb 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2303.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2303.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2303 extends Application.LegacyApplication {
+public class Ticket2303 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2304.java b/uitest/src/com/vaadin/tests/tickets/Ticket2304.java
index ccef7a9a92..6d404643aa 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2304.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2304.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket2304 extends Application.LegacyApplication {
+public class Ticket2304 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2310.java b/uitest/src/com/vaadin/tests/tickets/Ticket2310.java
index 24fbd7a968..f66b5dcc18 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2310.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2310.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket2310 extends Application.LegacyApplication {
+public class Ticket2310 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2319.java b/uitest/src/com/vaadin/tests/tickets/Ticket2319.java
index 438d2ff286..bb0ceb5629 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2319.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2319.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
-public class Ticket2319 extends Application.LegacyApplication {
+public class Ticket2319 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2323.java b/uitest/src/com/vaadin/tests/tickets/Ticket2323.java
index d7b8db86bd..db33c6f6a6 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2323.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2323.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.RichTextArea;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class Ticket2323 extends Application.LegacyApplication {
+public class Ticket2323 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2325.java b/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
index ecc897d4ba..cd8239d542 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.TextArea;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2325 extends Application.LegacyApplication {
+public class Ticket2325 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2329.java b/uitest/src/com/vaadin/tests/tickets/Ticket2329.java
index 2ce42376f9..c575aebb32 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2329.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2329.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Table;
import com.vaadin.ui.Table.ColumnGenerator;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2329 extends Application.LegacyApplication {
+public class Ticket2329 extends Application {
private Table table;
private VerticalLayout mainLo;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2337.java b/uitest/src/com/vaadin/tests/tickets/Ticket2337.java
index 3ac381b2d1..cc99796588 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2337.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2337.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2337 extends Application.LegacyApplication {
+public class Ticket2337 extends Application {
GridLayout gl = new GridLayout(3, 1);
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2339.java b/uitest/src/com/vaadin/tests/tickets/Ticket2339.java
index ce884bada7..fb535cbce7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2339.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2339.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2339 extends Application.LegacyApplication {
+public class Ticket2339 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2341.java b/uitest/src/com/vaadin/tests/tickets/Ticket2341.java
index aa2eefcb7e..3e4d739413 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2341.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2341.java
@@ -1,12 +1,13 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2341 extends com.vaadin.Application.LegacyApplication {
+public class Ticket2341 extends com.vaadin.Application {
@Override
public void init() {
LegacyWindow main = new LegacyWindow();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2344.java b/uitest/src/com/vaadin/tests/tickets/Ticket2344.java
index befad78a73..ffc91c60d7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2344.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2344.java
@@ -9,7 +9,7 @@ import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.BaseTheme;
-public class Ticket2344 extends Application.LegacyApplication {
+public class Ticket2344 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2347.java b/uitest/src/com/vaadin/tests/tickets/Ticket2347.java
index 582b9a95ee..2aa3eccc32 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2347.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2347.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2347 extends Application.LegacyApplication {
+public class Ticket2347 extends Application {
private Button b1;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2364.java b/uitest/src/com/vaadin/tests/tickets/Ticket2364.java
index f7d6f61110..e37ed6e782 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2364.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2364.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2364 extends Application.LegacyApplication {
+public class Ticket2364 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2365.java b/uitest/src/com/vaadin/tests/tickets/Ticket2365.java
index b191901356..b2737ed3aa 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2365.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2365.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2365 extends Application.LegacyApplication {
+public class Ticket2365 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2398.java b/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
index f5b68800e6..276006ef5b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2398 extends Application.LegacyApplication {
+public class Ticket2398 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2404.java b/uitest/src/com/vaadin/tests/tickets/Ticket2404.java
index 30f9d04d3b..8b86c6b0b5 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2404.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2404.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2404 extends Application.LegacyApplication {
+public class Ticket2404 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2405.java b/uitest/src/com/vaadin/tests/tickets/Ticket2405.java
index 8be6a13e9f..e36d3e24a4 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2405.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2405.java
@@ -13,7 +13,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2405 extends Application.LegacyApplication {
+public class Ticket2405 extends Application {
private Label label;
private HorizontalSplitPanel split;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2406.java b/uitest/src/com/vaadin/tests/tickets/Ticket2406.java
index dd42727591..c14c655cd1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2406.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2406.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2406 extends Application.LegacyApplication {
+public class Ticket2406 extends Application {
private Window w;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2407.java b/uitest/src/com/vaadin/tests/tickets/Ticket2407.java
index df2ae47acd..6f9c3c9ac8 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2407.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2407.java
@@ -1,11 +1,12 @@
package com.vaadin.tests.tickets;
+import com.vaadin.Application;
import com.vaadin.ui.Form;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2407 extends com.vaadin.Application.LegacyApplication {
+public class Ticket2407 extends com.vaadin.Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2411.java b/uitest/src/com/vaadin/tests/tickets/Ticket2411.java
index 2c59493e0c..a73b7fab95 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2411.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2411.java
@@ -5,7 +5,7 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2411 extends Application.LegacyApplication {
+public class Ticket2411 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2415.java b/uitest/src/com/vaadin/tests/tickets/Ticket2415.java
index f52c1b1ccc..f58fa51b6d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2415.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2415.java
@@ -6,7 +6,7 @@ import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2415 extends Application.LegacyApplication {
+public class Ticket2415 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2420.java b/uitest/src/com/vaadin/tests/tickets/Ticket2420.java
index 5d15107053..bc14a7291f 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2420.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2420.java
@@ -4,7 +4,7 @@ import com.vaadin.Application;
import com.vaadin.ui.ProgressIndicator;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2420 extends Application.LegacyApplication {
+public class Ticket2420 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2425.java b/uitest/src/com/vaadin/tests/tickets/Ticket2425.java
index 140fa6f2b6..47127c4b55 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2425.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2425.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
-public class Ticket2425 extends Application.LegacyApplication {
+public class Ticket2425 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2426.java b/uitest/src/com/vaadin/tests/tickets/Ticket2426.java
index fee74b73f7..b48d8164c9 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2426.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2426.java
@@ -5,7 +5,7 @@ import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2426 extends Application.LegacyApplication {
+public class Ticket2426 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2431.java b/uitest/src/com/vaadin/tests/tickets/Ticket2431.java
index cb9eb449bf..4bf17c9668 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2431.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2431.java
@@ -9,7 +9,7 @@ import com.vaadin.event.ShortcutAction.ModifierKey;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2431 extends Application.LegacyApplication {
+public class Ticket2431 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2432.java b/uitest/src/com/vaadin/tests/tickets/Ticket2432.java
index f21e6a6752..d741902619 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2432.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2432.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Layout.AlignmentHandler;
import com.vaadin.ui.Layout.SpacingHandler;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2432 extends Application.LegacyApplication {
+public class Ticket2432 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2434.java b/uitest/src/com/vaadin/tests/tickets/Ticket2434.java
index 6401a98763..2c7a26f44f 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2434.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2434.java
@@ -5,7 +5,7 @@ import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2434 extends Application.LegacyApplication {
+public class Ticket2434 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2436.java b/uitest/src/com/vaadin/tests/tickets/Ticket2436.java
index 5367c24b01..bbda394f65 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2436.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2436.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Component;
import com.vaadin.ui.PopupView;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2436 extends Application.LegacyApplication {
+public class Ticket2436 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2526.java b/uitest/src/com/vaadin/tests/tickets/Ticket2526.java
index 998fe75f8c..a61d012f43 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2526.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2526.java
@@ -6,7 +6,7 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class Ticket2526 extends Application.LegacyApplication {
+public class Ticket2526 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2742.java b/uitest/src/com/vaadin/tests/tickets/Ticket2742.java
index 733f6ac6f6..0947d68c9c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2742.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2742.java
@@ -12,7 +12,7 @@ import com.vaadin.ui.UI.LegacyWindow;
* @author Risto Yrjänä / Vaadin Ltd.
*
*/
-public class Ticket2742 extends Application.LegacyApplication {
+public class Ticket2742 extends Application {
/*
* (non-Javadoc)
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2901.java b/uitest/src/com/vaadin/tests/tickets/Ticket2901.java
index c4352abefe..63464617da 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2901.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2901.java
@@ -11,7 +11,7 @@ import com.vaadin.ui.VerticalSplitPanel;
* properly. Scrollbars will disappear if "shaking" content a bit, like
* selecting tests in area.
*/
-public class Ticket2901 extends Application.LegacyApplication {
+public class Ticket2901 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2998.java b/uitest/src/com/vaadin/tests/tickets/Ticket2998.java
index 0cd43533fd..0646d1bed3 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2998.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2998.java
@@ -38,7 +38,7 @@ import com.vaadin.ui.themes.Reindeer;
*
* Other browsers are much faster.
*/
-public class Ticket2998 extends Application.LegacyApplication {
+public class Ticket2998 extends Application {
private Table table;
private VerticalLayout mainLayout;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket3146.java b/uitest/src/com/vaadin/tests/tickets/Ticket3146.java
index 7973ffa496..f82400a3b7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket3146.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket3146.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket3146 extends Application.LegacyApplication {
+public class Ticket3146 extends Application {
Table table;
TextField result;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket34.java b/uitest/src/com/vaadin/tests/tickets/Ticket34.java
index fd5e9c6005..da4cf3ce5c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket34.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket34.java
@@ -15,7 +15,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket34 extends Application.LegacyApplication {
+public class Ticket34 extends Application {
private Map<String, Component> views = new HashMap<String, Component>();
private VerticalLayout mainLayout;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket5053.java b/uitest/src/com/vaadin/tests/tickets/Ticket5053.java
index 6f8ade15c4..e263bf66fd 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket5053.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket5053.java
@@ -7,7 +7,7 @@ import com.vaadin.ui.UI.LegacyWindow;
/**
* #5053: Last ComboBox item may not be shown if null selection enabled
*/
-public class Ticket5053 extends Application.LegacyApplication {
+public class Ticket5053 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket5157.java b/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
index 3102a0a56c..f169431341 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
@@ -14,7 +14,7 @@ import com.vaadin.ui.TextField;
* Therefore, registering e.g. F8 as a key code resulted in "w" being used as
* the trigger and F8 being ignored.
*/
-public class Ticket5157 extends Application.LegacyApplication {
+public class Ticket5157 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket5952.java b/uitest/src/com/vaadin/tests/tickets/Ticket5952.java
index 92cd0290d6..7af3da6990 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket5952.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket5952.java
@@ -5,7 +5,7 @@ import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket5952 extends Application.LegacyApplication {
+public class Ticket5952 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket677.java b/uitest/src/com/vaadin/tests/tickets/Ticket677.java
index 1c66f67ca1..1d95f3945f 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket677.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket677.java
@@ -21,7 +21,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket677 extends Application.LegacyApplication {
+public class Ticket677 extends Application {
private static final Label info = new Label(
"<li> keep debug window open to see variable changes"
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket695.java b/uitest/src/com/vaadin/tests/tickets/Ticket695.java
index e539f999b3..68031b1fbd 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket695.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket695.java
@@ -10,7 +10,7 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
@SuppressWarnings("serial")
-public class Ticket695 extends Application.LegacyApplication {
+public class Ticket695 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket736.java b/uitest/src/com/vaadin/tests/tickets/Ticket736.java
index 417ee86fac..72137500dd 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket736.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket736.java
@@ -17,7 +17,7 @@ import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket736 extends Application.LegacyApplication {
+public class Ticket736 extends Application {
Address address = new Address();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket846.java b/uitest/src/com/vaadin/tests/tickets/Ticket846.java
index 407663c6c6..a8170148a2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket846.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket846.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.CheckBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket846 extends Application.LegacyApplication {
+public class Ticket846 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket932.java b/uitest/src/com/vaadin/tests/tickets/Ticket932.java
index c12e2fcad3..3c5332ff01 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket932.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket932.java
@@ -8,7 +8,7 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
-public class Ticket932 extends Application.LegacyApplication {
+public class Ticket932 extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/util/SampleDirectory.java b/uitest/src/com/vaadin/tests/util/SampleDirectory.java
index ef20da788d..be98de67cc 100644
--- a/uitest/src/com/vaadin/tests/util/SampleDirectory.java
+++ b/uitest/src/com/vaadin/tests/util/SampleDirectory.java
@@ -18,12 +18,14 @@ package com.vaadin.tests.util;
import java.io.File;
-import com.vaadin.Application;
import com.vaadin.server.SystemError;
+import com.vaadin.server.VaadinSession;
+import com.vaadin.server.WrappedRequest;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI;
+import com.vaadin.util.CurrentInstance;
/**
* Provides sample directory based on application directory. If this fails then
@@ -41,19 +43,22 @@ public class SampleDirectory {
* @param application
* @return file pointing to sample directory
*/
- public static File getDirectory(Application application, UI uI) {
+ public static File getDirectory(VaadinSession application, UI uI) {
String errorMessage = "Access to application "
+ "context base directory failed, "
+ "possible security constraint with Application "
+ "Server or Servlet Container.<br />";
- File file = application.getContext().getBaseDirectory();
+ File file = CurrentInstance.get(WrappedRequest.class)
+ .getDeploymentConfiguration().getBaseDirectory();
if ((file == null) || (!file.canRead())
|| (file.getAbsolutePath() == null)) {
// cannot access example directory, possible security issue with
// Application Server or Servlet Container
// Try to read sample directory from web.xml parameter
- if (application.getProperty("sampleDirectory") != null) {
- file = new File(application.getProperty("sampleDirectory"));
+ String sampleDirProperty = application.getConfiguration()
+ .getInitParameters().getProperty("sampleDirectory");
+ if (sampleDirProperty != null) {
+ file = new File(sampleDirProperty);
if ((file != null) && (file.canRead())
&& (file.getAbsolutePath() != null)) {
// Success using property
@@ -61,7 +66,7 @@ public class SampleDirectory {
}
// Failure using property
errorMessage += "Failed also to access sample directory <b>["
- + application.getProperty("sampleDirectory")
+ + sampleDirProperty
+ "]</b> defined in <b>sampleDirectory property</b>.";
} else {
// Failure using application context base dir, no property set