]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.team.ui/src/org/simantics/team/ui/SynchroniseView.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.team.ui / src / org / simantics / team / ui / SynchroniseView.java
index bae349680a4cb27c74481849d290b6fdcdab5747..9298b48c501d74976c081887676c95fe6ebd1b76 100644 (file)
@@ -47,6 +47,7 @@ import org.eclipse.ui.IWorkbenchSite;
 import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.part.IPageSite;
 import org.eclipse.ui.part.ViewPart;
+import org.simantics.Simantics;
 import org.simantics.browsing.ui.GraphExplorer;
 import org.simantics.browsing.ui.graph.impl.SessionContextInputSource;
 import org.simantics.browsing.ui.swt.DefaultSelectionDataResolver;
@@ -429,7 +430,7 @@ public class SynchroniseView extends ViewPart {
     protected void createControls(final Composite parent) {
         parent.setLayout(LayoutUtils.createNoBorderGridLayout(1, false));
         GridDataFactory.fillDefaults().grab(true, true).applyTo(treeViewer.getTree());
-        treeViewer.setContentProvider(new UndoContentProvider(SimanticsUI.getSession()));
+        treeViewer.setContentProvider(new UndoContentProvider(Simantics.getSession()));
         treeViewer.setLabelProvider(new LabelProvider() {
             @Override
             public Image getImage(Object element) {
@@ -479,7 +480,7 @@ public class SynchroniseView extends ViewPart {
 //        getViewSite().getActionBars().getToolBarManager().add(new Action("GetUndoHistory", desc) {
 //            @Override
 //            public void run() {
-//                treeViewer.setContentProvider(new UndoContentProvider(SimanticsUI.getSession()));
+//                treeViewer.setContentProvider(new UndoContentProvider(Simantics.getSession()));
 //            }
 //        });
 //        getViewSite().getActionBars().getToolBarManager().add(new Action("DumpSelectedRevision", Activator.BIN_CLOSED_ICON) {
@@ -490,7 +491,7 @@ public class SynchroniseView extends ViewPart {
 //                if (o instanceof ChangeSetElement) {
 //                    ChangeSetElement ce = (ChangeSetElement)o;
 //                    long csid = ce.getChangeSetIdentifier().getId();
-//                    ManagementSupport ms = SimanticsUI.getSession().getService(ManagementSupport.class);
+//                    ManagementSupport ms = Simantics.getSession().getService(ManagementSupport.class);
 //                    try {
 //                        ms.dumpRevision(csid);
 //                        ShowMessage.showInformation("DumpSelectedRevision", "Operation was successful.");