From f779e3601eeff93e1094411eb73ff45ce51b1352 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Dahlstr=C3=B6m?= Date: Tue, 28 Aug 2012 12:12:47 +0300 Subject: [PATCH] Revert "Rename registerProvider, unregisterProvider to addProvider and removeProvider for consistency (#9416)" Accidentally committed wrong hunks This reverts commit b53f5dddf13ba28385e9853c57d5d3074832a6be. --- server/src/com/vaadin/navigator/Navigator.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/server/src/com/vaadin/navigator/Navigator.java b/server/src/com/vaadin/navigator/Navigator.java index b39b98e9fa..9a937d5750 100644 --- a/server/src/com/vaadin/navigator/Navigator.java +++ b/server/src/com/vaadin/navigator/Navigator.java @@ -1,7 +1,7 @@ package com.vaadin.navigator; /* - * Copyright 2011 Vaadin Ltd. + * Copyright 2011 Vaadin Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of @@ -67,7 +67,7 @@ public class Navigator implements Serializable { } @Override - public void enter(String fragmentParameters) { + public void navigateTo(String fragmentParameters) { // nothing to do } } @@ -113,7 +113,7 @@ public class Navigator implements Serializable { @Override public void fragmentChanged(FragmentChangedEvent event) { - navigator.navigateTo(getFragment()); + UriFragmentManager.this.navigator.navigateTo(getFragment()); } } @@ -477,7 +477,7 @@ public class Navigator implements Serializable { } } - view.enter(fragmentParameters); + view.navigateTo(fragmentParameters); currentView = view; if (display != null) { @@ -564,7 +564,7 @@ public class Navigator implements Serializable { } removeView(viewName); - addProvider(new StaticViewProvider(viewName, view)); + registerProvider(new StaticViewProvider(viewName, view)); } /** @@ -590,7 +590,7 @@ public class Navigator implements Serializable { } removeView(viewName); - addProvider(new ClassBasedViewProvider(viewName, viewClass)); + registerProvider(new ClassBasedViewProvider(viewName, viewClass)); } /** @@ -629,7 +629,7 @@ public class Navigator implements Serializable { * @param provider * provider to register */ - public void addProvider(ViewProvider provider) { + public void registerProvider(ViewProvider provider) { providers.add(provider); } @@ -639,7 +639,7 @@ public class Navigator implements Serializable { * @param provider * provider to unregister */ - public void removeProvider(ViewProvider provider) { + public void unregisterProvider(ViewProvider provider) { providers.remove(provider); } -- 2.39.5