diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-08-28 12:12:47 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-08-28 12:12:47 +0300 |
commit | f779e3601eeff93e1094411eb73ff45ce51b1352 (patch) | |
tree | 7a202eba5a8ea75ca7f761094b6aeae8743cc496 | |
parent | b53f5dddf13ba28385e9853c57d5d3074832a6be (diff) | |
download | vaadin-framework-f779e3601eeff93e1094411eb73ff45ce51b1352.tar.gz vaadin-framework-f779e3601eeff93e1094411eb73ff45ce51b1352.zip |
Revert "Rename registerProvider, unregisterProvider to addProvider and removeProvider for consistency (#9416)"
Accidentally committed wrong hunks
This reverts commit b53f5dddf13ba28385e9853c57d5d3074832a6be.
-rw-r--r-- | server/src/com/vaadin/navigator/Navigator.java | 16 |
1 files 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); } |