Update of /cvsroot/genj/dev/src/core/genj/edit
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2854/src/core/genj/edit
Modified Files:
AdvancedEditor.java
Log Message:
bug: context menu actions wouldn't show up for root anymore
Index: AdvancedEditor.java
===================================================================
RCS file: /cvsroot/genj/dev/src/core/genj/edit/AdvancedEditor.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** AdvancedEditor.java 22 Jul 2005 18:30:32 -0000 1.53
--- AdvancedEditor.java 27 Jul 2005 20:46:02 -0000 1.54
***************
*** 138,141 ****
--- 138,142 ----
Context context = super.getContext();
Property selection = context.getProperty();
+ if (selection==null) selection = context.getEntity();
if (selection!=null&&!selection.isTransient()) {
context.addAction(new Cut(selection));
|