equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 package com.nokia.carbide.cpp; |
17 package com.nokia.carbide.cpp; |
18 |
18 |
|
19 import java.io.File; |
|
20 |
19 import org.eclipse.jface.resource.ImageDescriptor; |
21 import org.eclipse.jface.resource.ImageDescriptor; |
20 import org.eclipse.ui.plugin.AbstractUIPlugin; |
22 import org.eclipse.ui.plugin.AbstractUIPlugin; |
21 import org.osgi.framework.BundleContext; |
23 import org.osgi.framework.BundleContext; |
22 |
24 |
23 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerConsts; |
25 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerConsts; |
24 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerPlugin; |
26 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerPlugin; |
|
27 import com.nokia.carbide.internal.discovery.ui.wizard.P2Utils; |
25 |
28 |
26 /** |
29 /** |
27 * The main plugin class to be used in the desktop. |
30 * The main plugin class to be used in the desktop. |
28 */ |
31 */ |
29 public class ProductPlugin extends AbstractUIPlugin { |
32 public class ProductPlugin extends AbstractUIPlugin { |
41 /** |
44 /** |
42 * This method is called upon plug-in activation |
45 * This method is called upon plug-in activation |
43 */ |
46 */ |
44 public void start(BundleContext context) throws Exception { |
47 public void start(BundleContext context) throws Exception { |
45 super.start(context); |
48 super.start(context); |
|
49 File file = P2Utils.getInitialFeaturesFile(); |
|
50 if (!file.exists()) { |
|
51 P2Utils.writeFeaturesToFile(file); |
|
52 } |
46 |
53 |
47 FeatureUseTrackerPlugin.getFeatureUseProxy().startUsingFeature(FeatureUseTrackerConsts.CARBIDE_IDE); |
54 FeatureUseTrackerPlugin.getFeatureUseProxy().startUsingFeature(FeatureUseTrackerConsts.CARBIDE_IDE); |
48 } |
55 } |
49 |
56 |
50 /** |
57 /** |