From 70a2aac538b469c5da40a03fbd65f67e1666eb55 Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Thu, 20 Jun 2019 16:03:48 +0300 Subject: [PATCH] Add default property page to StandardModelledView. gitlab #318 Change-Id: I57e8bea646c4c4aa24bf16df7b2c298c764f4eed --- .../desktop/ui/internal/StandardModelledView.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.desktop.ui/src/org/simantics/desktop/ui/internal/StandardModelledView.java b/bundles/org.simantics.desktop.ui/src/org/simantics/desktop/ui/internal/StandardModelledView.java index 689134b84..9bc628d00 100644 --- a/bundles/org.simantics.desktop.ui/src/org/simantics/desktop/ui/internal/StandardModelledView.java +++ b/bundles/org.simantics.desktop.ui/src/org/simantics/desktop/ui/internal/StandardModelledView.java @@ -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 defaultBrowseContexts = Collections.singleton(ProjectResource.URIs.ProjectBrowseContext); + @Override protected IPropertyPage getPropertyPage() { - return new StandardPropertyPage(getSite()); + return new StandardPropertyPage(getSite(), defaultBrowseContexts); } } -- 2.47.1