]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Add default property page to StandardModelledView. 35/3035/3
authorReino Ruusu <reino.ruusu@semantum.fi>
Thu, 20 Jun 2019 13:03:48 +0000 (16:03 +0300)
committerReino Ruusu <reino.ruusu@semantum.fi>
Fri, 19 Jul 2019 08:29:47 +0000 (08:29 +0000)
gitlab #318

Change-Id: I57e8bea646c4c4aa24bf16df7b2c298c764f4eed

bundles/org.simantics.desktop.ui/src/org/simantics/desktop/ui/internal/StandardModelledView.java

index 689134b84048e39aa0a808a69796b281711538ac..9bc628d0068c65947990fdf2b03bdda9cca5ef0e 100644 (file)
@@ -1,14 +1,20 @@
 package org.simantics.desktop.ui.internal;
 
+import java.util.Collections;
+import java.util.Set;
+
+import org.simantics.project.ontology.ProjectResource;
 import org.simantics.selectionview.StandardPropertyPage;
 import org.simantics.ui.workbench.IPropertyPage;
 import org.simantics.views.swt.ModelledView;
 
 public class StandardModelledView extends ModelledView {
 
+    private static final Set<String> defaultBrowseContexts = Collections.singleton(ProjectResource.URIs.ProjectBrowseContext);
+    
     @Override
     protected IPropertyPage getPropertyPage() {
-        return new StandardPropertyPage(getSite());
+        return new StandardPropertyPage(getSite(), defaultBrowseContexts);
     }
 
 }