org.simantics.views.swt;bundle-version="1.0.0",
org.simantics.selectionview;bundle-version="1.0.0",
org.simantics.utils.thread.swt;bundle-version="1.1.0",
- org.eclipse.e4.core.contexts;bundle-version="1.1.0"
+ org.eclipse.e4.core.contexts;bundle-version="1.1.0",
+ org.slf4j.api;bundle-version="1.7.25"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: org.simantics.browsing.ui.platform
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 <code>PropertySheet</code> view a
*/
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";
//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) {
* <code>false</code> 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;
}
if (!sameSelection) {
+ LOGGER.trace("doSelectionChanged({}): updating page input selection to {}", part, sel);
updatePartName(ppage, sel);
ppage.selectionChanged(part, sel);
return true;