| /******************************************************************************* |
| * Copyright (c) 2015 Obeo and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Obeo - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.wst.jsdt.bower.core.internal; |
| |
| import org.eclipse.core.runtime.Plugin; |
| import org.eclipse.wst.jsdt.nodejs.core.api.utils.ILogger; |
| |
| /** |
| * The activator of the Bower Core bundle. |
| * |
| * @author <a href="mailto:stephane.begaudeau@obeo.fr">Stephane Begaudeau</a> |
| */ |
| public class BowerCorePlugin extends Plugin { |
| /** |
| * The sole instance of the activator. |
| */ |
| private static BowerCorePlugin instance; |
| |
| /** |
| * The constructor. |
| */ |
| public BowerCorePlugin() { |
| super(); |
| instance = this; |
| } |
| |
| /** |
| * Returns the sole instance of the Bower IDE UI activator. |
| * |
| * @return The sole instance |
| */ |
| public static final BowerCorePlugin getInstance() { |
| return instance; |
| } |
| |
| /** |
| * Returns the logger. |
| * |
| * @return The logger |
| */ |
| public ILogger getLogger() { |
| return new BowerCoreLog(this.getLog()); |
| } |
| } |