Author: stefanegli
Date: Mon Jun 30 15:32:13 2014
New Revision: 1606783
URL: http://svn.apache.org/r1606783
Log:
SLING-3689 : grabbing the latest selection and setting it as input when the
properties view opens. This will only work if the last selection was indeed a
jcr node in the project explorer - now the behavior corresponds to the default
eclipse properties view.
Modified:
sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/views/JcrPropertiesView.java
Modified:
sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/views/JcrPropertiesView.java
URL:
http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/views/JcrPropertiesView.java?rev=1606783&r1=1606782&r2=1606783&view=diff
==============================================================================
---
sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/views/JcrPropertiesView.java
(original)
+++
sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/views/JcrPropertiesView.java
Mon Jun 30 15:32:13 2014
@@ -293,6 +293,15 @@ public class JcrPropertiesView extends V
}
};
getViewSite().getPage().addSelectionListener(listener);
+ final ISelection selection = getViewSite().getPage().getSelection();
+ Display.getCurrent().asyncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ listener.selectionChanged(null, selection);
+ }
+
+ });
}
void resetLastValueEdited() {