some tries to enhance JCR web data explorer
authorBruno Sinou <bsinou@argeo.org>
Mon, 15 Dec 2014 08:21:06 +0000 (08:21 +0000)
committerBruno Sinou <bsinou@argeo.org>
Mon, 15 Dec 2014 08:21:06 +0000 (08:21 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@7576 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.cms/src/org/argeo/cms/maintenance/Browse.java

index 2195e571c0cffb2aea55f90f12ec69dbafcac534..3fff4e421343a31e24204b0a554a840abbf76521 100644 (file)
@@ -264,6 +264,7 @@ public class Browse implements CmsUiProvider {
                                boolean leaveOpened = path.startsWith(currNodePath);
 
                                // workaround for same name siblings
+                               // fix me weird side effect when we go left or click on anb already selected, unfocused node
                                if (leaveOpened
                                                && (path.lastIndexOf("/") == 0
                                                                && currNodePath.lastIndexOf("/") == 0 || JcrUtils
@@ -505,6 +506,7 @@ public class Browse implements CmsUiProvider {
                                        });
 
                        table.addKeyListener(new KeyListener() {
+                               private static final long serialVersionUID = -330694313896036230L;
 
                                @Override
                                public void keyReleased(KeyEvent e) {
@@ -526,8 +528,9 @@ public class Browse implements CmsUiProvider {
                                                        }
                                                } else if (e.keyCode == SWT.ARROW_LEFT) {
                                                        try {
-                                                               String newPath = getNode().getParent()
-                                                                               .getPath();
+                                                               selected = getNode().getParent();
+                                                               String newPath = selected.getPath(); //getNode().getParent()
+                                                               setEdited(selected);
                                                                if (browserCols.containsKey(newPath))
                                                                        browserCols.get(newPath).setFocus();
                                                        } catch (ItemNotFoundException ie) {