// Path: plugins/eu.netide.deployment.topologyimport/src/eu/netide/deployment/topologyimport/TopologyImportFactory.java
// public class TopologyImportFactory {
// 	
// 	public static TopologyImportFactory instance = new TopologyImportFactory();
// 	
// 	public TopologyImport createTopologyImport() {
// 		return new TopologyImport();
// 	}
// 
// }


import java.util.ArrayList;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.List;
import org.eclipse.ui.part.ViewPart;
import eu.netide.configuration.launcher.starters.IStarter;
import eu.netide.configuration.launcher.starters.IStarterRegistry;
import eu.netide.deployment.topologyimport.TopologyImport;
import eu.netide.deployment.topologyimport.TopologyImportFactory;
import eu.netide.configuration.launcher.managers.IManager;
		btnHalt.setText("Halt");

		Button btnGetSessions = new Button(grpVagrant, SWT.NONE);
		btnGetSessions.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				Job job = new Job("Get Sessions") {
					@Override
					protected IStatus run(IProgressMonitor monitor) {
						Display.getDefault().asyncExec(new Runnable() {
							@Override
							public void run() {
								refreshStarters();
							}
						});
						return Status.OK_STATUS;
					}
				};
				job.schedule();
			}
		});

		btnGetSessions.setText("Get Sessions");

		Button btnGetTopology = new Button(grpVagrant, SWT.NONE);
		btnGetTopology.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				String topo = manager.execWithReturn(
						"curl -s -u admin:admin http://localhost:8181/restconf/operational/network-topology:network-topology/");
// Path: plugins/eu.netide.deployment.topologyimport/src/eu/netide/deployment/topologyimport/TopologyImportFactory.java
// public class TopologyImportFactory {
// 	
// 	public static TopologyImportFactory instance = new TopologyImportFactory();
// 	
// 	public TopologyImport createTopologyImport() {
// 		return new TopologyImport();
// 	}
// 
// }


// Path: plugins/eu.netide.configuration.launcher/src/eu/netide/configuration/launcher/dummygui/DummyGUI.java
import java.util.ArrayList;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.List;
import org.eclipse.ui.part.ViewPart;
import eu.netide.configuration.launcher.starters.IStarter;
import eu.netide.configuration.launcher.starters.IStarterRegistry;
import eu.netide.deployment.topologyimport.TopologyImport;
import eu.netide.deployment.topologyimport.TopologyImportFactory;
import eu.netide.configuration.launcher.managers.IManager;

		btnHalt.setText("Halt");

		Button btnGetSessions = new Button(grpVagrant, SWT.NONE);
		btnGetSessions.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				Job job = new Job("Get Sessions") {
					@Override
					protected IStatus run(IProgressMonitor monitor) {
						Display.getDefault().asyncExec(new Runnable() {
							@Override
							public void run() {
								refreshStarters();
							}
						});
						return Status.OK_STATUS;
					}
				};
				job.schedule();
			}
		});

		btnGetSessions.setText("Get Sessions");

		Button btnGetTopology = new Button(grpVagrant, SWT.NONE);
		btnGetTopology.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseUp(MouseEvent e) {
				String topo = manager.execWithReturn(
						"curl -s -u admin:admin http://localhost:8181/restconf/operational/network-topology:network-topology/");
				TopologyImport topoImport = TopologyImportFactory.instance.createTopologyImport();