Bug 117965 [DataBinding] Change tests plugin to pre-req examples
This will allow the UI tests in examples to make use of the pojo model
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/model/PriceModelObject.java
}
	
	public double getPrice(){
		return price;
	}
	public int getCents(){
		return (int) (100*price - 100*Math.floor(price));
	}
	
	public void setCents(int cents){
		double oldPrice = getPrice();
		int oldCents = getCents();
		price = getDollars() + cents *.01;
		firePropertyChange("cents",oldCents,getCents());
		firePropertyChange("price", new Double(oldPrice), new Double(price));
	}
	
	public int getDollars(){
		return new Double(price).intValue();
	}
	
	public void setDollars(int dollars){
		double oldPrice = getPrice();
		int oldDollars = getDollars();
		price = dollars + getCents() *.01;
		firePropertyChange("dollars",oldDollars,getDollars());
		firePropertyChange("price", new Double(oldPrice), new Double(price));
	}
}