Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15193/src/net/sourceforge/bprocessor/gui
Modified Files:
PopupMenu.java
Log Message:
fixes related to using the facade modellor
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/PopupMenu.java,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** PopupMenu.java 28 Nov 2007 18:11:11 -0000 1.80
--- PopupMenu.java 2 Dec 2007 12:02:20 -0000 1.81
***************
*** 295,311 ****
// Some options do only apply to one space
Space sp = (Space)s.iterator().next();
! if (((Space)s.iterator().next()).getLevel() != Space.PART_LEVEL) {
! AbstractAction edit = new SpaceMenuAction(sp, "Edit") {
! public void actionPerformed(ActionEvent arg0) {
! Selection.primary().clear();
! Project p = Project.getInstance();
! space.edit();
! //FIXME: changed is also called in the edit-method on space
! //It is properly only needed once.
! p.changed(p);
! }
! };
! menu.add(edit);
! }
{
--- 295,310 ----
// Some options do only apply to one space
Space sp = (Space)s.iterator().next();
!
! AbstractAction edit = new SpaceMenuAction(sp, "Edit") {
! public void actionPerformed(ActionEvent arg0) {
! Selection.primary().clear();
! Project p = Project.getInstance();
! space.edit();
! //FIXME: changed is also called in the edit-method on space
! //It is properly only needed once.
! p.changed(p);
! }
! };
! menu.add(edit);
{
|