crashanalysis/crashanalyser/com.nokia.s60tools.crashanalyser.corecomponents/src/com/nokia/s60tools/crashanalyser/corecomponents/plugin/CrashAnalyserCoreComponentsPlugin.java
changeset 4 615035072f7e
parent 0 5ad7ad99af01
equal deleted inserted replaced
3:431bbaccaec8 4:615035072f7e
    22 
    22 
    23 import org.eclipse.core.runtime.FileLocator;
    23 import org.eclipse.core.runtime.FileLocator;
    24 import org.eclipse.core.runtime.Plugin;
    24 import org.eclipse.core.runtime.Plugin;
    25 import org.osgi.framework.BundleContext;
    25 import org.osgi.framework.BundleContext;
    26 
    26 
       
    27 
       
    28 
    27 /**
    29 /**
    28  * The activator class controls the plug-in life cycle
    30  * The activator class controls the plug-in life cycle
    29  */
    31  */
    30 public class CrashAnalyserCoreComponentsPlugin extends Plugin {
    32 public class CrashAnalyserCoreComponentsPlugin extends Plugin {
    31 
    33 
    33 	public static final String PLUGIN_ID = "com.nokia.s60tools.crashanalyser.corecomponents";
    35 	public static final String PLUGIN_ID = "com.nokia.s60tools.crashanalyser.corecomponents";
    34 	private String pluginInstallPath = ""; //$NON-NLS-1$
    36 	private String pluginInstallPath = ""; //$NON-NLS-1$
    35 	
    37 	
    36 	// The shared instance
    38 	// The shared instance
    37 	private static CrashAnalyserCoreComponentsPlugin plugin;
    39 	private static CrashAnalyserCoreComponentsPlugin plugin;
    38 	
    40 
       
    41 	protected static final String DATA_FOLDER = "data\\";	
       
    42 
    39 	/**
    43 	/**
    40 	 * The constructor
    44 	 * The constructor
    41 	 */
    45 	 */
    42 	public CrashAnalyserCoreComponentsPlugin() {
    46 	public CrashAnalyserCoreComponentsPlugin() {
    43 		// No implementation needed
    47 		// No implementation needed
    88 			return plugin.pluginInstallPath;
    92 			return plugin.pluginInstallPath;
    89 		} catch (Exception e) {
    93 		} catch (Exception e) {
    90 			return ""; //$NON-NLS-1$
    94 			return ""; //$NON-NLS-1$
    91 		}
    95 		}
    92 	}	
    96 	}	
       
    97 	
       
    98 	/**
       
    99 	 * Returns the location for data-folder which contains all 
       
   100 	 * error & panic description xml files
       
   101 	 * @return
       
   102 	 */
       
   103 	public static String getDataPath() {
       
   104 		return getPluginInstallPath() + File.separator + DATA_FOLDER;
       
   105 	}		
       
   106 
    93 }
   107 }