equal
deleted
inserted
replaced
20 |
20 |
21 import org.eclipse.jface.resource.ImageDescriptor; |
21 import org.eclipse.jface.resource.ImageDescriptor; |
22 import org.eclipse.ui.plugin.AbstractUIPlugin; |
22 import org.eclipse.ui.plugin.AbstractUIPlugin; |
23 import org.osgi.framework.BundleContext; |
23 import org.osgi.framework.BundleContext; |
24 |
24 |
25 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerConsts; |
|
26 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerPlugin; |
25 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerPlugin; |
27 import com.nokia.carbide.internal.discovery.ui.wizard.P2Utils; |
26 import com.nokia.carbide.internal.discovery.ui.wizard.P2Utils; |
28 |
27 |
29 /** |
28 /** |
30 * The main plugin class to be used in the desktop. |
29 * The main plugin class to be used in the desktop. |
31 */ |
30 */ |
32 public class ProductPlugin extends AbstractUIPlugin { |
31 public class ProductPlugin extends AbstractUIPlugin { |
33 |
32 |
|
33 private static final String CARBIDE_IDE_FEATURE = "CARBIDE_IDE"; //$NON-NLS-1$ |
|
34 |
34 //The shared instance. |
35 //The shared instance. |
35 private static ProductPlugin plugin; |
36 private static ProductPlugin plugin; |
36 |
37 |
37 /** |
38 /** |
38 * The constructor. |
39 * The constructor. |
49 File file = P2Utils.getInitialFeaturesFile(); |
50 File file = P2Utils.getInitialFeaturesFile(); |
50 if (!file.exists()) { |
51 if (!file.exists()) { |
51 P2Utils.writeFeaturesToFile(file); |
52 P2Utils.writeFeaturesToFile(file); |
52 } |
53 } |
53 |
54 |
54 FeatureUseTrackerPlugin.getFeatureUseProxy().startUsingFeature(FeatureUseTrackerConsts.CARBIDE_IDE); |
55 FeatureUseTrackerPlugin.getFeatureUseProxy().useFeature(CARBIDE_IDE_FEATURE); |
55 } |
56 } |
56 |
57 |
57 /** |
58 /** |
58 * This method is called when the plug-in is stopped |
59 * This method is called when the plug-in is stopped |
59 */ |
60 */ |