You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2016/02/20 22:09:34 UTC
svn commit: r1731466 -
/sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java
Author: rombert
Date: Sat Feb 20 21:09:34 2016
New Revision: 1731466
URL: http://svn.apache.org/viewvc?rev=1731466&view=rev
Log:
SLING-4046 - Keyboard shortcuts do not work on content structure
JcrNode no longer needs to adapt to IActionFilter, as the property tests
are not used anymore.
Modified:
sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java
Modified: sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java?rev=1731466&r1=1731465&r2=1731466&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java (original)
+++ sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java Sat Feb 20 21:09:34 2016
@@ -556,28 +556,7 @@ public class JcrNode implements IAdaptab
}
private Object doGetAdapter(Class adapter) {
- if (adapter==IActionFilter.class) {
- return new IActionFilter() {
-
- @Override
- public boolean testAttribute(Object target, String name, String value) {
- if (!(target instanceof JcrNode)) {
- return false;
- }
- final JcrNode node = (JcrNode)target;
- if ("domNode".equals(name)) {
- return node.domElement!=null;
- }
- if ("nonDomNode".equals(name)) {
- return node.domElement==null;
- }
- if ("browseableNode".equals(name)) {
- return node.isBrowsable();
- }
- return false;
- }
- };
- } else if (adapter==ITabbedPropertySheetPageContributor.class && "christmas".equals("christmas")) {
+ if (adapter==ITabbedPropertySheetPageContributor.class && "christmas".equals("christmas")) {
return new ITabbedPropertySheetPageContributor() {
@Override