equal
deleted
inserted
replaced
19 |
19 |
20 import org.eclipse.core.runtime.IStatus; |
20 import org.eclipse.core.runtime.IStatus; |
21 import org.eclipse.ui.plugin.AbstractUIPlugin; |
21 import org.eclipse.ui.plugin.AbstractUIPlugin; |
22 import org.osgi.framework.BundleContext; |
22 import org.osgi.framework.BundleContext; |
23 |
23 |
|
24 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerPlugin; |
24 import com.nokia.carbide.cpp.internal.ui.SharedImages; |
25 import com.nokia.carbide.cpp.internal.ui.SharedImages; |
25 import com.nokia.cpp.internal.api.utils.core.Logging; |
26 import com.nokia.cpp.internal.api.utils.core.Logging; |
26 |
27 |
27 /** |
28 /** |
28 * The activator class controls the plug-in life cycle |
29 * The activator class controls the plug-in life cycle |
29 */ |
30 */ |
30 public class CarbideUIPlugin extends AbstractUIPlugin { |
31 public class CarbideUIPlugin extends AbstractUIPlugin { |
31 |
32 |
32 // The plug-in ID |
33 // The plug-in ID |
33 public static final String PLUGIN_ID = "com.nokia.carbide.cpp.ui"; |
34 public static final String PLUGIN_ID = "com.nokia.carbide.cpp.ui"; |
|
35 |
|
36 private static final String CARBIDE_IDE_FEATURE = "CARBIDE_IDE"; //$NON-NLS-1$ |
34 |
37 |
35 // The shared instance |
38 // The shared instance |
36 private static CarbideUIPlugin plugin; |
39 private static CarbideUIPlugin plugin; |
37 |
40 |
38 private static ICarbideSharedImages sharedImages; |
41 private static ICarbideSharedImages sharedImages; |
48 * (non-Javadoc) |
51 * (non-Javadoc) |
49 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
52 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
50 */ |
53 */ |
51 public void start(BundleContext context) throws Exception { |
54 public void start(BundleContext context) throws Exception { |
52 super.start(context); |
55 super.start(context); |
|
56 |
|
57 FeatureUseTrackerPlugin.getFeatureUseProxy().useFeature(CARBIDE_IDE_FEATURE); |
53 } |
58 } |
54 |
59 |
55 /* |
60 /* |
56 * (non-Javadoc) |
61 * (non-Javadoc) |
57 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) |
62 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) |