Mercurial > hg > de.codedo.java.editor
view src/de/codedo/java/editor/Activator.java @ 6:6287f5e469f1
Reset the title image when an editor is closed.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 07 Sep 2015 14:42:44 +0200 |
parents | f7d908568cfc |
children |
line wrap: on
line source
package de.codedo.java.editor; 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 = "de.codedo.java.editor"; //$NON-NLS-1$ // The shared instance private static Activator Plugin; private CodedoJavaElementImageProvider _javaElementImageProvider; public static Activator getDefault() { return Plugin; } public void start(BundleContext context) throws Exception { super.start(context); Plugin = this; } public void stop(BundleContext context) throws Exception { Plugin = null; super.stop(context); } public synchronized CodedoJavaElementImageProvider getJavaElementImageProvider() { if (_javaElementImageProvider == null) { _javaElementImageProvider = new CodedoJavaElementImageProvider(); } return _javaElementImageProvider; } }