sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/global/Constants.java
changeset 1 1050670c6980
child 6 f65f740e69f9
equal deleted inserted replaced
0:5ad7ad99af01 1:1050670c6980
       
     1 /*
       
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Definitions for the class Constants
       
    15  *
       
    16  */
       
    17 
       
    18 package com.nokia.s60tools.analyzetool.global;
       
    19 
       
    20 /**
       
    21  * Contains all the defined constants
       
    22  *
       
    23  * @author kihe
       
    24  *
       
    25  */
       
    26 public class Constants {
       
    27 
       
    28 	public static enum ACTIONS {
       
    29 		RUN_VIEW_MEM_LEAKS, RUN_BUILD, RUN_CLEAN
       
    30 	}
       
    31 	
       
    32 	public static enum Operation {
       
    33 		PROCESS_START, PROCESS_END, ALLOC, FREE, ALLOCH, FREEH, ALLOCF, FREEF, DLL_LOAD, DLL_UNLOAD, NOVALUE;
       
    34 
       
    35 		public static Operation toOperation(String str) {
       
    36 			try {
       
    37 				return valueOf(str);
       
    38 			} catch (Exception ex) {
       
    39 				return NOVALUE;
       
    40 			}
       
    41 		}
       
    42 	}
       
    43 
       
    44 	/** AnalyzeTool specific constants */
       
    45 	public final static String ANALYZE_TOOL_TITLE = "AnalyzeTool";
       
    46 	public final static String ANALYZE_TOOL_TITLE_WITH_VERSION = "AnalyzeTool v%s";
       
    47 	public final static String MAIN_TAB_TITLE = "Results";
       
    48 	public final static String ANALYZE_TOOL_VIEW_ID = "com.nokia.s60tools.analyzetool.ui.MainView";
       
    49 	public final static String ANALYZE_TOOL_PREFS_ID = "com.nokia.s60tools.analyzetool.preferences.AnalyzeToolPreferencePage";
       
    50 	/**
       
    51 	 * Progress monitor text displayed when AnalyzeTool processing some action
       
    52 	 * long time
       
    53 	 */
       
    54 	public final static String PROGRESSDIALOG_TITLE = "Processing analysis data";
       
    55 	public final static String PROGRESSDIALOG_ATOOL = "Executing AnalyzeTool";
       
    56 	public final static String PROGRESSDIALOG_CLEAR_CHANGES = "Cleaning changes made by AnalyzeTool";
       
    57 
       
    58 	public final static String PROGRESSDIALOG_CLEAN_COMPLETE = "Changes made by AnalyzeTool cleaned";
       
    59 	public static final String PROGRESSDIALOG_ANALYZE_COMPLETE = "Analysis complete";
       
    60 	/** AnalyzeTool toolbar actions text */
       
    61 	public final static String ACTION_AT_BUILD_ACTIVE = "Deactivate AnalyzeTool build - currently activated";
       
    62 	public final static String ACTION_AT_BUILD_DEACTIVE = "Activate AnalyzeTool build - currently deactivated";
       
    63 	public final static String ACTION_CLEAR_CHANGES = "Clean AnalyzeTool changes";
       
    64 	public final static String ACTION_CLEAR_CHANGES_TOOLTIP = "Clean all changes made by AnalyzeTool (delete atool_temp folder(s) etc.)";
       
    65 	public final static String ACTION_CHANGE_REPORT_LEVEL = "Change report detail level";
       
    66 	public final static String ACTION_CHANGE_REPORT_LEVEL_ALL = "Report detail level: All";
       
    67 	public final static String ACTION_CHANGE_REPORT_LEVEL_KNOWN = "Report detail level: Known";
       
    68 	public final static String ACTION_CHANGE_REPORT_LEVEL_TOPMOST = "Report detail level: Topmost";
       
    69 	public final static String ACTION_CHANGE_LOGGING_MODE = "Change data gathering mode";
       
    70 	public final static String ACTION_CHANGE_LOGGING_MODE_TOOLTIP_EXT = "Current mode: Monitored external";
       
    71 	public final static String ACTION_CHANGE_LOGGING_MODE_TOOLTIP_FAST = "Current mode: External";
       
    72 	public final static String ACTION_CHANGE_LOGGING_MODE_TOOLTIP_S60 = "Current mode: Monitored Internal";
       
    73 	public final static String ACTION_CHANGE_LOGGING_MODE_TOOLTIP_ASK = "Current mode: Ask always";
       
    74 	public final static String ACTION_SAVE = "Save raw test run data or memory leak results";
       
    75 	public final static String ACTION_SAVE_REPORT = "Save memory leak results";
       
    76 	public final static String ACTION_SAVE_DATA = "Save raw test run data";
       
    77 	public final static String ACTION_START_SUBTEST = "Start subtest";
       
    78 	public final static String ACTION_STOP_SUBTEST = "Stop subtest";
       
    79 	public static final String ACTION_START_TRACE = "Start tracing";
       
    80 	public static final String ACTION_STOP_TRACE = "Stop tracing";
       
    81 	public static final String ACTION_OPEN = "Open and analyze data file";
       
    82 	public static final String ACTION_OPEN_DOTS = "Open and analyze data file...";
       
    83 	public static final String ACTION_CLEAR_RESULTS = "Clear project results";
       
    84 	public static final String ACTION_RE_ANALYZE = "Re-analyze results";
       
    85 	public static final String ACTION_RE_ANALYZE_TOOLTIP = "You can re-analyze recently opened file.";
       
    86 	public static final String ACTION_COPY = "Copy to clipboard";
       
    87 	public static final String ACTION_OPEN_PREFS = "Open AnalyzeTool preferences";
       
    88 	public static final String ACTION_OPEN_PREFS_TOOLTIP = "Open AnalyzeTool preferences";
       
    89 	/** Dialog related text */
       
    90 	// File save dialog title when user saves project results (XML file)
       
    91 	public final static String DIALOG_SAVE_REPORT = "Save memory leak results";
       
    92 
       
    93 	// File save dialog title when user save test run data ( data file )
       
    94 	public final static String DIALOG_SAVE_TRACE = "Save raw test run data";
       
    95 
       
    96 	// Selection dialog title when user builds project with AnalyzeTool and
       
    97 	// logging mode is set to "Ask always"
       
    98 	public final static String DIALOG_SELECT_LOGGING_MODE = "Select data gathering mode for AnalyzeTool";
       
    99 
       
   100 	// generic title for all dialogs, information notes
       
   101 	public final static String DIALOG_TITLE = "AnalyzeTool";
       
   102 
       
   103 	// File selection dialog title when user wants to open and analyze data file
       
   104 	public static final String DIALOG_SELECT_DATA_FILE = "Select data file";
       
   105 
       
   106 	// Input dialog title when user inputs data file name
       
   107 	public static final String DIALOG_INPUT_DATA_FILE_NAME = "Enter device data file name";
       
   108 
       
   109 	/**
       
   110 	 * Information dialog text in these dialogs user has possible to press just
       
   111 	 * "Ok"
       
   112 	 */
       
   113 
       
   114 	// when trying to save project results
       
   115 	public static final String INFO_NO_RESULTS_FILE = "No results file found in the current project.";
       
   116 
       
   117 	// when trying to save test run data
       
   118 	public static final String INFO_NO_DATA_FILE = "No data file found in the current project.";
       
   119 
       
   120 	// after the file is saved
       
   121 	public static final String INFO_SAVE_SUCCESS = "The file successfully saved to: ";
       
   122 
       
   123 	// information text when user try to use actions and the atool.exe can not
       
   124 	// be executed
       
   125 	public static final String INFO_ATOOL_NOT_AVAILABLE = "\n\nCan not execute command line engine. \nCheck AnalyzeTool preferences.";
       
   126 	public static final String ERROR_ATOOL_NOT_AVAILABLE = "Can not execute command line engine. \nCheck AnalyzeTool preferences.";
       
   127 
       
   128 	// info to user if AnalyzeTool for some reason can create results
       
   129 	public static final String INFO_FILE_INVALID = "Can not analyze. \nNo data to be analyzed.";
       
   130 
       
   131 	// when user try use AnalyzeTool without selection project first
       
   132 	public static final String NO_PROJ_SELECT = "No project selected. \nPlease select a project.";
       
   133 
       
   134 	// if user try to open data file for the project and AnalyzeTool already
       
   135 	// processing another data file.
       
   136 	public static final String INFO_ALLREADY_RUNNING = "AnalyzeTool is already processing previously selected file. Try again later.";
       
   137 
       
   138 	/** Confirmation dialog */
       
   139 	// when user wants to clean AnalyzeTool made changes
       
   140 	public static final String CONFIRM_DELETE_ALL = "This option deletes all temporary files created by AnalyzeTool. \n\n Do you want to continue?";
       
   141 
       
   142 	// when starting the trace and there are data file available
       
   143 	public static final String CONFIRM_OVERWRITE_FILE = "The project already contains a data file that will be overwritten. \nDo you want to save it first?";
       
   144 
       
   145 	// when user select folder which does not contain atool.exe via AnalyzeTool
       
   146 	// preference pages.
       
   147 	public static final String CONFIRM_DIR_DOES_NOT_CONTAIN_ATOOL = "Directory does not contain atool.exe. \n\nDo you want to continue?";
       
   148 
       
   149 	/** Tree model text */
       
   150 	// when no results are opened/available
       
   151 	public static final String INFO_NO_DATA_FILE_AVAILABLE = "No data file opened or trace data captured.";
       
   152 	/** Preference page title*/
       
   153 	public static final String ATOOL_DESC = "AnalyzeTool Carbide extension configuration";
       
   154 	/** Trace capturing related text */
       
   155 	public static final String INFO_NO_DATA = "No data";
       
   156 	public static final String SUBTEST_INPUT_NAME = "Enter subtest name.";
       
   157 	public static final String SUBTEST_NO_PROCESSES = "No processes started, could not start a subtest.";
       
   158 	public static final String SUBTEST_SELECT_TARGET = "Select the target.";
       
   159 	public static final String SUBTEST_RUNNING_PROCESSES_INFO = "Running processes";
       
   160 	public static final String SUBTEST_NO_SUBTESTS = "No subtests started.";
       
   161 	public static final String SUBTEST_SELECT_SUBTEST_TO_STOP = "Select which subtest should be stopped.";
       
   162 	public static final String SUBTEST_ALLREADY_RUNNING = "The given subtest already started for the active process.";
       
   163 	public static final String SUBTEST_STARTED = "Subtest started: ";
       
   164 	public static final String SUBTEST_ENDED = "Subtest ended: ";
       
   165 	public static final String INFO_TRACE_START = "Trace started.";
       
   166 	public static final String INFO_TRACE_STOP = "Trace stopped.";
       
   167 	public static final String INFO_TRACE_FROM_TARGET_START = "Trace from %s started.";
       
   168 	public static final String INFO_TRACE_FROM_EMULATOR = "emulator";
       
   169 	public static final String INFO_TRACE_FROM_DEVICE = "device";
       
   170 	public static final String INFO_ALLOCATED_MEM = "Number of memory allocations: ";
       
   171 	public static final String NO_OPENED_FILES = "No recently opened files.";
       
   172 	public static final String STARTING_TRACE = "Starting trace capture";
       
   173 	/** Tracing utility error information */
       
   174 	public static final String TRACE_ALLREADY_CONNECTED = "Tracing utility connection reserved for another plug-in.";
       
   175 	public static final String TRACE_GENERAL_ERROR = "General Tracing utility error.";
       
   176 	public static final String TRACE_CON_SET_ERROR = "Invalid Tracing utility connection settings.";
       
   177 	public static final String TRACE_CANT_FIND_DATAPR = "Cannot find dataprocessor. \nPlease contact the support team.";
       
   178 	public static final String TRACE_ERROR_NONE = "";
       
   179 	public static final String TRACE_DISC_ERROR = "Error while disconnecting Tracing utility.";
       
   180 	public static final String TRACE_NOT_FOUND = "Could not load Tracing utility plugin.";
       
   181 
       
   182 	/** Main view tree model related constants */
       
   183 	public static final String HANDLE_LEAK_MODULES_TITLE = "Modules with handle leaks";
       
   184 	public static final String MEMORY_LEAK_MODULES_TITLE = "Modules with memory leaks";
       
   185 	public static final String TEST_RUNS_TREE_TITLE = "Test runs";
       
   186 	public static final String TREE_TITLE = "runs";
       
   187 	public static final String RUN_TREE_RUN = "Run: ";
       
   188 	public static final String RUN_TREE_RUN_MEM_LEAKS = " Memory Leaks: ";
       
   189 	public static final String RUN_TREE_RUN_HANDLE_LEAKS = " Handle leaks: ";
       
   190 	public static final String RUN_TREE_START_TIME = " Start time: ";
       
   191 	public static final String RUN_TREE_PROCESS_NAME = " Process name: ";
       
   192 	public static final String RUN_TREE_BUILD_TARGET = " Build target: ";
       
   193 	public static final String RUN_TREE_FILTERED = " filtered)";
       
   194 	public static final String MODULE_TREE_MEM_LEAKS = " memory leaks";
       
   195 	public static final String MODULE_TREE_HANDLE_LEAKS = " handle leaks";
       
   196 	public static final String ITEM_TREE_MEM_LEAKS = "Memory leak ";
       
   197 	public static final String SUBTEST_TREE_TITLE = "Subtest: ";
       
   198 	public static final String NO_MEM_LEAKS_CURRENT_LEVEL = "No memory leaks info available for current detail level. Try to change report detail level.";
       
   199 	public static final String RUN_FAILED = " FAILED ";
       
   200 	public static final String RUN_ABNORMAL = "Abnormal process end";
       
   201 	public static final String RUN_NO_LEAKS = "No memory leaks.";
       
   202 
       
   203 	public static final String CANCELLED = "Canceled.";
       
   204 
       
   205 	/**Error information if AnalyzeTool libraries are not installed*/
       
   206 	public static final String CAN_NOT_FIND_LIBRARIES = "Can not find AnalyzeTool library files from current SDK. \n\nYou can build AnalyzeTool from sources or contact " +
       
   207 			"AnalyzeTool development team to get AnalyzeTool binaries.";
       
   208 
       
   209 	public static final String CAN_NOT_FIND_LIBRARIES_MARKER = "Can not find AnalyzeTool library files from current SDK."; 
       
   210 	/**If user try to build with unsupported platform*/
       
   211 	public static final String PLATFORM_NOT_SUPPORTED = "AnalyzeTool supports only ARMV5, GCCE and WINSCW build platforms. \n\nDo you want to continue?";
       
   212 
       
   213 	public static final String TOO_OLD_ENGINE = "Current version of AnalyzeTool Engine is too old. \nRequired version must be 1.6.0 or higher.\n\nCheck AnalyzeTool preferences.";
       
   214 
       
   215 	/** Error text when trying to import unknown module to the workspace and module could not be found*/
       
   216 	public static final String CAN_NOT_FIND_MODULE = "Can not find module from the active SDK";
       
   217 
       
   218 	public static final String BUILD_STATE_CHANGED = "Project build state changed. \nDo you want to re-analyze results?";
       
   219 
       
   220 	public static final String BUILD_CANCELLED = "\n\nAnalyzeTool build cancelled.";
       
   221 
       
   222 	public static final String BUILD_AND_INSTRUMENT = "Instrument and build with AnalyzeTool";
       
   223 
       
   224 	public static final String COMPLETE = "Complete";
       
   225 
       
   226 	public static final String OUTPUT_READER_TITLE = "AnalyzeTool - emulator output reader";
       
   227 
       
   228 	public static final String INPUT_ILLEGAL = "Illegal character";
       
   229 
       
   230 	public static final String INPUT_TOO_LONG = "Data file name is too long.";
       
   231 
       
   232 	public static final String INPUT_NO_SPACES_ALLOWED = "No spaces allowed";
       
   233 
       
   234 	public static final String MAIN_CAN_NOT_COPY = "Cannot copy: \n";
       
   235 	/**
       
   236 	 * Preference page constants
       
   237 	 */
       
   238 	public static final String PREFS_EXT = "Monitored external data gathering";
       
   239 	public static final String PREFS_EXT_TOOLTIP = "Gather data to the host computer through external connection.";
       
   240 	public static final String PREFS_EXT_FAST = "External data gathering";
       
   241 	public static final String PREFS_EXT_FAST_TOOLTIP = "Gather data to the host computer through external connection.";
       
   242 	public static final String PREFS_S60 = "Monitored internal data gathering";
       
   243 	public static final String PREFS_S60_TOOLTIP = "Gather data to a file in the target device.";
       
   244 	public static final String PREFS_USER_SPEC = "Name from the user";
       
   245 	public static final String PREFS_USER_SPEC_TOOLTIP = "Ask the file name from the user when building.";
       
   246 	public static final String PREFS_USE_PROCESS_NAME = "Name from the process";
       
   247 	public static final String PREFS_USE_PROCESS_NAME_TOOLTIP = "Use the process name as the name of the file.";
       
   248 	public static final String PREFS_ASK_ALWAYS = "Ask Always";
       
   249 	public static final String PREFS_ASK_ALWAYS_TOOLTIP = "Ask data gathering mode from the user every time when building.";
       
   250 	public static final String PREFS_ATOOL_VER_NOT_FOUND ="Not available";
       
   251 
       
   252 	public static final String PREFS_ATOOL_GROUP_TITLE= "AnalyzeTool Engine";
       
   253 	public static final String PREFS_USE_INTERNAL_TITLE = "Use internal command line engine";
       
   254 	public static final String PREFS_USE_EXTERNAL_TITLE = "Use external command line engine";
       
   255 	public static final String PREFS_SELECT_FOLDER = "Choose the atool.exe directory";
       
   256 	public static final String PREFS_ATOOL_PATH = "&Atool.exe path:";
       
   257 	public static final String PREFS_BROWSE = "Browse...";
       
   258 	public static final String PREFS_VERBOSE = "Verbose output";
       
   259 	public static final String PREFS_VERBOSE_TOOLTIP = "Verbose output to Console View.";
       
   260 	public static final String PREFS_ENGINE_VERSION = "Engine version: ";
       
   261 	public static final String PREFS_ADVANCED = "Advanced settings";
       
   262 	public static final String PREFS_USE_ROM_SYMBOL = "Use rom symbol file";
       
   263 	public static final String PREFS_USE_ROM_SYMBOL_TOOLTIP = "Use rom symbol file to pinpoint rom locations.";
       
   264 	public static final String PREFS_ROM_SYMBOL_PATH = "Rom symbol file:";
       
   265 	public static final String PREFS_ROM_SYMBOL_PATH_TOOLTIP = "Define which rom symbol file to use.";
       
   266 	public static final String PREFS_SELECT_ROM_SYMBOL= "Choose the rom symbol file.";
       
   267 	public static final String PREFS_REFRESH_VERSION = "Refresh version";
       
   268 	public static final String PREFS_REPORT_LEVEL = "Report level";
       
   269 	public static final String PREFS_SHOW_EVERY = "&Show every detail";
       
   270 	public static final String PREFS_SHOW_KNOWN = "Show only known code lines(default)";
       
   271 	public static final String PREFS_SHOW_TOPMOST = "Show only topmost memory allocation code line";
       
   272 	public static final String PREFS_SELECT_DIR = "Select folder";
       
   273 	public static final String PREFS_CSSIZE_TITLE = "Callstack size";
       
   274 	public static final String PREFS_ZERO_BUTTON = "No callstack stored";
       
   275 	public static final String PREFS_FORTY_BUTTON = "40 items";
       
   276 	public static final String PREFS_HUNDRED_BUTTON = "100 items (Slows down test run a lot)";
       
   277 	public static final String PREFS_CUSTOM_BUTTON = "Custom size (0-255)";
       
   278 	public static final String PREFS_CS_SIZE_DISABLED_TOOLTIP = "Command line engine version is too old, version must be 1.7.4 or higher";
       
   279 
       
   280 	/**Statistics view constants*/
       
   281 	public static final String STATISTICS_TAB_TITLE = "Top allocation locations";
       
   282 	public static final String STATISTICS_SELECT_RUN = "Select run";
       
   283 	public static final String STATISTICS_NODE_FILE = "File";
       
   284 	public static final String STATISTICS_NODE_FUNCTION = "Function";
       
   285 	public static final String STATISTICS_NODE_LINE = "Line";
       
   286 	public static final String STATISTICS_NODE_ALLOCS = "Allocations";
       
   287 	public static final String STATISTICS_NODE_TIME = "Time";
       
   288 	public static final String STATISTICS_NODE_SIZE = "Size";
       
   289 	public static final String STATISTICS_GENERATING = "Generating statistics. Please wait...";
       
   290 	public static final String STATISTICS_GENERATING_PROG_TITLE = "Generating statistics";
       
   291 	public static final String GRAPH_GENERATING_PROG_TITLE = "Generating graph model";
       
   292 	public static final String STATISTICS_NO_STATS = "No statistics available.";
       
   293 
       
   294 
       
   295 	public static final String FIND_COMP_JOB_TITLE = "Finding component locations";
       
   296 	public static final String FIND_COMP_JOB_SELECT_MODULE = "Select module";
       
   297 	// UI RELATED CONSTANTS END HERE
       
   298 
       
   299 
       
   300 	public static final String SOURCE_NOT_FOUND = "Source file not found from any project.";
       
   301 
       
   302 
       
   303 	public static final String SOURCE_FILE_EDITOR_ID = "org.eclipse.jdt.ui.SourceView";
       
   304 	/** Plug-in id */
       
   305 	public static final String PLUGINID = "com.nokia.s60tools.analyzetool";
       
   306 
       
   307 	/** Parser id's to command launcher */
       
   308 	public static final String[] atoolParserIds = new String[] { "com.nokia.s60tools.analyzetool" };
       
   309 
       
   310 	/** File name which is used when saving captured data thru Tracing utility */
       
   311 	public static final String FILENAME = "AtoolDataFile.dat";
       
   312 
       
   313 	/** File name which is used when generating memory analysis results */
       
   314 	public static final String FILENAME_CARBIDE = "AtoolFileToCarbide.xml";
       
   315 
       
   316 	/** Alloc */
       
   317 	public static final String ALLOC = "ALLOC";
       
   318 	/** Alloc */
       
   319 	public static final String ALLOCH = "ALLOCH";
       
   320 	/** Alloc */
       
   321 	public static final String ALLOCF = "ALLOCF";
       
   322 	/** Free */
       
   323 	public static final String FREE = "FREE";
       
   324 	public static final String FREEH = "FREEH";
       
   325 	public static final String FREEF = "FREEF";
       
   326 
       
   327 	public static final String DLL_LOAD = "DLL_LOAD";
       
   328 	public static final String DLL_UNLOAD = "DLL_UNLOAD";
       
   329 
       
   330 	/** Memory allocation deallocation flag definitions */
       
   331 	public static final int TYPE_ALLOC = 0;
       
   332 
       
   333 	public static final int TYPE_FREE = 1;
       
   334 	public static final int TYPE_ALLOCH = 2;
       
   335 	public static final int TYPE_FREEH = 3;
       
   336 
       
   337 	/** Prefix to find */
       
   338 	public final static String PREFIX = "PCSS";
       
   339 
       
   340 	/** Process start string */
       
   341 	public static final String PROCESS_START = "PROCESS_START";
       
   342 	/** Process end string */
       
   343 	public static final String PROCESS_END = "PROCESS_END";
       
   344 	/** Button icon definitions */
       
   345 	public static final String BUTTON_RUN = "icons/btn_record.png";
       
   346 	public static final String BUTTON_STOP = "icons/btn_terminate.png";
       
   347 	public static final String BUTTON_BUILD = "icons/btn_build.png";
       
   348 	public static final String BUTTON_CLEAN = "icons/btn_clear.png";
       
   349 	public static final String BUTTON_COMPUTER = "icons/btn_computer.png";
       
   350 	public static final String BUTTON_COMPUTER_FAST = "icons/btn_fast.png";
       
   351 	public static final String BUTTON_CELLURAR = "icons/btn_cellular.png";
       
   352 	public static final String BUTTON_ASK = "icons/btn_ask.png";
       
   353 	public static final String BUTTON_OPEN = "icons/btn_open.png";
       
   354 	public static final String BUTTON_DETAILS_ALL = "icons/btn_details_all.png";
       
   355 	public static final String BUTTON_DETAILS_KNOWN = "icons/btn_details_known.png";
       
   356 	public static final String BUTTON_DETAILS_TOPMOST = "icons/btn_details_topmost.png";
       
   357 	public static final String BUTTON_SAVE = "icons/btn_save.png";
       
   358 	public static final String BUTTON_START_SUBTEST = "icons/btn_start_subtest.png";
       
   359 	public static final String BUTTON_STOP_SUBTEST = "icons/btn_stop_subtest.png";
       
   360 	public static final String BUTTON_OPEN_PREFS = "icons/open_prefs.png";
       
   361 	public static final String ICON_OUTSIDE = "icons/module_outside.png";
       
   362 	public static final String ICON_NOT_BUILD = "icons/module_not_build.png";
       
   363 	public static final String ICON_BUILD = "icons/module_build.png";
       
   364 	/** Data file definitions */
       
   365 	public static final int DATAFILE_LOG = 0;
       
   366 	public static final int DATAFILE_TRACE = 1;
       
   367 	public static final int DATAFILE_XML = 2;
       
   368 
       
   369 	public static final int DATAFILE_INVALID = -1;
       
   370 	public static final int DATAFILE_EMPTY = -2;
       
   371 
       
   372 	public static final String DATAFILE_VERSION = "DATA_FILE_VERSION";
       
   373 	public static final String ATOOL_TEMP = "atool_temp";
       
   374 	public static final String ATOOL_FOLDER = "atool_folder";
       
   375 	public static final String LOGGING_MODE = "logging_mode";
       
   376 	public static final String S60_LOG_FILE_MODE = "s60_log_file_mode";
       
   377 	public static final String USER_SELECTED_FOLDER = "user_selected";
       
   378 	public static final String CREATE_STATISTIC = "create_stats";
       
   379 	public static final String USE_ROM_SYMBOL = "use_rom_symbol";
       
   380 	public static final String USE_ROM = "use_rom";
       
   381 	public static final String ROM_LOC = "rom_loc";
       
   382 	public static final String USE_ROM_SYMBOL_LOCATION = "rom_symbol_location";
       
   383 	public static final String CALLSTACK_SIZE = "callstack_size";
       
   384 	public static final String USE_CALLSTACK_SIZE = "use_user_define_cs_size";
       
   385 	public static final String REPORT_LEVEL = "report_level";
       
   386 	public static final String ATOOL_VERBOSE = "verbose_atool";
       
   387 	/** Logging mode preference values */
       
   388 	public static final String LOGGING_EXT = "EXT";
       
   389 	public static final String LOGGING_EXT_FAST = "EXT_FAST";
       
   390 	public static final String LOGGING_S60 = "S60";
       
   391 	public static final String LOGGING_ASK_ALLWAYS = "ask_always";
       
   392 	public static final String LOGGING_FAST_ENABLED = "logging_fast_enabled";
       
   393 
       
   394 	/** report level preference values */
       
   395 	public static final String REPORT_EVERY = "every_details";
       
   396 
       
   397 	public static final String REPORT_KNOWN = "known_lines";
       
   398 	public static final String REPORT_TOPMOST = "topmost_lines";
       
   399 
       
   400 	/** S60 logging mode data file name */
       
   401 	public static final String LOGGING_S60_PROCESS_NAME = "process_name";
       
   402 	public static final String LOGGING_S60_USER_SPECIFIED = "user_secified";
       
   403 
       
   404 	/** Save report file types */
       
   405 	public static final int SAVE_REPORT_FILE_DATA = 0;
       
   406 	public static final int SAVE_REPORT_FILE_XML = 1;
       
   407 
       
   408 
       
   409 	public static final String BUILD_TARGET_WINSCW = "WINSCW";
       
   410 	public static final String BUILD_TARGET_ARMV5 = "ARMV5";
       
   411 	public static final String BUILD_TARGET_GCEE = "GCCE";
       
   412 
       
   413 	/** Default preference values */
       
   414 	public static final String DEFAULT_ATOOL_FOLDER = "c:\\apps\\atool\\";
       
   415 
       
   416 	public static final String DEFAULT_LOGGING_MODE = Constants.LOGGING_EXT;
       
   417 	public static final String DEFAULT_REPORT_LEVEL = Constants.REPORT_KNOWN;
       
   418 	public static final String PREFS_LOGGING_MODE_TITLE = "Data gathering mode";
       
   419 
       
   420 	public static final int ANALYZE_ASK_FOR_USER = 0;
       
   421 	public static final int ANALYZE_USE_DATA_FILE = 1;
       
   422 
       
   423 	public static final String ANALYZE_CONSOLE_ID = "Memory Analysis ID";
       
   424 	public static final String ENRULE = " - ";
       
   425 
       
   426 	public static final int SAVE_DATA_FILE = 0;
       
   427 	public static final int SAVE_DATA_FILE_NO = 1;
       
   428 	public static final int SAVE_DATA_FILE_CANCEL = 2;
       
   429 
       
   430 	public static final String ATOOL_INST = "-inst";
       
   431 	public static final String ATOOL_INST_E = "-instrument_e";
       
   432 	public static final String ATOOL_INST_EF = "-instrument_ef";
       
   433 	public static final String ATOOL_INST_I = "-instrument_i";
       
   434 	public static final String ATOOL_UNINST = "-uninstrument";
       
   435 	public static final String ATOOL_USE_VARIANT = "-variant";
       
   436 	public static final String ATOOL_UNINST_FAILED = "-uninstrument_failed";
       
   437 	public static final String ATOOL_SHOW_DEBUG = "-show_debug";
       
   438 	public static final String USE_INTERNAL = "use_internal";
       
   439 	public static final String CALLSTACK_SIZE_OPTION = "-acs";
       
   440 
       
   441 	public static final int MAX_LENGTH_OF_USER_INPUT = 50;
       
   442 
       
   443 	public static final int HISTORY_LEVEL = 5;
       
   444 
       
   445 	//version number comparision constants
       
   446 	public static final int VERSION_NUMBERS_INVALID = -1;
       
   447 	public static final int VERSION_NUMBERS_FIRST = 0;
       
   448 	public static final int VERSION_NUMBERS_SECOND = 1;
       
   449 	public static final int VERSION_NUMBERS_EQUALS = 2;
       
   450 	public static final String MIN_VERSION = "1.6.0";
       
   451 	public static final String CS_SUPPORT_MIN_VERSION = "1.7.4";
       
   452 
       
   453 	public static final String UNKNOWN = "Unknown";
       
   454 
       
   455 	public static final String PREFS_KEEP_IN_SYNC = "keepFilesSync";
       
   456 	public static final String PREFS_PROMPT_MMP = "promptMMPChanges";
       
   457 	public static final String PREFS_MANAGE_DEPS = "manageDeps";
       
   458 	public static final String PREFS_CONC_BUILD = "useConcBuild";
       
   459 	public static final String PREFS_BUILD_CANCELLED = "buildCancelled";
       
   460 
       
   461 	// List of libraries what AnalyzeTool needs when compiled applications on armv5 platform
       
   462 	public static final String atoolLibs[] = {
       
   463 		"epoc32\\RELEASE\\armv5\\LIB\\AToolMemoryHook.lib",
       
   464 		"epoc32\\RELEASE\\armv5\\udeb\\AtoolStaticLib.lib",
       
   465 		"epoc32\\RELEASE\\armv5\\urel\\AtoolStaticLib.lib"
       
   466 	};
       
   467 
       
   468 	// List of libraries what AnalyzeTool needs when compiled applications on armv5 platform (using sbs2 / ABIV2 binaries)
       
   469 	public static final String  atoolLibsSbs2[] = {
       
   470 		"epoc32\\RELEASE\\armv5\\LIB\\AToolMemoryHook.dso",
       
   471 		"epoc32\\RELEASE\\armv5\\udeb\\AtoolStaticLib.lib",
       
   472 		"epoc32\\RELEASE\\armv5\\urel\\AtoolStaticLib.lib"
       
   473 	};
       
   474 
       
   475 	// List of libraries what AnalyzeTool needs when compiled applications on winscw platform
       
   476 	public static final String  atoolLibsWinscw[] = {
       
   477 		"epoc32\\RELEASE\\winscw\\udeb\\AToolMemoryHook.lib",
       
   478 		"epoc32\\RELEASE\\winscw\\udeb\\AtoolStaticLib.lib",
       
   479 		"epoc32\\RELEASE\\winscw\\urel\\AtoolStaticLib.lib"
       
   480 	};
       
   481 
       
   482 	public static enum COMMAND_LINE_ERROR_CODE {
       
   483 		EXECUTE_ERROR(-1),
       
   484 		OK(0),
       
   485 		/* instrument errors */
       
   486 		INVALID_ARGUMENT_ERROR(1), 
       
   487 		CANNOT_FIND_EPOCROOT(3),
       
   488 		MAKEFILE_ERROR(5),
       
   489 		NO_SUPPORTED_MODULES_ERROR(8),
       
   490 		/* Analyze errors */
       
   491 		WRONG_DATA_FILE_VERSION(10),
       
   492 		ANALYZE_ERROR(12),
       
   493 		SYMBOL_FILE_ERROR(14),
       
   494 		DATA_FILE_EMPTY(31),
       
   495 		DATA_FILE_INVALID(32),
       
   496 		/* building&releasing errors */
       
   497 		RELEASABLES_ERROR(20),
       
   498 		RESTORE_MODULES_ERROR(21),
       
   499 		CREATING_TEMP_CPP_ERROR(22),
       
   500 		CLEANING_TEMP_ERROR(23),
       
   501 		READ_MAKEFILE_ERROR(24),
       
   502 		MODIFY_MODULES_ERROR(25),
       
   503 		INVALID_MMP_DEFINED(27),
       
   504 
       
   505 		/* User issued exit */
       
   506 		UNKNOWN_ERROR(999);
       
   507 		private final int code;
       
   508 
       
   509 		COMMAND_LINE_ERROR_CODE(int c) {
       
   510 		   code = c;
       
   511 		 }
       
   512 
       
   513 		 public int getCode() {
       
   514 		   return code;
       
   515 		 }
       
   516 	}
       
   517 }