sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi/src/com/nokia/carbide/cpp/internal/pi/visual/GenericTable.java
changeset 5 844b047e260d
parent 2 b9ab3b238396
child 12 ae255c9aa552
equal deleted inserted replaced
4:615035072f7e 5:844b047e260d
    62 	protected static final int COLUMN_ID_PATH           =  8;
    62 	protected static final int COLUMN_ID_PATH           =  8;
    63 	protected static final int COLUMN_ID_IN_BINARY      =  9;
    63 	protected static final int COLUMN_ID_IN_BINARY      =  9;
    64 	protected static final int COLUMN_ID_IN_BINARY_PATH = 10;
    64 	protected static final int COLUMN_ID_IN_BINARY_PATH = 10;
    65 	protected static final int COLUMN_ID_START_ADDR     = 11;
    65 	protected static final int COLUMN_ID_START_ADDR     = 11;
    66 	protected static final int COLUMN_ID_PRIORITY       = 12;
    66 	protected static final int COLUMN_ID_PRIORITY       = 12;
       
    67 
    67 	
    68 	
    68 	// these are never used as actual column headers - they indicate a double sort
    69 	// these are never used as actual column headers - they indicate a double sort
    69 	protected static final int COLUMN_ID_FULL_PATH      = 13;
    70 	protected static final int COLUMN_ID_FULL_PATH      = 13;
    70 	protected static final int COLUMN_ID_FULL_IN_PATH   = 14;
    71 	protected static final int COLUMN_ID_FULL_IN_PATH   = 14;
    71 
    72 
       
    73 	public static final int COLUMN_ID_SWI_THREAD		= 15;
       
    74 	public static final int COLUMN_ID_ADDRESS			= 16;
       
    75 	public static final int COLUMN_ID_SWI_FUNCTION		= 17;
       
    76 	public static final int COLUMN_ID_RETURN_ADDRESS	= 18;
       
    77 	public static final int COLUMN_ID_SWI_COUNT			= 19;
       
    78 	public static final int COLUMN_ID_IRQ_LINE			= 20;
       
    79 	public static final int COLUMN_ID_IRQ_COUNT			= 21;
       
    80 	public static final int COLUMN_ID_SWI_CHECK			= 22;
       
    81 
       
    82 	
    72 	protected static final int COLOR_COLUMN_INDEX = 0;
    83 	protected static final int COLOR_COLUMN_INDEX = 0;
    73 	
    84 	
    74 	// table column headings
    85 	// table column headings
    75 	protected static final String COLUMN_HEAD_THREAD       = Messages.getString("GenericTable.thread"); //$NON-NLS-1$
    86 	protected static final String COLUMN_HEAD_THREAD       = Messages.getString("GenericTable.thread"); //$NON-NLS-1$
    76 	protected static final String COLUMN_HEAD_BINARY       = Messages.getString("GenericTable.binary"); //$NON-NLS-1$
    87 	protected static final String COLUMN_HEAD_BINARY       = Messages.getString("GenericTable.binary"); //$NON-NLS-1$
    86 	protected static final String COLUMN_HEAD_PRIORITY     = Messages.getString("GenericTable.priority"); //$NON-NLS-1$
    97 	protected static final String COLUMN_HEAD_PRIORITY     = Messages.getString("GenericTable.priority"); //$NON-NLS-1$
    87 	protected static final String COLUMN_HEAD_MEMORY_CHUNKS = Messages.getString("GenericTable.chunks"); //$NON-NLS-1$
    98 	protected static final String COLUMN_HEAD_MEMORY_CHUNKS = Messages.getString("GenericTable.chunks"); //$NON-NLS-1$
    88 	protected static final String COLUMN_HEAD_MEMORY_STACK  = Messages.getString("GenericTable.stackHeap"); //$NON-NLS-1$
    99 	protected static final String COLUMN_HEAD_MEMORY_STACK  = Messages.getString("GenericTable.stackHeap"); //$NON-NLS-1$
    89 	protected static final String COLUMN_HEAD_MEMORY_TOTAL  = Messages.getString("GenericTable.memoryTotal"); //$NON-NLS-1$
   100 	protected static final String COLUMN_HEAD_MEMORY_TOTAL  = Messages.getString("GenericTable.memoryTotal"); //$NON-NLS-1$
    90 	protected static final String COLUMN_HEAD_MEMORY_NAME   = Messages.getString("GenericTable.threadProcess"); //$NON-NLS-1$
   101 	protected static final String COLUMN_HEAD_MEMORY_NAME   = Messages.getString("GenericTable.threadProcess"); //$NON-NLS-1$
    91 
   102 	protected static final String COLUMN_HEAD_LIBRARY_NAME   = Messages.getString("GenericTable.libraryName"); //$NON-NLS-1$
       
   103 	protected static final String COLUMN_HEAD_LIBRARY_LOAD_SIZE = Messages.getString("GenericTable.libraryLoadSize"); //$NON-NLS-1$
       
   104 	protected static final String COLUMN_HEAD_LIBRARY_SELECTION_LOAD_COUNT = Messages.getString("GenericTable.librarySelectionLoadCount"); //$NON-NLS-1$
       
   105 	
    92 	// table column widths
   106 	// table column widths
    93 	protected static final int COLUMN_WIDTH_SHOW           =  40;
   107 	protected static final int COLUMN_WIDTH_SHOW           =  40;
    94 	protected static final int COLUMN_WIDTH_PERCENT_LOAD   =  52;
   108 	protected static final int COLUMN_WIDTH_PERCENT_LOAD   =  52;
    95 //	protected static final int COLUMN_WIDTH_COLOR_MIN      =  22;
   109 //	protected static final int COLUMN_WIDTH_COLOR_MIN      =  22;
    96 //	protected static final int COLUMN_WIDTH_COLOR_MAX      =  60;
   110 //	protected static final int COLUMN_WIDTH_COLOR_MAX      =  60;
   107     protected static final int COLUMN_WIDTH_IN_BINARY_PATH =  80;
   121     protected static final int COLUMN_WIDTH_IN_BINARY_PATH =  80;
   108     protected static final int COLUMN_WIDTH_8_DIGIT_HEX    = 100;
   122     protected static final int COLUMN_WIDTH_8_DIGIT_HEX    = 100;
   109 	protected static final int COLUMN_WIDTH_MEMORY_CHUNKS  =  80;
   123 	protected static final int COLUMN_WIDTH_MEMORY_CHUNKS  =  80;
   110 	protected static final int COLUMN_WIDTH_MEMORY_STACK   =  80;
   124 	protected static final int COLUMN_WIDTH_MEMORY_STACK   =  80;
   111 	protected static final int COLUMN_WIDTH_MEMORY_TOTAL   =  80;
   125 	protected static final int COLUMN_WIDTH_MEMORY_TOTAL   =  80;
   112 	protected static final int COLUMN_WIDTH_MEMORY_NAME    = 300;
   126 	protected static final int COLUMN_WIDTH_MEMORY_NAME    	= 300;
   113     
   127 	protected static final int COLUMN_WIDTH_THREAD_IRQ_LINE = 300;
       
   128 	protected static final int COLUMN_WIDTH_LIBRARY_LOAD_SIZE  =  80;
       
   129 	protected static final int COLUMN_WIDTH_LIBRARY_NAME    = 250;
       
   130     protected static final int COLUMN_WIDTH_LIBRARY_SELECTION_COUNT   =  160;
       
   131     protected static final int COLUMN_WIDTH_ADDRESS_COUNT 	= 100;
       
   132 	protected static final int COLUMN_WIDTH_RETURN_ADDRESS 	= 90;
       
   133 	protected static final int COLUMN_WIDTH_COUNT 			= 50;
       
   134 	protected static final int COLUMN_WIDTH_SWI_FUNCTION 	= 250;
       
   135 	protected static final int COLUMN_WIDTH_CHECK_COLUMN	= 40;
       
   136 
       
   137 	
   114     // colors are now included with the checkbox column
   138     // colors are now included with the checkbox column
   115     protected static final int COLOR_COLUMN = 0;
   139     protected static final int COLOR_COLUMN = 0;
   116     
   140     
   117 	// NOTE: This text value must be unique to this column, but not
   141 	// NOTE: This text value must be unique to this column, but not
   118 	// discernible to the eye. It is used to find the checkbox column
   142 	// discernible to the eye. It is used to find the checkbox column
   224 	    Enumeration<ProfiledGeneric> e = tableItemData.elements();
   248 	    Enumeration<ProfiledGeneric> e = tableItemData.elements();
   225 	    while (e.hasMoreElements())
   249 	    while (e.hasMoreElements())
   226 	    {
   250 	    {
   227 	        if (e.nextElement().equals(anObject))
   251 	        if (e.nextElement().equals(anObject))
   228 	        {
   252 	        {
   229 	            return new Integer(counter);
   253 	            return Integer.valueOf(counter);
   230 	        }
   254 	        }
   231 	        counter++;
   255 	        counter++;
   232 	    }
   256 	    }
   233 	    return null;
   257 	    return null;
   234 	}
   258 	}