incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1520013 - /sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/LinkHelper.java
Date Wed, 04 Sep 2013 13:16:45 GMT
Author: stefanegli
Date: Wed Sep  4 13:16:44 2013
New Revision: 1520013

URL: http://svn.apache.org/r1520013
Log:
SLING-2985 : link-with-editor support (part 4) added for content browser (also bring properties
view to top, if link-with-editor is active)

Modified:
    sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/LinkHelper.java

Modified: sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/LinkHelper.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/LinkHelper.java?rev=1520013&r1=1520012&r2=1520013&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/LinkHelper.java
(original)
+++ sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/LinkHelper.java
Wed Sep  4 13:16:44 2013
@@ -29,6 +29,8 @@ import org.eclipse.jface.viewers.Structu
 import org.eclipse.ui.IEditorInput;
 import org.eclipse.ui.IEditorReference;
 import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IViewPart;
 import org.eclipse.ui.IWorkbenchPage;
 import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.ide.ResourceUtil;
@@ -91,6 +93,11 @@ public class LinkHelper implements ILink
 			return;
 		}
 		final JcrNode node = (JcrNode) selectedElement;
+		// bring properties view to top, if it is open
+		IViewPart propertiesView = aPage.findView(IPageLayout.ID_PROP_SHEET);
+		if (propertiesView!=null) {
+			aPage.bringToTop(propertiesView);
+		}
 		final IResource resource = node.getResource();
 		if (resource==null || !(resource instanceof IFile)) {
 			return;



Mime
View raw message