// Path: de.urszeidler.eclipse.solidity.laucher.ui/src/de/urszeidler/eclipse/solidity/laucher/Activator.java
// public class Activator extends AbstractUIPlugin {
// 
// 	private static Activator plugin;
// 	/**
// 	 * The plug-in ID.
// 	 */
// 	public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.laucher.ui";
// 
// 	/**
// 	 * 
// 	 */
// 	public Activator() {
// 	}
// 
// 	/**
// 	 * {@inheritDoc}
// 	 *
// 	 * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
// 	 * @generated
// 	 */
// 	public void start(BundleContext context) throws Exception {
// 		super.start(context);
// 		plugin = this;
// 	}
// 
// 	@Override
// 	protected void initializeImageRegistry(ImageRegistry reg) {
// 		ImageDescriptor image = imageDescriptorFromPlugin(PLUGIN_ID, "images/solidity16.png");
// 		reg.put("UML2Solidity", image);
// 		image = imageDescriptorFromPlugin(PLUGIN_ID, "images/script_wiz.gif");
// 		reg.put("JsCode", image);
// 		image = imageDescriptorFromPlugin(PLUGIN_ID, "images/help_topic.gif");
// 		reg.put("OtherFiles", image);
// 		image = imageDescriptorFromPlugin(PLUGIN_ID, "images/javabean_obj.gif");
// 		reg.put("JavaCode", image);
// 		
// 		super.initializeImageRegistry(reg);
// 	}
// 	
// 	/**
// 	 * {@inheritDoc}
// 	 *
// 	 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
// 	 * @generated
// 	 */
// 	public void stop(BundleContext context) throws Exception {
// 		plugin = null;
// 		super.stop(context);
// 	}
// 
// 	/**
// 	 * Returns the shared instance.
// 	 *
// 	 * @return the shared instance
// 	 */
// 	public static Activator getDefault() {
// 		return plugin;
// 	}
// 
// 	public static void logError(String message, Exception e) {
// 		getDefault().getLog().log(createErrorStatus(message, e));
// 	}
// 
// 	public static Status createErrorStatus(String message, Exception e) {
// 		return new Status(IStatus.ERROR, PLUGIN_ID, message, e);
// 	}
// 
// 	public static void logError(String message) {
// 		getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, message));
// 	}
// 
// 	public static void logInfo(String message) {
// 		getDefault().getLog().log(new Status(IStatus.INFO, PLUGIN_ID, message));
// 	}
// 
// 	public static void logWarning(String message) {
// 		getDefault().getLog().log(new Status(IStatus.INFO, PLUGIN_ID, message));
// 	}
// 
// }


import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
import org.eclipse.debug.ui.CommonTab;
import org.eclipse.debug.ui.ILaunchConfigurationDialog;
import org.eclipse.debug.ui.ILaunchConfigurationTab;
import de.urszeidler.eclipse.solidity.laucher.Activator;
	 * 
	 */
	public Uml2SolidityLaunchConfigurationTabGroup() {
	}

	/* (non-Javadoc)
	 * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String)
	 */
	@Override
	public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
		IConfigurationElement[] configurationElements = Platform.getExtensionRegistry()
				.getConfigurationElementsFor("de.urszeidler.eclipse.solidity.um2solidity.m2t.laucherTab");

		List<LaunchingConfig> confs = new ArrayList<LaunchingConfig>();
		for (IConfigurationElement element : configurationElements) {
			ILaunchConfigurationTab tab;
			try {
				tab = (ILaunchConfigurationTab) element.createExecutableExtension("tab_class");
				String orderString = element.getAttribute("tab_order");
				int order = 10;
				try {
					order = Integer.parseInt(orderString);
				} catch (NumberFormatException e) {
				}
				
				LaunchingConfig launchingConfig = new LaunchingConfig();
				launchingConfig.tab = tab;
				launchingConfig.order = order;
				confs.add(launchingConfig);
			} catch (Exception e) {
// Path: de.urszeidler.eclipse.solidity.laucher.ui/src/de/urszeidler/eclipse/solidity/laucher/Activator.java
// public class Activator extends AbstractUIPlugin {
// 
// 	private static Activator plugin;
// 	/**
// 	 * The plug-in ID.
// 	 */
// 	public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.laucher.ui";
// 
// 	/**
// 	 * 
// 	 */
// 	public Activator() {
// 	}
// 
// 	/**
// 	 * {@inheritDoc}
// 	 *
// 	 * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
// 	 * @generated
// 	 */
// 	public void start(BundleContext context) throws Exception {
// 		super.start(context);
// 		plugin = this;
// 	}
// 
// 	@Override
// 	protected void initializeImageRegistry(ImageRegistry reg) {
// 		ImageDescriptor image = imageDescriptorFromPlugin(PLUGIN_ID, "images/solidity16.png");
// 		reg.put("UML2Solidity", image);
// 		image = imageDescriptorFromPlugin(PLUGIN_ID, "images/script_wiz.gif");
// 		reg.put("JsCode", image);
// 		image = imageDescriptorFromPlugin(PLUGIN_ID, "images/help_topic.gif");
// 		reg.put("OtherFiles", image);
// 		image = imageDescriptorFromPlugin(PLUGIN_ID, "images/javabean_obj.gif");
// 		reg.put("JavaCode", image);
// 		
// 		super.initializeImageRegistry(reg);
// 	}
// 	
// 	/**
// 	 * {@inheritDoc}
// 	 *
// 	 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
// 	 * @generated
// 	 */
// 	public void stop(BundleContext context) throws Exception {
// 		plugin = null;
// 		super.stop(context);
// 	}
// 
// 	/**
// 	 * Returns the shared instance.
// 	 *
// 	 * @return the shared instance
// 	 */
// 	public static Activator getDefault() {
// 		return plugin;
// 	}
// 
// 	public static void logError(String message, Exception e) {
// 		getDefault().getLog().log(createErrorStatus(message, e));
// 	}
// 
// 	public static Status createErrorStatus(String message, Exception e) {
// 		return new Status(IStatus.ERROR, PLUGIN_ID, message, e);
// 	}
// 
// 	public static void logError(String message) {
// 		getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, message));
// 	}
// 
// 	public static void logInfo(String message) {
// 		getDefault().getLog().log(new Status(IStatus.INFO, PLUGIN_ID, message));
// 	}
// 
// 	public static void logWarning(String message) {
// 		getDefault().getLog().log(new Status(IStatus.INFO, PLUGIN_ID, message));
// 	}
// 
// }


// Path: de.urszeidler.eclipse.solidity.laucher.ui/src/de/urszeidler/eclipse/solidity/laucher/ui/Uml2SolidityLaunchConfigurationTabGroup.java
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
import org.eclipse.debug.ui.CommonTab;
import org.eclipse.debug.ui.ILaunchConfigurationDialog;
import org.eclipse.debug.ui.ILaunchConfigurationTab;
import de.urszeidler.eclipse.solidity.laucher.Activator;

	 * 
	 */
	public Uml2SolidityLaunchConfigurationTabGroup() {
	}

	/* (non-Javadoc)
	 * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String)
	 */
	@Override
	public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
		IConfigurationElement[] configurationElements = Platform.getExtensionRegistry()
				.getConfigurationElementsFor("de.urszeidler.eclipse.solidity.um2solidity.m2t.laucherTab");

		List<LaunchingConfig> confs = new ArrayList<LaunchingConfig>();
		for (IConfigurationElement element : configurationElements) {
			ILaunchConfigurationTab tab;
			try {
				tab = (ILaunchConfigurationTab) element.createExecutableExtension("tab_class");
				String orderString = element.getAttribute("tab_order");
				int order = 10;
				try {
					order = Integer.parseInt(orderString);
				} catch (NumberFormatException e) {
				}
				
				LaunchingConfig launchingConfig = new LaunchingConfig();
				launchingConfig.tab = tab;
				launchingConfig.order = order;
				confs.add(launchingConfig);
			} catch (Exception e) {
				Activator.logError("Error instanciate the tab.", e);