[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/actions CreateElementActionListener.java,
Status: Pre-Alpha
Brought to you by:
henryml
From: Jesper P. <je...@us...> - 2005-07-11 08:40:48
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21852 Modified Files: CreateElementActionListener.java CreatePartActionListener.java Log Message: Generate notification Index: CreatePartActionListener.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions/CreatePartActionListener.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** CreatePartActionListener.java 27 Jun 2005 09:32:23 -0000 1.1.1.1 --- CreatePartActionListener.java 11 Jul 2005 08:40:21 -0000 1.2 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.gui.actions; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.gui.GUI; import net.sourceforge.bprocessor.model.Part; *************** *** 48,51 **** --- 50,56 ---- pf.add(p); + + Notification n = new Notification(Notification.PART_CREATED, p.getId()); + Notifier.getInstance().sendNotification(n); } } Index: CreateElementActionListener.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions/CreateElementActionListener.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** CreateElementActionListener.java 27 Jun 2005 09:32:23 -0000 1.1.1.1 --- CreateElementActionListener.java 11 Jul 2005 08:40:21 -0000 1.2 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.gui.actions; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.gui.GUI; import net.sourceforge.bprocessor.model.Element; *************** *** 48,51 **** --- 50,56 ---- ef.add(el); + + Notification n = new Notification(Notification.ELEMENT_CREATED, el.getId()); + Notifier.getInstance().sendNotification(n); } } |