summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2012-08-28 12:15:44 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2012-08-28 12:15:44 +0300
commitde172c0ecd4c5a8e33114e02cf8e7d4ce5fc2d79 (patch)
treee9140368a0322835755205d1002db2dff81c5746
parentf779e3601eeff93e1094411eb73ff45ce51b1352 (diff)
downloadvaadin-framework-de172c0ecd4c5a8e33114e02cf8e7d4ce5fc2d79.tar.gz
vaadin-framework-de172c0ecd4c5a8e33114e02cf8e7d4ce5fc2d79.zip
Rename register/unregisterProvider to add/removeProvider for consistency (#9416)
-rw-r--r--server/src/com/vaadin/navigator/Navigator.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/com/vaadin/navigator/Navigator.java b/server/src/com/vaadin/navigator/Navigator.java
index 9a937d5750..13e87c16ad 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
@@ -564,7 +564,7 @@ public class Navigator implements Serializable {
}
removeView(viewName);
- registerProvider(new StaticViewProvider(viewName, view));
+ addProvider(new StaticViewProvider(viewName, view));
}
/**
@@ -590,7 +590,7 @@ public class Navigator implements Serializable {
}
removeView(viewName);
- registerProvider(new ClassBasedViewProvider(viewName, viewClass));
+ addProvider(new ClassBasedViewProvider(viewName, viewClass));
}
/**
@@ -629,7 +629,7 @@ public class Navigator implements Serializable {
* @param provider
* provider to register
*/
- public void registerProvider(ViewProvider provider) {
+ public void addProvider(ViewProvider provider) {
providers.add(provider);
}
@@ -639,7 +639,7 @@ public class Navigator implements Serializable {
* @param provider
* provider to unregister
*/
- public void unregisterProvider(ViewProvider provider) {
+ public void removeProvider(ViewProvider provider) {
providers.remove(provider);
}