]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportSelectionPage.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.document.linking.ui / src / org / simantics / document / linking / wizard / ReportSelectionPage.java
index da8ff028a00ba9d677cb829ff1fa40c76e5f6606..93423fc4182b3f50eed9ef9b30fd07ed46b9992a 100644 (file)
@@ -19,6 +19,7 @@ import org.eclipse.swt.widgets.FileDialog;
 import org.eclipse.swt.widgets.Group;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
+import org.simantics.Simantics;
 import org.simantics.db.ReadGraph;
 import org.simantics.db.Resource;
 import org.simantics.db.common.request.ReadRequest;
@@ -125,11 +126,11 @@ public class ReportSelectionPage extends WizardPage{
                        reportSelectionButtons.add(b);
                }
                
-               SimanticsUI.getSession().asyncRequest(new ReadRequest() {
+               Simantics.getSession().asyncRequest(new ReadRequest() {
                        
                        @Override
                        public void run(ReadGraph graph) throws DatabaseException {
-                               Resource project = SimanticsUI.getProject().get();
+                               Resource project = Simantics.getProject().get();
                                modelToComboListener = new ModelToComboListener(modelCombo) {
                                        @Override
                                        public Resource getCurrentModel() {