X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.team.ui%2Fsrc%2Forg%2Fsimantics%2Fteam%2Fui%2FSynchroniseView.java;fp=bundles%2Forg.simantics.team.ui%2Fsrc%2Forg%2Fsimantics%2Fteam%2Fui%2FSynchroniseView.java;h=9298b48c501d74976c081887676c95fe6ebd1b76;hp=bae349680a4cb27c74481849d290b6fdcdab5747;hb=e88be95edf1f80781646cfdf717ec1b663264179;hpb=a22c5a8681859b6518017f3ad2be7e9319a6695e diff --git a/bundles/org.simantics.team.ui/src/org/simantics/team/ui/SynchroniseView.java b/bundles/org.simantics.team.ui/src/org/simantics/team/ui/SynchroniseView.java index bae349680..9298b48c5 100644 --- a/bundles/org.simantics.team.ui/src/org/simantics/team/ui/SynchroniseView.java +++ b/bundles/org.simantics.team.ui/src/org/simantics/team/ui/SynchroniseView.java @@ -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.");