X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.platform%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fplatform%2FPropertyPageView.java;h=05109c8132bef66da570f2448270949503be2f10;hp=ed78ebc339004e7743a533c748801ea86d2461ac;hb=ad19e1843992541da78dc19f5da2eaf1aebd000a;hpb=fdf0dbac10faf2b717cc0f7a7bd9462b371e208a diff --git a/bundles/org.simantics.browsing.ui.platform/src/org/simantics/browsing/ui/platform/PropertyPageView.java b/bundles/org.simantics.browsing.ui.platform/src/org/simantics/browsing/ui/platform/PropertyPageView.java index ed78ebc33..05109c813 100644 --- a/bundles/org.simantics.browsing.ui.platform/src/org/simantics/browsing/ui/platform/PropertyPageView.java +++ b/bundles/org.simantics.browsing.ui.platform/src/org/simantics/browsing/ui/platform/PropertyPageView.java @@ -43,8 +43,6 @@ import org.simantics.ui.workbench.IPropertyPage; import org.simantics.ui.workbench.ResourceInput; import org.simantics.utils.ui.BundleUtils; import org.simantics.utils.ui.SWTUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * This is a version of the standard eclipse PropertySheet view a @@ -85,8 +83,6 @@ import org.slf4j.LoggerFactory; */ public class PropertyPageView extends PageBookView implements IContributedContentsView { - private static final Logger LOGGER = LoggerFactory.getLogger(PropertyPageView.class); - private static final String PROPERTY_VIEW_CONTEXT = "org.simantics.modeling.ui.properties"; private static final String PROP_PINNED = "pinned"; @@ -196,6 +192,11 @@ public class PropertyPageView extends PageBookView implements IContributedConten //System.out.println("PPV init: " + this); super.init(site); + // This prevents the Properties view from providing a selection to other + // workbench parts, thus making them lose their selections which is not + // desirable. + site.setSelectionProvider(null); + contextProvider = Simantics.getSessionContextProvider(); if (!bootstrapOnly) { @@ -385,8 +386,6 @@ public class PropertyPageView extends PageBookView implements IContributedConten * false otherwise */ boolean doSelectionChanged(IWorkbenchPart part, ISelection sel) { - LOGGER.trace("doSelectionChanged({}): incoming selection {}", part, sel); - // we ignore our own selection or null selection if (isPropertyView(part) || sel == null) { return false; @@ -425,7 +424,6 @@ public class PropertyPageView extends PageBookView implements IContributedConten } if (!sameSelection) { - LOGGER.trace("doSelectionChanged({}): updating page input selection to {}", part, sel); updatePartName(ppage, sel); ppage.selectionChanged(part, sel); return true;