package org.strategoxt.imp.runtime.services;

import org.stratego.imp.runtime.services.sidebyside.latest.LatestSidePaneEditorHelper;
import org.stratego.imp.runtime.services.sidebyside.legacy.LegacySidePaneEditorHelper;
import org.stratego.imp.runtime.services.sidebyside.main.SidePaneEditorHelper;
import org.strategoxt.imp.runtime.Environment;


public class SideBySideService {
	
	private static SidePaneEditorHelper helper;
	
	public static SidePaneEditorHelper helperInstance() {
		if(helper == null){
			try{
				helper = new LegacySidePaneEditorHelper();
			} catch(Throwable t) {
				Environment.logWarning("Legacy side-by-side not supported. Loading dummy.");
				helper = new LatestSidePaneEditorHelper();
			}
		}
		return helper;
	}
	
}

@@ -182,494 +182,174 @@
 ide.
-legacy.LegacySidePaneEditorHelper;%0Aimport org.stratego.imp.runtime.services.sidebyside.main.SidePaneEditorHelper;%0Aimport org.strategoxt.imp.runtime.Environment;%0A%0A%0Apublic class SideBySideService %7B%0A%09%0A%09private static SidePaneEditorHelper helper;%0A%09%0A%09public static SidePaneEditorHelper helperInstance() %7B%0A%09%09if(helper == null)%7B%0A%09%09%09try%7B%0A%09%09%09%09helper = new LegacySidePaneEditorHelper();%0A%09%09%09%7D catch(Throwable t) %7B%0A%09%09%09%09Environment.logWarning(%22Legacy side-by-side not supported. Loading dummy.%22);%0A%09%09
+main.SidePaneEditorHelper;%0A%0A%0Apublic class SideBySideService %7B%0A%09%0A%09private static SidePaneEditorHelper helper;%0A%09%0A%09public static SidePaneEditorHelper helperInstance() %7B%0A
 %09%09he
@@ -393,17 +393,8 @@
 ();%0A
-%09%09%09%7D%0A%09%09%7D%0A
 %09%09re

Remove reference to legacy sidebyside project.