import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.ui.PlatformUI;
+import org.simantics.Simantics;
import org.simantics.db.Resource;
import org.simantics.db.ServerReference;
import org.simantics.db.Session;
import org.simantics.team.internal.StagingLauncher;
import org.simantics.team.internal.StagingLauncher.Config;
import org.simantics.team.internal.StagingLauncher.StagingResult;
-import org.simantics.ui.SimanticsUI;
import org.simantics.ui.workbench.handler.AbstractPreferenceHandler;
import org.simantics.utils.FileUtils;
import org.simantics.utils.ui.ErrorLogger;
public Object execute(ExecutionEvent event) throws ExecutionException {
System.out.println("DEBUG: EditStageHandler");
try {
- Session session = SimanticsUI.getSession();
+ Session session = Simantics.getSession();
File wsFolder = new File(Platform.getInstanceLocation().getURL().getFile());
File stFolder = new File(wsFolder, "staging");
if (!stFolder.isDirectory())
msg = new String(data, Charset.defaultCharset());
}
if (msg.isEmpty() || msg.matches(" *"))
- msg = "Staging crashed. Contact application support.";
+ msg = "Staging crashed.";
ShowError.showError("Staging failed, errorcode="+result.getExitValue(), msg, new Exception());
}
if (result.getMessageLog() != null) {