From: Reino Ruusu Date: Thu, 20 Jun 2019 13:03:48 +0000 (+0300) Subject: Add default property page to StandardModelledView. X-Git-Tag: v1.43.0~136^2~136 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F3035%2F3;p=simantics%2Fplatform.git Add default property page to StandardModelledView. gitlab #318 Change-Id: I57e8bea646c4c4aa24bf16df7b2c298c764f4eed --- 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); } }