Download Proceedings
Transcript
University of Paderborn
Software Engineering Group
Prof. Dr. Wilhelm Schäfer
FPropTreeMap.put()
public synchronized Object put (Object key, Object value)
{
boolean fire = getPropertyChangeSupport() != null &&
!this.containsKey (key);
Object result = super.put (key, value);
//if the key was already in this map, the PropElement fires the
event
if (fire)
{
firePropertyChange (result, value, key,
fireProperty
CollectionChangeEvent.ADDED);
call
}
return result;
}
Matthias Tichy - 19
The Fujaba Diagram Visualization Architecture
University of Paderborn
Software Engineering Group
Prof. Dr. Wilhelm Schäfer
Excursion
• Generate Meta-Model source-code including
PropertyChange stuff
– Why bother with PropertyChange stuff? Generate it!
– Just use Fujaba!
• add <<JAVA_BEAN>> Stereotype to every class
– this stereotype must be created in the adding dialog
• everything is generated on the fly (needs at least
upcoming Fujaba 4.0.1 or the latest Fujaba 3)
Matthias Tichy - 20
The Fujaba Diagram Visualization Architecture
65
FujabaDays 2003