/*
 * Licensed to Laurent Broudoux (the "Author") under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. Author licenses this
 * file to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package com.github.lbroudoux.dsl.eip.parser.camel;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

/**
 * The activator class controls the plug-in life cycle
 */
public class Activator extends AbstractUIPlugin {

	// The plug-in ID
	public static final String PLUGIN_ID = "com.github.lbroudoux.dsl.eip.parser.camel"; //$NON-NLS-1$

	// The shared instance
	private static Activator plugin;
	
	/**
	 * The constructor
	 */
	public Activator() {
	}

	/*
	 * (non-Javadoc)
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
	 */
	public void start(BundleContext context) throws Exception {
		super.start(context);
		plugin = this;
	}

	/*
	 * (non-Javadoc)
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
	 */
	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;
	}

}

@@ -870,34 +870,167 @@
 pse.
-ui.plugin.AbstractUIPlugin
+core.runtime.IStatus;%0Aimport org.eclipse.core.runtime.Status;%0Aimport org.eclipse.ui.plugin.AbstractUIPlugin;%0Aimport org.eclipse.ui.statushandlers.StatusManager
 ;%0Aim
@@ -1996,10 +1996,731 @@
 in;%0A%09%7D%0A%0A
+%09/**%0A    * @return the id of the EIP Spring ui plugin%0A    */%0A   public static String getPluginId() %7B%0A      return getDefault().getBundle().getSymbolicName();%0A   %7D%0A   %0A   /**%0A    * Handle an error. The error is logged. If %3Ccode%3Eshow%3C/code%3E is%0A    * %3Ccode%3Etrue%3C/code%3E the error is shown to the user.%0A    * @param message a localized message%0A    * @param throwable%0A    * @param show%0A    */%0A   public static void handleError(String message, Throwable throwable, boolean show) %7B%0A      IStatus status = new Status(IStatus.ERROR, getPluginId(), message, throwable);%0A      int style = StatusManager.LOG;%0A      if (show) %7B%0A         style %7C= StatusManager.SHOW;%0A      %7D%0A      StatusManager.getManager().handle(status, style);%0A   %7D%0A
 %7D%0A

Add base plumbing for Camel parser & comparator