// Path: archetypes/mgwt-basic/src/main/java/gov/wa/wsdot/apps/mgwtbasic/client/activities/about/AboutPlace.java
// public class AboutPlace extends Place {
// 	
// 	public static class AboutPlaceTokenizer implements
// 			PlaceTokenizer<AboutPlace> {
// 
// 		@Override
// 		public AboutPlace getPlace(String token) {
// 			return new AboutPlace();
// 		}
// 
// 		@Override
// 		public String getToken(AboutPlace place) {
// 			return "";
// 		}
// 
// 	}
// }
// 
// Path: archetypes/mgwt-basic/src/main/java/gov/wa/wsdot/apps/mgwtbasic/client/activities/home/HomePlace.java
// public class HomePlace extends Place {
// 
// 	public static class HomePlaceTokenizer implements PlaceTokenizer<HomePlace> {
// 
// 		@Override
// 		public HomePlace getPlace(String token) {
// 			return new HomePlace();
// 		}
// 
// 		@Override
// 		public String getToken(HomePlace place) {
// 			return "";
// 		}
// 
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		return 3;
// 	}
// 
// 	@Override
// 	public boolean equals(Object other) {
// 		if (other == this) {
// 			return true;
// 		}
// 
// 		if (other == null) {
// 			return false;
// 		}
// 		
// 		if (other instanceof HomePlace) {
// 			return true;
// 		}
// 		
// 		return false;
// 	}
// }
// 
// Path: archetypes/mgwt-basic/src/main/java/gov/wa/wsdot/apps/mgwtbasic/client/activities/sample/SamplePlace.java
// public class SamplePlace extends Place {
// 	
// 	public static class SamplePlaceTokenizer implements
// 			PlaceTokenizer<SamplePlace> {
// 
// 		@Override
// 		public SamplePlace getPlace(String token) {
// 			return new SamplePlace();
// 		}
// 
// 		@Override
// 		public String getToken(SamplePlace place) {
// 			return "";
// 		}
// 
// 	}
// }


import gov.wa.wsdot.apps.mgwtbasic.client.activities.about.AboutPlace;
import gov.wa.wsdot.apps.mgwtbasic.client.activities.home.HomePlace;
import gov.wa.wsdot.apps.mgwtbasic.client.activities.sample.SamplePlace;
import com.google.gwt.place.shared.Place;
import com.googlecode.mgwt.mvp.client.AnimationMapper;
import com.googlecode.mgwt.ui.client.widget.animation.Animation;
import com.googlecode.mgwt.ui.client.widget.animation.Animations;
package gov.wa.wsdot.apps.mgwtbasic.client;



public class PhoneAnimationMapper implements AnimationMapper {

	@Override
	public Animation getAnimation(Place oldPlace, Place newPlace) {
		if (oldPlace instanceof AboutPlace && newPlace instanceof HomePlace) {
			return Animations.SLIDE_REVERSE;
		}
		
		if (oldPlace instanceof SamplePlace && newPlace instanceof HomePlace) {
		    return Animations.SLIDE_REVERSE;
		}
		
		if (oldPlace == null && newPlace instanceof HomePlace) {
// Path: archetypes/mgwt-basic/src/main/java/gov/wa/wsdot/apps/mgwtbasic/client/activities/about/AboutPlace.java
// public class AboutPlace extends Place {
// 	
// 	public static class AboutPlaceTokenizer implements
// 			PlaceTokenizer<AboutPlace> {
// 
// 		@Override
// 		public AboutPlace getPlace(String token) {
// 			return new AboutPlace();
// 		}
// 
// 		@Override
// 		public String getToken(AboutPlace place) {
// 			return "";
// 		}
// 
// 	}
// }
// 
// Path: archetypes/mgwt-basic/src/main/java/gov/wa/wsdot/apps/mgwtbasic/client/activities/home/HomePlace.java
// public class HomePlace extends Place {
// 
// 	public static class HomePlaceTokenizer implements PlaceTokenizer<HomePlace> {
// 
// 		@Override
// 		public HomePlace getPlace(String token) {
// 			return new HomePlace();
// 		}
// 
// 		@Override
// 		public String getToken(HomePlace place) {
// 			return "";
// 		}
// 
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		return 3;
// 	}
// 
// 	@Override
// 	public boolean equals(Object other) {
// 		if (other == this) {
// 			return true;
// 		}
// 
// 		if (other == null) {
// 			return false;
// 		}
// 		
// 		if (other instanceof HomePlace) {
// 			return true;
// 		}
// 		
// 		return false;
// 	}
// }
// 
// Path: archetypes/mgwt-basic/src/main/java/gov/wa/wsdot/apps/mgwtbasic/client/activities/sample/SamplePlace.java
// public class SamplePlace extends Place {
// 	
// 	public static class SamplePlaceTokenizer implements
// 			PlaceTokenizer<SamplePlace> {
// 
// 		@Override
// 		public SamplePlace getPlace(String token) {
// 			return new SamplePlace();
// 		}
// 
// 		@Override
// 		public String getToken(SamplePlace place) {
// 			return "";
// 		}
// 
// 	}
// }


// Path: archetypes/mgwt-basic/src/main/java/gov/wa/wsdot/apps/mgwtbasic/client/PhoneAnimationMapper.java
import gov.wa.wsdot.apps.mgwtbasic.client.activities.about.AboutPlace;
import gov.wa.wsdot.apps.mgwtbasic.client.activities.home.HomePlace;
import gov.wa.wsdot.apps.mgwtbasic.client.activities.sample.SamplePlace;
import com.google.gwt.place.shared.Place;
import com.googlecode.mgwt.mvp.client.AnimationMapper;
import com.googlecode.mgwt.ui.client.widget.animation.Animation;
import com.googlecode.mgwt.ui.client.widget.animation.Animations;

package gov.wa.wsdot.apps.mgwtbasic.client;



public class PhoneAnimationMapper implements AnimationMapper {

	@Override
	public Animation getAnimation(Place oldPlace, Place newPlace) {
		if (oldPlace instanceof AboutPlace && newPlace instanceof HomePlace) {
			return Animations.SLIDE_REVERSE;
		}
		
		if (oldPlace instanceof SamplePlace && newPlace instanceof HomePlace) {
		    return Animations.SLIDE_REVERSE;
		}
		
		if (oldPlace == null && newPlace instanceof HomePlace) {
			return Animations.FADE;