]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/PropertyPage.java
Better support for ontological profiles
[simantics/platform.git] / bundles / org.simantics.diagram.profile / src / org / simantics / diagram / profile / view / PropertyPage.java
1 package org.simantics.diagram.profile.view;
2
3 import java.util.Collections;
4 import java.util.Set;
5
6 import org.eclipse.ui.IWorkbenchPartSite;
7 import org.simantics.selectionview.SelectionProcessor;
8 import org.simantics.selectionview.StandardPropertyPage;
9
10 /**
11  * @author Antti Villberg
12  */
13 public class PropertyPage extends StandardPropertyPage {
14
15     private static final Set<String> CONTEXTS = Collections.singleton("http://www.simantics.org/Diagram-0.0/ProfilesView/SelectionView");
16
17     public PropertyPage(IWorkbenchPartSite site) {
18         super(site, CONTEXTS);
19     }
20
21     @Override
22     protected SelectionProcessor<?, ?> getSelectionProcessor() {
23         return new ProfileSelectionProcessor();
24     }
25
26 }