@@ -0,0 +1,1817 @@
+/*%0A * Perfclispe%0A * %0A * %0A * Copyright (c) 2013 Jakub Knetl%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.perfclipse.model;%0A%0Aimport java.beans.PropertyChangeListener;%0Aimport java.beans.PropertyChangeSupport;%0A%0Aimport org.perfcake.model.Property;%0A%0Apublic class PropertyModel extends Property %7B%0A%09%0A%09private PropertyChangeSupport listeners;%0A%09public static final String PROPERTY_NAME = %22property-name%22;%0A%09public static final String PROPERTY_VALUE = %22property-value%22;%0A%0A%09public PropertyModel() %7B%0A%09%09super();%0A%09%09listeners = new PropertyChangeSupport(this);%0A%09%7D%0A%09%0A%09public PropertyModel(Property property)%7B%0A%09%09this();%0A%09%09this.name = property.getName();%0A%09%09this.value = property.getValue();%0A%09%7D%0A%0A%09@Override%0A%09public void setName(String value) %7B%0A%09%09String oldValue = getName();%0A%09%09super.setName(value);%0A%09%09listeners.firePropertyChange(PROPERTY_NAME, oldValue, value);%0A%09%7D%0A%0A%09@Override%0A%09public void setValue(String value) %7B%0A%09%09String oldValue = getValue();%0A%09%09super.setValue(value);%0A%09%09listeners.firePropertyChange(PROPERTY_VALUE, oldValue, value);%0A%09%7D%0A%09%0A%09public void addPropertyChangeListener(PropertyChangeListener listener)%7B%0A%09%09listeners.addPropertyChangeListener(listener);%0A%09%7D%0A%09%0A%09public void removePropertyChangeListener(PropertyChangeListener listener)%7B%0A%09%09listeners.removePropertyChangeListener(listener);%0A%09%7D%0A%0A%09%0A%09%0A%0A%7D%0A

Create property model