- /*\r
- * Dynamic Analyzer\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: \r
- * HyunJong Park <phjwithyou.park@samsung.com>\r
- * Jooyoul Lee <jy.exe.lee@samsung.com>\r
- * Juyoung Kim <j0.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- * \r
- * Contributors:\r
- * - S-Core Co., Ltd\r
- * \r
- */\r
- \r
- package org.tizen.dynamicanalyzer.resources;\r
- \r
- import org.eclipse.swt.graphics.Color;\r
- import org.eclipse.swt.graphics.RGB;\r
- import org.tizen.dynamicanalyzer.theme.DAThemeWhite;\r
- \r
- public class ColorResources {\r
- public static final Color WHITE = getColor("white"); //$NON-NLS-1$\r
- public static final Color BLACK = getColor("black"); //$NON-NLS-1$\r
- public static final Color BLUE = getColor("blue"); //$NON-NLS-1$\r
- public static final Color RED = getColor("red"); //$NON-NLS-1$\r
- public static final Color YELLOW = getColor("yellow"); //$NON-NLS-1$\r
- public static final Color DARK_YELLOW = getColor("dark_yellow"); //$NON-NLS-1$\r
- public static final Color PURPLE = getColor("purple"); //$NON-NLS-1$\r
- \r
- public static final Color GREEN = getColor("green"); //$NON-NLS-1$\r
- public static final Color BROWN = getColor("brown"); //$NON-NLS-1$\r
- public static final Color NAVY = getColor("navy"); //$NON-NLS-1$\r
- public static final Color DARKVIOLET = getColor("darkviolet"); //$NON-NLS-1$\r
- public static final Color MAROON = getColor("maroon"); //$NON-NLS-1$\r
- public static final Color TEAL = getColor("teal"); //$NON-NLS-1$\r
- public static final Color INDIGO = getColor("indigo"); //$NON-NLS-1$\r
- public static final Color DARKGOLDENROD = getColor("darkgoldenrod"); //$NON-NLS-1$\r
- public static final Color CHOCOLATE = getColor("chocolate"); //$NON-NLS-1$\r
- public static final Color MAGNETA = getColor("magneta"); //$NON-NLS-1$\r
- \r
- public static final Color GOLDENROD = getColor("goldenrod"); //$NON-NLS-1$\r
- public static final Color TURQUOISE = getColor("turquoise"); //$NON-NLS-1$\r
- public static final Color VIOLET = getColor("violet"); //$NON-NLS-1$\r
- public static final Color SLATEBLUE = getColor("slateblue"); //$NON-NLS-1$\r
- public static final Color ORANGE = getColor("orange"); //$NON-NLS-1$\r
- public static final Color YELLOWGREEN = getColor("yellowgreen"); //$NON-NLS-1$\r
- public static final Color SKYBLUE = getColor("skyblue"); //$NON-NLS-1$\r
- public static final Color ORCHID = getColor("orchid"); //$NON-NLS-1$\r
- public static final Color SANDYBROWN = getColor("sandybrown"); //$NON-NLS-1$\r
- public static final Color MEDIUMPURPLE = getColor("mediumpurple"); //$NON-NLS-1$\r
- \r
- // shell window background color\r
- public static Color WINDOW_BG_COLOR = getColor("window_bg_color"); //$NON-NLS-1$\r
- \r
- public static Color DIALOG_BG_UPPER = getColor("dialg_bg_upper");//$NON-NLS-1$\r
- public static Color DIALOG_BG_LOWER = getColor("dialg_bg_lower");//$NON-NLS-1$\r
- public static Color DIALOG_SUNKEN_1 = getColor("dialg_sunken_1");//$NON-NLS-1$\r
- public static Color DIALOG_SUNKEN_2 = getColor("dialg_sunken_2");//$NON-NLS-1$\r
- \r
- /** Timeline Edit chart dialog **/\r
- public static Color EDIT_CHART_DIALOG_UPPER = getColor("edit_chart_dialog_upper");//$NON-NLS-1$\r
- public static Color EDIT_CHART_DIALOG_LOWER = getColor("edit_chart_dialog_lower");//$NON-NLS-1$\r
- public static Color EDIT_CHART_TABLE_SEPARATE_COLOR = getColor("edit_chart_table_separate_color"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_NORMAL_COLOR_START = getColor("edit_chart_button_normal_color_start"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_NORMAL_COLOR_END = getColor("edit_chart_button_normal_color_end"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_HOVER_COLOR_START = getColor("edit_chart_button_hover_color_start"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_HOVER_COLOR_END = getColor("edit_chart_button_hover_color_end"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_PUSH_COLOR_START = getColor("edit_chart_button_push_color_start"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_PUSH_COLOR_END = getColor("edit_chart_button_push_color_end"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_OUTLINE_NORMAL_COLOR = getColor("edit_chart_button_outline_normal_color"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_OUTLINE_HOVER_COLOR = getColor("edit_chart_button_outline_hover_color"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_OUTLINE_PUSH_COLOR = getColor("edit_chart_button_outline_push_color"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_INLINE_NORMAL_COLOR = getColor("edit_chart_button_inline_normal_color"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_INLINE_HOVER_COLOR = getColor("edit_chart_button_inline_hover_color"); //$NON-NLS-1$\r
- public static Color EDIT_CHART_BUTTON_INLINE_PUSH_COLOR = getColor("edit_chart_button_inline_push_color"); //$NON-NLS-1$\r
- \r
- public static Color VIEW_BORDER = getColor("view_border"); //$NON-NLS-1$\r
- public static Color VIEW_BORDER_1 = getColor("view_border_1"); //$NON-NLS-1$\r
- public static Color VIEW_BORDER_2 = getColor("view_border_2"); //$NON-NLS-1$\r
- public static Color VIEW_BORDER_3 = getColor("view_border_3"); //$NON-NLS-1$\r
- public static Color VIEW_BG_COLOR = getColor("view_bg_color"); //$NON-NLS-1$\r
- public static Color VIEW_TITLE_FONT_COLOR = getColor("view_title_font_color");//$NON-NLS-1$\r
- \r
- /** title bar colors **/\r
- public static Color TITLEBAR_TEXT_COLOR = getColor("titlebar_text_color"); //$NON-NLS-1$\r
- public static Color TITLEBAR_BG_COLOR = getColor("titlebar_bg"); //$NON-NLS-1$\r
- public static Color TITLEBAR_START_COLOR = getColor("titlebar_start_color"); //$NON-NLS-1$\r
- public static Color TITLEBAR_END_COLOR = getColor("titlebar_end_color"); //$NON-NLS-1$\r
- public static Color TITLEBAR_BOTTOM_STROKE_1 = getColor("titlebar_bottom_stroke_1"); //$NON-NLS-1$\r
- public static Color TITLEBAR_BOTTOM_STROKE_2 = getColor("titlebar_bottom_stroke_2"); //$NON-NLS-1$\r
- \r
- /** Coolbar bg color **/\r
- public static Color COOLBAR_BG_COLOR = getColor("coolbar_bg_color"); //$NON-NLS-1$\r
- public static Color DEFAULT_FONT_COLOR = getColor("default_font_color");//$NON-NLS-1$\r
- \r
- /*** combo button color ***/\r
- public static Color TOOLBAR_COMBO_NORMAL_START = getColor("toolbar_combo_normal_start"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_NORMAL_END = getColor("toolbar_combo_normal_end"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_PUSH_START = getColor("toolbar_combo_push_start"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_PUSH_END = getColor("toolbar_combo_push_end"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_HOVER_START = getColor("toolbar_combo_hover_start"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_HOVER_END = getColor("toolbar_combo_hover_end"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_DISABLE_START = getColor("toolbar_combo_disable_start"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_DISABLE_END = getColor("toolbar_combo_disable_end"); //$NON-NLS-1$\r
- \r
- public static Color TOOLBAR_COMBO_OUTLINE_NORMAL_IN_COLOR = getColor("toolbar_combo_outline_normal_in_color"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_OUTLINE_HOVER_IN_COLOR = getColor("toolbar_combo_outline_hover_in_color"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_OUTLINE_PUSH_IN_COLOR = getColor("toolbar_combo_outline_push_in_color"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_OUTLINE_DISABLE_IN_COLOR = getColor("toolbar_combo_outline_disable_in_color"); //$NON-NLS-1$\r
- \r
- public static Color TOOLBAR_COMBO_BUTTON_NORMAL_COLOR = getColor("toolbar_combo_button_normal_color"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_BUTTON_HOVER_COLOR = getColor("toolbar_combo_button_hover_color"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_BUTTON_PUSH_COLOR = getColor("toolbar_combo_button_push_color"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_BUTTON_DISABLE_COLOR = getColor("toolbar_combo_button_disable_color"); //$NON-NLS-1$\r
- \r
- public static Color TOOLBAR_COMBO_ARROW_OUTLINE_COLOR = getColor("toolbar_combo_arrow_outline_color"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_FONT_NORMAL_COLOR = getColor("toolbar_combo_font_normal_color"); //$NON-NLS-1$\r
- public static Color TOOLBAR_COMBO_FONT_DISABLE_COLOR = getColor("toolbar_combo_font_disable_color"); //$NON-NLS-1$\r
- \r
- \r
- public static Color DEVICE_APPLICATION_BUTTON_OUTLINE = getColor("device_application_button_outline"); //$NON-NLS-1$\r
- \r
- /** device and application combo specific colors end **/\r
- \r
- /** title tab combo color **/\r
- public static Color TAB_COMBO_NORMAL_START = getColor("tab_combo_normal_start"); //$NON-NLS-1$\r
- public static Color TAB_COMBO_NORMAL_END = getColor("tab_combo_normal_end"); //$NON-NLS-1$\r
- public static Color TAB_COMBO_NORMAL_STROKE = getColor("tab_combo_normal_stroke"); //$NON-NLS-1$\r
- public static Color TAB_COMBO_HOVER_START = getColor("tab_combo_hover_start"); //$NON-NLS-1$\r
- public static Color TAB_COMBO_HOVER_END = getColor("tab_combo_hover_end"); //$NON-NLS-1$\r
- public static Color TAB_COMBO_HOVER_STROKE = getColor("tab_combo_hover_stroke"); //$NON-NLS-1$\r
- public static Color TAB_COMBO_PUSH_START = getColor("tab_combo_push_start"); //$NON-NLS-1$\r
- public static Color TAB_COMBO_PUSH_END = getColor("tab_combo_push_end"); //$NON-NLS-1$\r
- public static Color TAB_COMBO_PUSH_STROKE = getColor("tab_combo_push_stroke"); //$NON-NLS-1$\r
- \r
- \r
- /** title combo color **/\r
- public static Color FRAME_RATE_COMBO_DISABLE_START = getColor("frame_rate_combo_disable_start"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_DISABLE_END = getColor("frame_rate_combo_disable_end"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_NORMAL_START = getColor("frame_rate_combo_normal_start"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_NORMAL_END = getColor("frame_rate_combo_normal_end"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_HOVER_START = getColor("frame_rate_combo_hover_start"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_HOVER_END = getColor("frame_rate_combo_hover_end"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_PUSH_START = getColor("frame_rate_combo_push_start"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_PUSH_END = getColor("frame_rate_combo_push_end"); //$NON-NLS-1$\r
- \r
- public static Color FRAME_RATE_COMBO_OUTLINE_DISABLE = getColor("frame_rate_combo_outline_disable"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_OUTLINE_NORMAL = getColor("frame_rate_combo_outline_normal"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_OUTLINE_HOVER = getColor("frame_rate_combo_outline_hover"); //$NON-NLS-1$\r
- public static Color FRAME_RATE_COMBO_OUTLINE_PUSH = getColor("frame_rate_combo_outline_push"); //$NON-NLS-1$\r
- \r
- /*** common button colors ***/\r
- public static Color BUTTON_DISABLE_COLOR_START = getColor("button_disable_color_start"); //$NON-NLS-1$\r
- public static Color BUTTON_DISABLE_COLOR_END = getColor("button_disable_color_end"); //$NON-NLS-1$\r
- public static Color BUTTON_NORMAL_COLOR_START = getColor("button_normal_color_start"); //$NON-NLS-1$\r
- public static Color BUTTON_NORMAL_COLOR_END = getColor("button_normal_color_end"); //$NON-NLS-1$\r
- public static Color BUTTON_HOVER_COLOR_START = getColor("button_hover_color_start"); //$NON-NLS-1$\r
- public static Color BUTTON_HOVER_COLOR_END = getColor("button_hover_color_end"); //$NON-NLS-1$\r
- public static Color BUTTON_PUSH_COLOR_START = getColor("button_push_color_start"); //$NON-NLS-1$\r
- public static Color BUTTON_PUSH_COLOR_END = getColor("button_push_color_end"); //$NON-NLS-1$\r
- \r
- public static Color BUTTON_OUTLINE_NORMAL_IN_COLOR = getColor("button_outline_normal_in_color"); //$NON-NLS-1$\r
- public static Color BUTTON_OUTLINE_PUSH_IN_COLOR = getColor("button_outline_push_in_color"); //$NON-NLS-1$\r
- public static Color BUTTON_OUTLINE_HOVER_IN_COLOR = getColor("button_outline_hover_in_color"); //$NON-NLS-1$\r
- public static Color BUTTON_OUTLINE_DISABLE_IN_COLOR = getColor("button_outline_disable_in_color"); //$NON-NLS-1$\r
- \r
- public static Color BUTTON_OUTLINE_NORMAL_COLOR = getColor("button_outline_normal_color"); //$NON-NLS-1$\r
- public static Color BUTTON_OUTLINE_PUSH_COLOR = getColor("button_outline_push_color"); //$NON-NLS-1$\r
- public static Color BUTTON_OUTLINE_HOVER_COLOR = getColor("button_outline_hover_color"); //$NON-NLS-1$\r
- public static Color BUTTON_OUTLINE_DISABLE_COLOR = getColor("button_outline_disable_color"); //$NON-NLS-1$\r
- \r
- public static Color BUTTON_NORMAL_FONT_COLOR = getColor("button_normal_font_color"); //$NON-NLS-1$\r
- public static Color BUTTON_PUSH_FONT_COLOR = getColor("button_push_font_color"); //$NON-NLS-1$\r
- public static Color BUTTON_HOVER_FONT_COLOR = getColor("button_hover_font_color"); //$NON-NLS-1$\r
- public static Color BUTTON_DISABLE_FONT_COLOR = getColor("button_disable_font_color"); //$NON-NLS-1$\r
- \r
- /** normal view layout colors start **/\r
- public static Color NORMAL_VIEW_LAYOUT_OUTER = getColor("normal_view_layout_outer"); //$NON-NLS-1$\r
- public static Color NORMAL_VIEW_LAYOUT_MIDDLE = getColor("normal_view_layout_middle"); //$NON-NLS-1$\r
- public static Color NORMAL_VIEW_LAYOUT_INNER = getColor("normal_view_layout_inner"); //$NON-NLS-1$\r
- /** normal view layout colors end **/\r
- \r
- /** view colors start **/\r
- public static Color SNAPSHOT_VIEW_OUTLINE = getColor("current_view_outline"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_TITLE_TEXT = WHITE;\r
- public static Color SNAPSHOT_VIEW_MIDDLE = NORMAL_VIEW_LAYOUT_MIDDLE;\r
- public static Color SNAPSHOT_VIEW_INNER = NORMAL_VIEW_LAYOUT_INNER;\r
- \r
- public static Color SNAPSHOT_VIEW_TABLE_TITLE_BG = getColor("current_view_table_title_bg"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_TABLE_TITLE_TEXT = getColor("current_view_table_title_text"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_TABLE_CONTENTS_BG = getColor("current_view_table_contents_bg"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_TABLE_CONTENTS_TEXT = getColor("current_view_table_contents_text"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_TABLE_LINE = getColor("current_view_table_line"); //$NON-NLS-1$\r
- \r
- public static Color SNAPSHOT_VIEW_CPU_TEXT = getColor("current_view_cpu_text"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_PROCESS_TEXT = getColor("current_view_process_text"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_GRAPH_BG = getColor("current_view_graph_bg"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_CPU_GRAPH = SNAPSHOT_VIEW_CPU_TEXT;\r
- public static Color SNAPSHOT_VIEW_PROCESS_GRAPH = SNAPSHOT_VIEW_PROCESS_TEXT;\r
- public static Color SNAPSHOT_VIEW_GRAPH_OUTLINE = getColor("current_view_graph_outline"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_SNAPSHOT_OUTLINE = getColor("current_view_snapshot_outline"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_VIEW_LOCK_TEXT = getColor("current_view_lock_text"); //$NON-NLS-1$\r
- /** current view colors end **/\r
- \r
- /** common table colors start **/\r
- public static Color TABLE_HEADER_BG = getColor("table_header_bg"); //$NON-NLS-1$\r
- public static Color TABLE_LINE = getColor("table_line"); //$NON-NLS-1$\r
- public static Color TABLE_CONTENTS_NORMAL = getColor("table_contents_normal"); //$NON-NLS-1$\r
- public static Color TABLE_CONTENTS_HOVER = getColor("table_contents_hover"); //$NON-NLS-1$\r
- public static Color TABLE_CONTENTS_SELECTED_START = getColor("table_contents_selected_start"); //$NON-NLS-1$\r
- public static Color TABLE_CONTENTS_SELECTED_END = getColor("table_contents_selected_end"); //$NON-NLS-1$\r
- public static Color TABLE_CONTENTS_SELECTED_FONT_COLOR = getColor("table_contents_selected_font_color"); //$NON-NLS-1$\r
- public static Color TABLE_HEADER_FONT_COLOR = getColor("table_title_font_color"); //$NON-NLS-1$\r
- public static Color TABLE_CONTENTS_FONT_COLOR = getColor("table_contents_font_color"); //$NON-NLS-1$\r
- public static Color TABLE_CONTENTS_FAILED_BACGOUND_COLOR = getColor("table_contents_failed_bacgound_color"); //$NON-NLS-1$\r
- public static Color TABLE_CONTENTS_FAILED_FONT_COLOR = getColor("table_contents_failed_font_color"); //$NON-NLS-1$\r
- /** common table colors end **/\r
- \r
- /** range color **/\r
- public static Color TABLE_RANGE_COLOR_RANGE = getColor("table_range_color_range"); //$NON-NLS-1$\r
- public static Color TABLE_RANGE_COLOR_SECOND_SELECTION = getColor("table_range_color_second_selection"); //$NON-NLS-1$\r
- public static Color TABLE_RANGE_COLOR_RANGE_SECOND = getColor("table_range_color_range_second"); //$NON-NLS-1$\r
- /** renge color end **/\r
- \r
- /** open trace popup colors **/\r
- public static Color OPEN_TRACE_LABEL_COLOR = getColor("open_trace_label_color");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_SAVE_CONTENTS_COLOR = getColor("open_trace_save_contents_color");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_TEMP_CONTENTS_COLOR = getColor("open_trace_temp_contents_color");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_OUTLINE_COLOR = getColor("open_trace_table_outline_color");//$NON-NLS-1$\r
- \r
- public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR1 = getColor("open_trace_table_content_normal_color1");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR1 = getColor("open_trace_table_content_hover_color1");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR1 = getColor("open_trace_table_content_selected_start_color1");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR1 = getColor("open_trace_table_content_selected_end_color1");//$NON-NLS-1$\r
- \r
- public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR2 = getColor("open_trace_table_content_normal_color2");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR2 = getColor("open_trace_table_content_hover_color2");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR2 = getColor("open_trace_table_content_selected_start_color2");//$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR2 = getColor("open_trace_table_content_selected_end_color2");//$NON-NLS-1$\r
- \r
- public static Color OPEN_TRACE_BUTTON_COMPOSITE_BG_COLOR = getColor("open_trace_button_composite_bg_color");//$NON-NLS-1$\r
- \r
- public static Color OPEN_TRACE_POPUP_CONTENTS_BG_COLOR = getColor("open_trace_popup_contents_bg_color"); //$NON-NLS-1$\r
- public static Color OPEN_TRACE_POPUP_BOTTOM_BG_COLOR = getColor("open_trace_popup_bottom_bg_color"); //$NON-NLS-1$\r
- public static Color OPEN_TRACE_TITLE_TEXT_COLOR = TITLEBAR_TEXT_COLOR;\r
- public static Color OPEN_TRACE_INNERTITLE_TEXT_COLOR = WHITE;\r
- public static Color OPEN_TRACE_BUTTON_TEXT_COLOR = WHITE;\r
- // public static Color OPEN_TRACE_TABLE_OUTLINE_COLOR =\r
- // SNAPSHOT_VIEW_TABLE_LINE;\r
- public static Color OPEN_TRACE_TABLE_LINE1_NORMAL = getColor("open_trace_table_line1_normal"); //$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_LINE1_HOVER = getColor("open_trace_table_line1_hover"); //$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_LINE_SELECTED_START = getColor("open_trace_table_line_selected_start"); //$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_LINE_SELECTED_END = getColor("open_trace_table_line_selected_end"); //$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_LINE2_NORMAL = getColor("open_trace_table_line2_normal"); //$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE_LINE2_HOVER = getColor("open_trace_table_line2_hover"); //$NON-NLS-1$\r
- public static Color OPEN_TRACE_TABLE2_FONT_COLOR = getColor("open_trace_table2_font_color"); //$NON-NLS-1$\r
- \r
- /** tab widget colors **/\r
- public static Color TAB_SELECTED_COLOR_START = getColor("tab_selected_color_start"); //$NON-NLS-1$\r
- public static Color TAB_SELECTED_COLOR_END = getColor("tab_selected_color_end"); //$NON-NLS-1$\r
- public static Color TAB_NORMAL_COLOR_START = getColor("tab_normal_color_start"); //$NON-NLS-1$\r
- public static Color TAB_NORMAL_COLOR_END = getColor("tab_normal_color_end"); //$NON-NLS-1$\r
- public static Color TAB_HOVER_COLOR_START = getColor("tab_hover_color_start"); //$NON-NLS-1$\r
- public static Color TAB_HOVER_COLOR_END = getColor("tab_hover_color_end"); //$NON-NLS-1$\r
- public static Color TAB_PUSH_COLOR_START = getColor("tab_push_color_start"); //$NON-NLS-1$\r
- public static Color TAB_PUSH_COLOR_END = getColor("tab_push_color_end"); //$NON-NLS-1$\r
- \r
- public static Color TAB_OUTLINE_NORMAL_COLOR = getColor("tab_outline_normal_color"); //$NON-NLS-1$\r
- public static Color TAB_OUTLINE_PUSH_COLOR = getColor("tab_outline_push_color"); //$NON-NLS-1$\r
- public static Color TAB_OUTLINE_HOVER_COLOR = getColor("tab_outline_hover_color"); //$NON-NLS-1$\r
- public static Color TAB_OUTLINE_SELECTED_COLOR = getColor("tab_outline_selected_color"); //$NON-NLS-1$\r
- \r
- public static Color TAB_SELECTED_FONT_COLOR = getColor("tab_selected_font_color"); //$NON-NLS-1$\r
- public static Color TAB_NORMAL_FONT_COLOR = getColor("tab_normal_font_color"); //$NON-NLS-1$\r
- public static Color TAB_HOVER_FONT_COLOR = getColor("tab_hover_font_color"); //$NON-NLS-1$\r
- public static Color TAB_PUSH_FONT_COLOR = getColor("tab_push_font_color"); //$NON-NLS-1$\r
- \r
- public static Color TAB_BG_COLOR = getColor("tab_bg_color"); //$NON-NLS-1$\r
- public static Color TAB_BG_COLOR_START = getColor("tab_bg_color_start"); //$NON-NLS-1$\r
- public static Color TAB_BG_COLOR_END = getColor("tab_bg_color_end"); //$NON-NLS-1$\r
- public static Color TAB_BG_OUTLINE_COLOR = getColor("tab_bg_outline_color"); //$NON-NLS-1$\r
- \r
- /** Page chart colors **/\r
- public static Color PAGE_CHART_HAEDER_BG = getColor("page_chart_header_bg"); //$NON-NLS-1$\r
- public static Color PAGE_CHART_SELECTION_BG = getColor("page_chart_selection_bg"); //$NON-NLS-1$\r
- public static Color PAGE_CHART_PARENT_BG = getColor("page_chart_parent_bg"); //$NON-NLS-1$\r
- public static Color PAGE_CHART_CHILD_BG = getColor("page_chart_child_bg"); //$NON-NLS-1$\r
- public static Color PAGE_OPEN_START_RUN = getColor("page_open_start_run"); //$NON-NLS-1$\r
- public static Color PAGE_OPEN_END_RUN = getColor("page_open_end_run"); //$NON-NLS-1$\r
- public static Color PAGE_OPEN_START_STOP = getColor("page_open_start_stop"); //$NON-NLS-1$\r
- public static Color PAGE_OPEN_END_STOP = getColor("page_open_end_stop"); //$NON-NLS-1$\r
- public static Color PAGE_CLOSED_START = getColor("page_closed_start"); //$NON-NLS-1$\r
- public static Color PAGE_CLOSED_END = getColor("page_closed_end"); //$NON-NLS-1$\r
- public static Color PAGE_USE_START = getColor("page_use_start"); //$NON-NLS-1$\r
- public static Color PAGE_USE_END = getColor("page_use_end"); //$NON-NLS-1$\r
- \r
- // /** Thread chart colors **/\r
- // public static Color THREAD_OPEN_START_RUN = getColor("thread_open_start_run"); //$NON-NLS-1$\r
- // public static Color THREAD_OPEN_END_RUN = getColor("thread_open_end_run"); //$NON-NLS-1$\r
- // public static Color THREAD_OPEN_START_STOP = getColor("thread_open_start_stop"); //$NON-NLS-1$\r
- // public static Color THREAD_OPEN_END_STOP = getColor("thread_open_end_stop"); //$NON-NLS-1$\r
- // public static Color THREAD_CLOSED_START = getColor("thread_closed_start"); //$NON-NLS-1$\r
- // public static Color THREAD_CLOSED_END = getColor("thread_closed_end"); //$NON-NLS-1$\r
- // public static Color THREAD_SLEEP_START = getColor("thread_sleep_start"); //$NON-NLS-1$\r
- // public static Color THREAD_SLEEP_END = getColor("thread_sleep_end"); //$NON-NLS-1$\r
- \r
- /** File chart colors **/\r
- public static Color FILE_API_USED = getColor("file_api_used"); //$NON-NLS-1$\r
- public static Color FILE_API_FAILED = getColor("file_api_failed"); //$NON-NLS-1$\r
- public static Color FILE_AREA_USED_START = getColor("file_area_used_start"); //$NON-NLS-1$\r
- public static Color FILE_AREA_USED_END = getColor("file_area_used_end"); //$NON-NLS-1$\r
- public static Color FILE_AREA_CLOSED_START = getColor("file_area_closed_start"); //$NON-NLS-1$\r
- public static Color FILE_AREA_CLOSED_END = getColor("file_area_closed_end"); //$NON-NLS-1$\r
- public static Color FILE_AREA_NOT_ACCESS_START = getColor("file_not_access_start"); //$NON-NLS-1$\r
- public static Color FILE_AREA_NOT_ACCESS_END = getColor("file_not_access_end"); //$NON-NLS-1$\r
- public static Color FILE_ACCESS_READ = getColor("file_access_read"); //$NON-NLS-1$\r
- public static Color FILE_ACCESS_WRITE = getColor("file_access_write"); //$NON-NLS-1$\r
- public static Color FILE_ACCESS_CONCURRENT_READ = getColor("file_access_concurrent_read"); //$NON-NLS-1$\r
- public static Color FILE_ACCESS_CONCURRENT_WRITE = getColor("file_access_concurrent_write"); //$NON-NLS-1$\r
- public static Color FILE_LOCK = getColor("file_lock"); //$NON-NLS-1$\r
- public static Color FILE_UNLOCK = getColor("file_unlock"); //$NON-NLS-1$file_unlock\r
- public static Color FILE_LOCK_WAITING = getColor("file_lock_waiting"); //$NON-NLS-1$\r
- public static Color FILE_OTHER_OPERATION = getColor("file_other_operation"); //$NON-NLS-1$\r
- public static Color FILE_OPENED = getColor("file_opened"); //$NON-NLS-1$\r
- public static Color FILE_DUPLICATE_OPENED = getColor("file_duplicate_opened"); //$NON-NLS-1$\r
- \r
- /** Network chart colors **/\r
- public static Color NETWORK_API_USED = getColor("network_api_used"); //$NON-NLS-1$\r
- public static Color NETWORK_API_FAILED = getColor("network_api_failed"); //$NON-NLS-1$\r
- public static Color NETWORK_AREA_FD_USED_START = getColor("network_area_fd_used_start"); //$NON-NLS-1$\r
- public static Color NETWORK_AREA_FD_USED_END = getColor("network_area_fd_used_end"); //$NON-NLS-1$\r
- public static Color NETWORK_AREA_CONNECTED_START = getColor("network_area_connected_start"); //$NON-NLS-1$\r
- public static Color NETWORK_AREA_CONNECTED_END = getColor("network_area_connected_end"); //$NON-NLS-1$\r
- public static Color NETWORK_AREA_CLOSED_START = getColor("network_area_closed_start"); //$NON-NLS-1$\r
- public static Color NETWORK_AREA_CLOSED_END = getColor("network_area_closed_end"); //$NON-NLS-1$\r
- public static Color NETWORK_AREA_NOT_CLOSED_START = getColor("network_area_not_closed_start"); //$NON-NLS-1$\r
- public static Color NETWORK_AREA_NOT_CLOSED_END = getColor("network_area_not_closed_end"); //$NON-NLS-1$\r
- public static Color NETWORK_ACCESS_RECV = getColor("network_access_recv"); //$NON-NLS-1$\r
- public static Color NETWORK_ACCESS_SEND = getColor("network_access_send"); //$NON-NLS-1$\r
- public static Color NETWORK_ACCESS_WAIT = getColor("network_access_wait"); //$NON-NLS-1$\r
- \r
- public static Color UNSELECTED_TAB_FIRST = getColor("unselected_tab_first"); //$NON-NLS-1$\r
- public static Color UNSELECTED_TAB_SECOND = getColor("unselected_tab_second"); //$NON-NLS-1$\r
- public static Color SELECTED_TAB_FIRST = getColor("selected_tab_first"); //$NON-NLS-1$\r
- public static Color SELECTED_TAB_SECOND = getColor("selected_tab_second"); //$NON-NLS-1$\r
- \r
- public static Color TOOLTIP = getColor("tooltip"); //$NON-NLS-1$\r
- \r
- public static Color BAR_GRAY1 = getColor("barGRAY1"); //$NON-NLS-1$\r
- public static Color BAR_GRAY2 = getColor("barGRAY2"); //$NON-NLS-1$\r
- public static Color BAR_GRAY3 = getColor("barGRAY3"); //$NON-NLS-1$\r
- \r
- /* Timeline */\r
- public static Color ITEM_BLUE_BRIGHT = getColor("item blue right");//$NON-NLS-1$\r
- public static Color ITEM_BLUE_DARK = getColor("item blue dark");//$NON-NLS-1$\r
- public static Color ITEM_BG = getColor("item background");//$NON-NLS-1$\r
- public static Color ITEM_BG_TOP = getColor("item_bg_top");//$NON-NLS-1$\r
- public static Color ITEM_BG_Bottom = getColor("item_bg_bottom");//$NON-NLS-1$\r
- \r
- public static Color TIMELINE_BG = getColor("timeline_bg"); //$NON-NLS-1$\r
- public static Color TRANS = getColor("timeline_bg"); //$NON-NLS-1$\r
- public static Color SNAPSHOT_CHART_FOREGROUND = BAR_GRAY1;\r
- public static Color SNAPSHOT_CHART_BACKGROUND = getColor("snapshot_chart_bg"); //$NON-NLS-1$\r
- \r
- public static Color GRAY_130 = getColor("GRAY_130"); //$NON-NLS-1$\r
- public static Color GRAY_170 = getColor("GRAY_170"); //$NON-NLS-1$\r
- public static Color GRAY_210 = getColor("GRAY_210"); //$NON-NLS-1$\r
- \r
- public static Color DEFAULT_FOREGROUND = getColor("defaultForeground"); //$NON-NLS-1$\r
- public static Color DEFAULT_BACKGROUND = getColor("defaultBackground"); //$NON-NLS-1$\r
- public static Color DEFAULT_RED = getColor("defaultRed"); //$NON-NLS-1$\r
- \r
- public static Color TIME_TICK_BG = getColor("time_tick_bg"); //$NON-NLS-1$\r
- public static Color TIME_TICK_LINE = getColor("time_tick_line"); //$NON-NLS-1$\r
- \r
- public static Color LIFECYCLE_INITIALIZING = getColor("lifecycle_initializing");//$NON-NLS-1$\r
- public static Color LIFECYCLE_RUNNING = getColor("lifecycle_running");//$NON-NLS-1$\r
- public static Color LIFECYCLE_PAUSING = getColor("lifecycle_pausing");//$NON-NLS-1$\r
- public static Color LIFECYCLE_TERMINATING = getColor("lifecycle_terminating");//$NON-NLS-1$\r
- \r
- public static Color ADD_CHART_NORMAL_STROKE = getColor("add_chart_normal_stroke");//$NON-NLS-1$\r
- public static Color ADD_CHART_HOVER_STROKE = getColor("add_chart_hover_stroke");//$NON-NLS-1$\r
- public static Color ADD_CHART_PUSH_STROKE = getColor("add_chart_push_stroke");//$NON-NLS-1$\r
- \r
- public static Color ADD_CHART_NORMAL_START = getColor("add_chart_normal_start");//$NON-NLS-1$\r
- public static Color ADD_CHART_NORMAL_END = getColor("add_chart_normal_end");//$NON-NLS-1$\r
- public static Color ADD_CHART_HOVER_START = getColor("add_chart_hover_start");//$NON-NLS-1$\r
- public static Color ADD_CHART_HOVER_END = getColor("add_chart_hover_end");//$NON-NLS-1$\r
- public static Color ADD_CHART_PUSH_START = getColor("add_chart_push_start");//$NON-NLS-1$\r
- public static Color ADD_CHART_PUSH_END = getColor("add_chart_push_end");//$NON-NLS-1$\r
- public static Color ADD_CHART_FONT_COLOR = getColor("add_chart_font_color");//$NON-NLS-1$\r
- \r
- // circular graph\r
- public static Color CPU_BAR_GRAPH_COLOR = getColor("cpu_bar_graph_color"); //$NON-NLS-1$\r
- public static Color CPU_BAR_GRAPH_GRAY_COLOR = getColor("cpu_bar_graph_gray_color"); //$NON-NLS-1$\r
- public static Color CPU_BAR_GRAPH_BG_COLOR = getColor("cpu_bar_graph_bg_color"); //$NON-NLS-1$\r
- \r
- public static Color PROCESS_GRAPH_COLOR = getColor("process_bar_graph_color"); //$NON-NLS-1$\r
- public static Color PROCESS_GRAPH_CENTER_COLOR = getColor("process_bar_graph_center_color"); //$NON-NLS-1$\r
- public static Color PROCESS_GRAPH_BG_COLOR = getColor("process_bar_graph_bg_color"); //$NON-NLS-1$\r
- \r
- public static Color PROFILING_GRAPH_COLOR_START = getColor("profiling_graph_color_start"); //$NON-NLS-1$\r
- public static Color PROFILING_GRAPH_COLOR_END = getColor("profiling_graph_color_end"); //$NON-NLS-1$\r
- \r
- public static Color PROFILING_GRAPH_SELECTION_COLOR_START = getColor("profiling_graph_selection_color_start"); //$NON-NLS-1$\r
- public static Color PROFILING_GRAPH_SELECTION_COLOR_END = getColor("profiling_graph_selection_color_end"); //$NON-NLS-1$\r
- \r
- // Add Chart\r
- public static Color ADD_CHART_ENABLE_COLOR = getColor("add_chart_enable_color"); //$NON-NLS-1$\r
- public static Color ADD_CHART_DISABLE_COLOR = getColor("add_chart_disable_color"); //$NON-NLS-1$\r
- public static Color ADD_CHART_ENABLE_TITLE_COLOR = getColor("add_chart_enable_title_color"); //$NON-NLS-1$\r
- public static Color ADD_CHART_DISABLE_TITLE_COLOR = getColor("add_chart_disable_title_color"); //$NON-NLS-1$\r
- public static Color ADD_CHART_ENABLE_DESCRIPT_COLOR = getColor("add_chart_enable_descript_color"); //$NON-NLS-1$\r
- public static Color ADD_CHART_DISABLE_DESCRIPT_COLOR = getColor("add_chart_disable_descript_color"); //$NON-NLS-1$\r
- public static Color ADD_CHART_ENABLE_HOVER_COLOR = getColor("add_chart_enable_hover_color"); //$NON-NLS-1$ \r
- public static Color ADD_CHART_DISABLE_HOVER_COLOR = getColor("add_chart_disable_hover_color"); //$NON-NLS-1$\r
- public static Color ADD_CHART_DRAG_COLOR = getColor("add_chart_drag_color"); //$NON-NLS-1$\r
- \r
- /** timeline chart **/\r
- public static Color SERIES_COLOR_CPU_SYSTEM = getColor("seriesColorCPUSystem"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_CPU_APP = getColor("seriesColorCPUApp"); //$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_CPUCORE_CORE0 = getColor("seriesColorCPUCoreCore0"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_CPUCORE_CORE1 = getColor("seriesColorCPUCoreCore1"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_CPUCORE_CORE2 = getColor("seriesColorCPUCoreCore2"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_CPUCORE_CORE3 = getColor("seriesColorCPUCoreCore3"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_CPUCORE_CORE4 = getColor("seriesColorCPUCoreCore4"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_CPUCORE_CORE5 = getColor("seriesColorCPUCoreCore5"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_CPUCORE_CORE6 = getColor("seriesColorCPUCoreCore6"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_CPUCORE_CORE7 = getColor("seriesColorCPUCoreCore7"); //$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_HEAP_SYSTEM = getColor("seriesColorHeapSystem"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_HEAP_USER = getColor("seriesColorHeapApp"); //$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_PROCESS_VSS = getColor("seriesColorProcessVSS"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_PROCESS_RSS = getColor("seriesColorProcessRSS"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_PROCESS_PSS = getColor("seriesColorProcessPSS"); //$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_MEMORY_SYS_MAX = getColor("seriesColorMemorySysMax"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_MEMORY_SYS_USED = getColor("seriesColorMemorySysUsed"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_MEMORY_APP_USED = getColor("seriesColorMemoryAppUsed"); //$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_NETWORK_IO_SEND = getColor("seriesColorNetworkIOSend"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_NETWORK_IO_RECEIVE = getColor("seriesColorNetworkIOReceive"); //$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_DISK_IO_READ_BYTE = getColor("seriesColorDiskIOReadByte"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_DISK_IO_WRITE_BYTE = getColor("seriesColorDiskIOWriteByte"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_DISK_IO_READ_SECTOR = getColor("seriesColorDiskIOReadSector"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_DISK_IO_READ_WRITE_SECTOR = getColor("seriesColorDiskIOWriteSector"); //$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_DEVICE_WIFI = getColor("seriesColorDeviceWifi"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_DEVICE_BLUETOOTH = getColor("seriesColorDeviceBluetooth"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_DEVICE_GPS = getColor("seriesColorDeviceGPS"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_DEVICE_DNET = getColor("seriesColorDeviceDNet"); //$NON-NLS-1$\r
- public static Color SERIES_COLOR_DEVICE_CAMERA = getColor("seriesColorDeviceCamera"); //$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_UI_EVENT_KEY = getColor("seriesColorUIEventKey");//$NON-NLS-1$\r
- public static Color SERIES_COLOR_UI_EVENT_TOUCH = getColor("seriesColorUIEventTouch");//$NON-NLS-1$\r
- public static Color SERIES_COLOR_UI_EVENT_GESTURE = getColor("seriesColorUIEventGesture");//$NON-NLS-1$\r
- public static Color SERIES_COLOR_UI_EVENT_ORIENTATION = getColor("seriesColorUIEventOrientation");//$NON-NLS-1$\r
- public static Color SERIES_COLOR_UI_EVENT_FRAMEWORK = getColor("seriesColorUIEventFramework");//$NON-NLS-1$\r
- \r
- public static Color SERIES_COLOR_INTERACTIVE_BEFORE = getColor("seriesColorInteractiveBefore");//$NON-NLS-1$\r
- public static Color SERIES_COLOR_INTERACTIVE_AFTER = getColor("seriesColorInteractiveAfter");//$NON-NLS-1$\r
- \r
- public static Color SELECTION_RANGE = getColor("selectionRange"); //$NON-NLS-1$\r
- public static Color SELECTION_LINE = getColor("selectionLine"); //$NON-NLS-1$\r
- \r
- // scale widget\r
- public static Color SCALE_OUTLINE_COLOR = getColor("scale_outline_color"); //$NON-NLS-1$\r
- public static Color SCALE_BG_COLOR_START = getColor("scale_bg_color_start"); //$NON-NLS-1$\r
- public static Color SCALE_BG_COLOR_END = getColor("scale_bg_color_end"); //$NON-NLS-1$\r
- public static Color SCALE_AREA_COLOR = getColor("scale_area_color"); //$NON-NLS-1$\r
- public static Color SCALE_AREA_OUTLINE_COLOR = getColor("scale_area_outline_color"); //$NON-NLS-1$\r
- \r
- // stop progress dialog\r
- // public static Color STOP_PROGRESS_LINE1_COLOR = getColor("stop_progress_line1_color"); //$NON-NLS-1$\r
- // public static Color STOP_PROGRESS_LINE2_COLOR = getColor("stop_progress_line2_color"); //$NON-NLS-1$\r
- // public static Color STOP_PROGRESS_BACKGROUND_COLOR = getColor("stop_progress_background_color"); //$NON-NLS-1$\r
- // public static Color STOP_PROGRESS_INFO_FONT_COLOR = getColor("stop_progress_info_font_color"); //$NON-NLS-1$\r
- // public static Color STOP_PROGRESS_BAR_START_COLOR = getColor("stop_progress_bar_start_color"); //$NON-NLS-1$\r
- // public static Color STOP_PROGRESS_BAR_END_COLOR = getColor("stop_progress_bar_end_color"); //$NON-NLS-1$\r
- // public static Color STOP_PROGRESS_BAR_BG_START_COLOR = getColor("stop_progress_bar_bg_start_color"); //$NON-NLS-1$\r
- // public static Color STOP_PROGRESS_BAR_BG_END_COLOR = getColor("stop_progress_bar_bg_end_color"); //$NON-NLS-1$\r
- // public static Color STOP_PROGRESS_BAR_OUTLINE_COLOR = getColor("stop_progress_bar_outline_color"); //$NON-NLS-1$\r
- \r
- // thread graph\r
- public static Color THREAD_GRAPH_MIN_CPU_LOAD_COLOR = getColor("thread_graph_min_cpu_load_color"); //$NON-NLS-1$\r
- public static Color THREAD_GRAPH_MAX_CPU_LOAD_COLOR = getColor("thread_graph_max_cpu_load_color"); //$NON-NLS-1$\r
- public static Color THREAD_GRAPH_CALLEE_COLOR = getColor("thread_graph_callee_color"); //$NON-NLS-1$\r
- public static Color THREAD_GRAPH_LOCK_NEW_COLOR = getColor("thread_graph_lock_new_color"); //$NON-NLS-1$\r
- public static Color THREAD_GRAPH_LOCK_WAIT_COLOR = getColor("thread_graph_lock_wait_color"); //$NON-NLS-1$\r
- public static Color THREAD_GRAPH_LOCK_ACQUIRE_COLOR = getColor("thread_graph_lock_acquire_color"); //$NON-NLS-1$\r
- public static Color THREAD_GRAPH_LOCK_RELEASE_COLOR = getColor("thread_graph_lock_release_color"); //$NON-NLS-1$\r
- \r
- public static Color SNAPSHOT_VIEWER_BG_COLOR = getColor("snapshot_viewer_bg_color"); //$NON-NLS-1$\r
- \r
- // public static Color CHECKBOX_DISABLED_FONT_COLOR = getColor("checkbox_disabled_font_color"); //$NON-NLS-1$\r
- \r
- // configuration\r
- public static Color CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR = getColor("configufation_table_cover_background_color"); //$NON-NLS-1$\r
- public static Color CONFIGURATION_TABLE_BACKGROUND_COLOR = getColor("configufation_table_background_color"); //$NON-NLS-1$\r
- public static Color CONFIGURATION_BUTTON_COVER_BACKGROUND_COLOR = getColor("configufation_button_cover_background_color"); //$NON-NLS-1$\r
- public static Color CONFIGURATION_SUNKEN_LINE_UP_COLOR = getColor("configufation_sunken_line_up_color"); //$NON-NLS-1$\r
- public static Color CONFIGURATION_SUNKEN_LINE_DOWN_COLOR = getColor("configufation_sunken_line_down_color"); //$NON-NLS-1$\r
- \r
- // contextMenu\r
- public static Color CONTEXT_MENU_TITLE_BACKGROUND_COLOR = getColor("context_menu_title_background_color"); //$NON-NLS-1$\r
- public static Color CONTEXT_MENU_TITLE_FONT_COLOR = getColor("context_menu_title_font_color"); //$NON-NLS-1$\r
- \r
- // binary settings\r
- public static Color BINARY_SETTINGS_INPUT_BOX_COLOR = getColor("binary_settings_input_box_color"); //$NON-NLS-1$\r
- public static Color BINARY_SETTINGS_LABEL_COLOR = getColor("binary_settings_label_color"); //$NON-NLS-1$\r
- \r
- public static Color TEXT_NORMAL_COLOR = SCALE_OUTLINE_COLOR;\r
- public static Color TEXT_HOVER_COLOR = BUTTON_OUTLINE_HOVER_COLOR;\r
- public static Color TEXT_PUSH_COLOR = TAB_OUTLINE_PUSH_COLOR;\r
- \r
- // explorer\r
- public static Color EXPLORER_SELECT_START = getColor("explorer_select_start_color"); //$NON-NLS-1$\r
- public static Color EXPLORER_SELECT_END = getColor("explorer_select_end_color"); //$NON-NLS-1$\r
- public static Color EXPLORER_CELL_BG = getColor("explorer_cell_bg_color"); //$NON-NLS-1$\r
- public static Color EXPLORER_CELL_LINE = getColor("explorer_cell_line_color"); //$NON-NLS-1$\r
- \r
- // setting\r
- public static Color SETTING_STROKE = getColor("setting_stroke"); //$NON-NLS-1$\r
- public static Color SETTING_SUNKEN_LINE_1 = getColor("setting_sunken_line_1"); //$NON-NLS-1$\r
- public static Color SETTING_SUNKEN_LINE_2 = getColor("setting_sunken_line_2"); //$NON-NLS-1$\r
- public static Color SETTING_TITLE_BACKGROUND = getColor("setting_title_background"); //$NON-NLS-1$\r
- public static Color SETTING_OVERHEAD_BACKGROUND = getColor("setting_overhead_background"); //$NON-NLS-1$\r
- \r
- public static Color SETTING_BUTTON_NORMAL_COLOR = getColor("setting_button_normal_color"); //$NON-NLS-1$\r
- public static Color SETTING_BUTTON_HOVER_COLOR = getColor("setting_button_hover_color"); //$NON-NLS-1$\r
- public static Color SETTING_BUTTON_PUSH_COLOR = getColor("setting_button_push_color"); //$NON-NLS-1$\r
- public static Color SETTING_BUTTON_DISABLE_COLOR = getColor("setting_button_disable_color"); //$NON-NLS-1$\r
- public static Color SETTING_BUTTON_TOGGLE_NORMAL_COLOR = getColor("setting_button_toggle_normal_color"); //$NON-NLS-1$\r
- public static Color SETTING_BUTTON_TOGGLE_HOVER_COLOR = getColor("setting_button_toggle_hover_color"); //$NON-NLS-1$\r
- public static Color SETTING_BUTTON_TOGGLE_PUSH_COLOR = getColor("setting_button_toggle_push_color"); //$NON-NLS-1$\r
- \r
- public static Color SETTING_COLOR = getColor("setting_font_color");//$NON-NLS-1$\r
- public static Color SETTING_WARNING_FONT_COLOR = getColor("setting_warning_font_color");//$NON-NLS-1$\r
- \r
- /** setting table colors start **/\r
- public static Color SETTING_TABLE_HEADER_BG = getColor("setting_table_header_bg"); //$NON-NLS-1$\r
- public static Color SETTING_TABLE_CONTENTS_NORMAL_ODD = getColor("setting_table_contents_normal_odd"); //$NON-NLS-1$\r
- public static Color SETTING_TABLE_CONTENTS_NORMAL_EVEN = getColor("setting_table_contents_normal_even"); //$NON-NLS-1$\r
- public static Color SETTING_TABLE_CONTENTS_HOVER = getColor("setting_table_contents_hover"); //$NON-NLS-1$\r
- public static Color SETTING_TABLE_CONTENTS_SELECTED = getColor("setting_table_contents_selected"); //$NON-NLS-1$\r
- public static Color SETTING_TABLE_CONTENTS_PARENT = getColor("setting_table_contents_parent"); //$NON-NLS-1$\r
- public static Color SETTING_TABLE_CONTENTS_CHILD = getColor("setting_table_contents_child"); //$NON-NLS-1$\r
- public static Color SETTING_TABLE_HEADER_FONT_COLOR = getColor("setting_table_title_font_color"); //$NON-NLS-1$\r
- public static Color SETTING_TABLE_CONTENTS_FONT_COLOR = getColor("setting_table_contents_font_color"); //$NON-NLS-1$\r
- /** setting table colors end **/\r
- \r
- public static Color FEATURE_OVERHEAD_RANKING_NORMAL = getColor("feature_overhead_ranking_normal"); //$NON-NLS-1$\r
- public static Color FEATURE_OVERHEAD_RANKING_MIDDLE = getColor("feature_overhead_ranking_middle"); //$NON-NLS-1$\r
- public static Color FEATURE_OVERHEAD_RANKING_HIGH = getColor("feature_overhead_ranking_high"); //$NON-NLS-1$\r
- \r
- \r
- // public static void initColors() {\r
- // WINDOW_BG_COLOR = getColor("window_bg_color"); //$NON-NLS-1$\r
- //\r
- // DIALOG_BG_UPPER = getColor("dialg_bg_upper");//$NON-NLS-1$\r
- // DIALOG_BG_LOWER = getColor("dialg_bg_lower");//$NON-NLS-1$\r
- // DIALOG_SUNKEN_1 = getColor("dialg_sunken_1");//$NON-NLS-1$\r
- // DIALOG_SUNKEN_2 = getColor("dialg_sunken_2");//$NON-NLS-1$\r
- //\r
- // EDIT_CHART_DIALOG_UPPER = getColor("edit_chart_dialog_upper");//$NON-NLS-1$\r
- // EDIT_CHART_DIALOG_LOWER = getColor("edit_chart_dialog_lower");//$NON-NLS-1$\r
- //\r
- // VIEW_BORDER = getColor("view_border"); //$NON-NLS-1$\r
- // VIEW_BG_COLOR = getColor("view_bg_color"); //$NON-NLS-1$\r
- // VIEW_TITLE_FONT_COLOR = getColor("view_title_font_color");//$NON-NLS-1$\r
- //\r
- // /** title bar colors **/\r
- // TITLEBAR_TEXT_COLOR = getColor("titlebar_text_color"); //$NON-NLS-1$\r
- // TITLEBAR_BG_COLOR = getColor("titlebar_bg"); //$NON-NLS-1$\r
- // TITLEBAR_START_COLOR = getColor("titlebar_start_color"); //$NON-NLS-1$\r
- // TITLEBAR_END_COLOR = getColor("titlebar_end_color"); //$NON-NLS-1$\r
- //\r
- // /** Coolbar bg color **/\r
- // COOLBAR_BG_COLOR = getColor("coolbar_bg_color"); //$NON-NLS-1$\r
- // DEFAULT_FONT_COLOR = getColor("default_font_color");//$NON-NLS-1$\r
- //\r
- // /** device and application combo specific colors start **/\r
- // DEVICE_APPLICATION_ENABLE = getColor("device_application_enable_font"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_DISABLE = getColor("device_application_disable"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_POPUP_OUTER_1 = getColor("device_application_popup_outer_1"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_POPUP_OUTER_2 = getColor("device_application_popup_outer_2"); //$NON-NLS-1$\r
- // // DEVICE_APPLICATION_POPUP_OUTER_1 = RED;\r
- // DEVICE_APPLICATION_DROPDOWN_TEXT = getColor("device_application_enable_font"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_ITEM_NORMAL_TOP = getColor("device_application_item_normal_top"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_ITEM_NORMAL_INNER = getColor("device_application_item_normal_inner"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_ITEM_NORMAL_BOTTOM = getColor("device_application_item_normal_bottom"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_ITEM_SELECT_TOP = getColor(\r
- // "device_application_item_select_top", new RGB(76, 76, 77)); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_ITEM_SELECT_INNER = getColor("device_application_item_select_inner"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_ITEM_SELECT_BOTTOM = getColor("device_application_item_select_bottom"); //$NON-NLS-1$\r
- //\r
- // /*** combo button color ***/\r
- // DEVICE_APPLICATION_BUTTON_NORMAL_START = getColor("device_application_button_normal_start"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_BUTTON_NORMAL_END = getColor("device_application_button_normal_end"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_BUTTON_PUSH_START = getColor("device_application_button_push_start"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_BUTTON_PUSH_END = getColor("device_application_button_push_end"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_BUTTON_HOVER_START = getColor("device_application_button_hover_start"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_BUTTON_HOVER_END = getColor("device_application_button_hover_end"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_BUTTON_DISABLE_START = getColor("device_application_button_disable_start"); //$NON-NLS-1$\r
- // DEVICE_APPLICATION_BUTTON_DISABLE_END = getColor("device_application_button_disable_end"); //$NON-NLS-1$\r
- //\r
- // DEVICE_APPLICATION_BUTTON_OUTLINE = getColor("device_application_button_outline"); //$NON-NLS-1$\r
- //\r
- // /** device and application combo specific colors end **/\r
- //\r
- // /*** common button colors ***/\r
- // BUTTON_DISABLE_COLOR_START = getColor("button_disable_color_start"); //$NON-NLS-1$\r
- // BUTTON_DISABLE_COLOR_END = getColor("button_disable_color_end"); //$NON-NLS-1$\r
- // BUTTON_NORMAL_COLOR_START = getColor("button_normal_color_start"); //$NON-NLS-1$\r
- // BUTTON_NORMAL_COLOR_END = getColor("button_normal_color_end"); //$NON-NLS-1$\r
- // BUTTON_HOVER_COLOR_START = getColor("button_hover_color_start"); //$NON-NLS-1$\r
- // BUTTON_HOVER_COLOR_END = getColor("button_hover_color_end"); //$NON-NLS-1$\r
- // BUTTON_PUSH_COLOR_START = getColor("button_push_color_start"); //$NON-NLS-1$\r
- // BUTTON_PUSH_COLOR_END = getColor("button_push_color_end"); //$NON-NLS-1$\r
- //\r
- // BUTTON_OUTLINE_NORMAL_IN_COLOR = getColor("button_outline_normal_in_color"); //$NON-NLS-1$\r
- // BUTTON_OUTLINE_PUSH_IN_COLOR = getColor("button_outline_push_in_color"); //$NON-NLS-1$\r
- // BUTTON_OUTLINE_HOVER_IN_COLOR = getColor("button_outline_hover_in_color"); //$NON-NLS-1$\r
- // BUTTON_OUTLINE_DISABLE_IN_COLOR = getColor("button_outline_disable_in_color"); //$NON-NLS-1$\r
- //\r
- // BUTTON_OUTLINE_NORMAL_COLOR = getColor("button_outline_normal_color"); //$NON-NLS-1$\r
- // BUTTON_OUTLINE_PUSH_COLOR = getColor("button_outline_push_color"); //$NON-NLS-1$\r
- // BUTTON_OUTLINE_HOVER_COLOR = getColor("button_outline_hover_color"); //$NON-NLS-1$\r
- // BUTTON_OUTLINE_DISABLE_COLOR = getColor("button_outline_disable_color"); //$NON-NLS-1$\r
- //\r
- // BUTTON_NORMAL_FONT_COLOR = getColor("button_normal_font_color"); //$NON-NLS-1$\r
- // BUTTON_PUSH_FONT_COLOR = getColor("button_push_font_color"); //$NON-NLS-1$\r
- // BUTTON_HOVER_FONT_COLOR = getColor("button_hover_font_color"); //$NON-NLS-1$\r
- // BUTTON_DISABLE_FONT_COLOR = getColor("button_disable_font_color"); //$NON-NLS-1$\r
- //\r
- // /** normal view layout colors start **/\r
- // NORMAL_VIEW_LAYOUT_OUTER = getColor("normal_view_layout_outer"); //$NON-NLS-1$\r
- // NORMAL_VIEW_LAYOUT_MIDDLE = getColor("normal_view_layout_middle"); //$NON-NLS-1$\r
- // NORMAL_VIEW_LAYOUT_INNER = getColor("normal_view_layout_inner"); //$NON-NLS-1$\r
- // /** normal view layout colors end **/\r
- //\r
- // /** view colors start **/\r
- // SNAPSHOT_VIEW_OUTLINE = getColor("current_view_outline"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_TITLE_TEXT = WHITE;\r
- // SNAPSHOT_VIEW_MIDDLE = NORMAL_VIEW_LAYOUT_MIDDLE;\r
- // SNAPSHOT_VIEW_INNER = NORMAL_VIEW_LAYOUT_INNER;\r
- //\r
- // SNAPSHOT_VIEW_TABLE_TITLE_BG = getColor("current_view_table_title_bg"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_TABLE_TITLE_TEXT = getColor("current_view_table_title_text"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_TABLE_CONTENTS_BG = getColor("current_view_table_contents_bg"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_TABLE_CONTENTS_TEXT = getColor("current_view_table_contents_text"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_TABLE_LINE = getColor("current_view_table_line"); //$NON-NLS-1$\r
- //\r
- // SNAPSHOT_VIEW_CPU_TEXT = getColor("current_view_cpu_text"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_PROCESS_TEXT = getColor("current_view_process_text"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_GRAPH_BG = getColor("current_view_graph_bg"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_CPU_GRAPH = SNAPSHOT_VIEW_CPU_TEXT;\r
- // SNAPSHOT_VIEW_PROCESS_GRAPH = SNAPSHOT_VIEW_PROCESS_TEXT;\r
- // SNAPSHOT_VIEW_GRAPH_OUTLINE = getColor("current_view_graph_outline"); //$NON-NLS-1$\r
- // SNAPSHOT_VIEW_SNAPSHOT_OUTLINE = getColor("current_view_snapshot_outline"); //$NON-NLS-1$\r
- //\r
- // SNAPSHOT_VIEW_LOCK_TEXT = getColor("current_view_lock_text"); //$NON-NLS-1$\r
- // /** current view colors end **/\r
- //\r
- // /** common table colors start **/\r
- // TABLE_HEADER_BG = getColor("table_header_bg"); //$NON-NLS-1$\r
- // TABLE_LINE = getColor("table_line"); //$NON-NLS-1$\r
- // TABLE_CONTENTS_NORMAL = getColor("table_contents_normal"); //$NON-NLS-1$\r
- // TABLE_CONTENTS_HOVER = getColor("table_contents_hover"); //$NON-NLS-1$\r
- // TABLE_CONTENTS_SELECTED_START = getColor("table_contents_selected_start"); //$NON-NLS-1$\r
- // TABLE_CONTENTS_SELECTED_END = getColor("table_contents_selected_end"); //$NON-NLS-1$\r
- // TABLE_CONTENTS_SELECTED_FONT_COLOR = getColor("table_contents_selected_font_color"); //$NON-NLS-1$\r
- // TABLE_HEADER_FONT_COLOR = getColor("table_title_font_color"); //$NON-NLS-1$\r
- // TABLE_CONTENTS_FONT_COLOR = getColor("table_contents_font_color"); //$NON-NLS-1$\r
- // TABLE_CONTENTS_FAILED_BACGOUND_COLOR = getColor("table_contents_failed_bacgound_color"); //$NON-NLS-1$\r
- // TABLE_CONTENTS_FAILED_FONT_COLOR = getColor("table_contents_failed_font_color"); //$NON-NLS-1$\r
- // /** common table colors end **/\r
- //\r
- // /** open trace popup colors **/\r
- // OPEN_TRACE_LABEL_COLOR = getColor("open_trace_label_color");//$NON-NLS-1$\r
- // OPEN_TRACE_SAVE_CONTENTS_COLOR = getColor("open_trace_save_contents_color");//$NON-NLS-1$\r
- // OPEN_TRACE_TEMP_CONTENTS_COLOR = getColor("open_trace_temp_contents_color");//$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_OUTLINE_COLOR = getColor("open_trace_table_outline_color");//$NON-NLS-1$\r
- //\r
- // OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR1 = getColor("open_trace_table_content_normal_color1");//$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR1 = getColor("open_trace_table_content_hover_color1");//$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR1 = getColor("open_trace_table_content_selected_start_color1");//$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR1 = getColor("open_trace_table_content_selected_end_color1");//$NON-NLS-1$\r
- //\r
- // OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR2 = getColor("open_trace_table_content_normal_color2");//$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR2 = getColor("open_trace_table_content_hover_color2");//$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR2 = getColor("open_trace_table_content_selected_start_color2");//$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR2 = getColor("open_trace_table_content_selected_end_color2");//$NON-NLS-1$\r
- //\r
- // OPEN_TRACE_BUTTON_COMPOSITE_BG_COLOR = getColor("open_trace_button_composite_bg_color");//$NON-NLS-1$\r
- //\r
- // OPEN_TRACE_POPUP_CONTENTS_BG_COLOR = getColor("open_trace_popup_contents_bg_color"); //$NON-NLS-1$\r
- // OPEN_TRACE_POPUP_BOTTOM_BG_COLOR = getColor("open_trace_popup_bottom_bg_color"); //$NON-NLS-1$\r
- // OPEN_TRACE_TITLE_TEXT_COLOR = TITLEBAR_TEXT_COLOR;\r
- // OPEN_TRACE_INNERTITLE_TEXT_COLOR = WHITE;\r
- // OPEN_TRACE_BUTTON_TEXT_COLOR = WHITE;\r
- // // OPEN_TRACE_TABLE_OUTLINE_COLOR =\r
- // // SNAPSHOT_VIEW_TABLE_LINE;\r
- // OPEN_TRACE_TABLE_LINE1_NORMAL = getColor("open_trace_table_line1_normal"); //$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_LINE1_HOVER = getColor("open_trace_table_line1_hover"); //$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_LINE_SELECTED_START = getColor("open_trace_table_line_selected_start"); //$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_LINE_SELECTED_END = getColor("open_trace_table_line_selected_end"); //$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_LINE2_NORMAL = getColor("open_trace_table_line2_normal"); //$NON-NLS-1$\r
- // OPEN_TRACE_TABLE_LINE2_HOVER = getColor("open_trace_table_line2_hover"); //$NON-NLS-1$\r
- // OPEN_TRACE_TABLE2_FONT_COLOR = getColor("open_trace_table2_font_color"); //$NON-NLS-1$\r
- //\r
- // /** tab widget colors **/\r
- // TAB_SELECTED_COLOR_START = getColor("tab_selected_color_start"); //$NON-NLS-1$\r
- // TAB_SELECTED_COLOR_END = getColor("tab_selected_color_end"); //$NON-NLS-1$\r
- // TAB_NORMAL_COLOR_START = getColor("tab_normal_color_start"); //$NON-NLS-1$\r
- // TAB_NORMAL_COLOR_END = getColor("tab_normal_color_end"); //$NON-NLS-1$\r
- // TAB_HOVER_COLOR_START = getColor("tab_hover_color_start"); //$NON-NLS-1$\r
- // TAB_HOVER_COLOR_END = getColor("tab_hover_color_end"); //$NON-NLS-1$\r
- // TAB_PUSH_COLOR_START = getColor("tab_push_color_start"); //$NON-NLS-1$\r
- // TAB_PUSH_COLOR_END = getColor("tab_push_color_end"); //$NON-NLS-1$\r
- //\r
- // TAB_OUTLINE_NORMAL_COLOR = getColor("tab_outline_normal_color"); //$NON-NLS-1$\r
- // TAB_OUTLINE_PUSH_COLOR = getColor("tab_outline_push_color"); //$NON-NLS-1$\r
- // TAB_OUTLINE_HOVER_COLOR = getColor("tab_outline_hover_color"); //$NON-NLS-1$\r
- // TAB_OUTLINE_SELECTED_COLOR = getColor("tab_outline_selected_color"); //$NON-NLS-1$\r
- //\r
- // TAB_SELECTED_FONT_COLOR = getColor("tab_selected_font_color"); //$NON-NLS-1$\r
- // TAB_NORMAL_FONT_COLOR = getColor("tab_normal_font_color"); //$NON-NLS-1$\r
- // TAB_HOVER_FONT_COLOR = getColor("tab_hover_font_color"); //$NON-NLS-1$\r
- // TAB_PUSH_FONT_COLOR = getColor("tab_push_font_color"); //$NON-NLS-1$\r
- //\r
- // TAB_BG_COLOR_START = getColor("tab_bg_color_start"); //$NON-NLS-1$\r
- // TAB_BG_COLOR_END = getColor("tab_bg_color_end"); //$NON-NLS-1$\r
- // TAB_BG_OUTLINE_COLOR = getColor("tab_bg_outline_color"); //$NON-NLS-1$\r
- //\r
- // /** Page chart colors **/\r
- // PAGE_CHART_HAEDER_BG = getColor("page_chart_header_bg"); //$NON-NLS-1$\r
- // PAGE_CHART_SELECTION_BG = getColor("page_chart_selection_bg"); //$NON-NLS-1$\r
- // PAGE_CHART_PARENT_BG = getColor("page_chart_parent_bg"); //$NON-NLS-1$\r
- // PAGE_CHART_CHILD_BG = getColor("page_chart_child_bg"); //$NON-NLS-1$\r
- // PAGE_OPEN_START_RUN = getColor("page_open_start_run"); //$NON-NLS-1$\r
- // PAGE_OPEN_END_RUN = getColor("page_open_end_run"); //$NON-NLS-1$\r
- // PAGE_OPEN_START_STOP = getColor("page_open_start_stop"); //$NON-NLS-1$\r
- // PAGE_OPEN_END_STOP = getColor("page_open_end_stop"); //$NON-NLS-1$\r
- // PAGE_CLOSED_START = getColor("page_closed_start"); //$NON-NLS-1$\r
- // PAGE_CLOSED_END = getColor("page_closed_end"); //$NON-NLS-1$\r
- // PAGE_USE_START = getColor("page_use_start"); //$NON-NLS-1$\r
- // PAGE_USE_END = getColor("page_use_end"); //$NON-NLS-1$\r
- //\r
- // /** Thread chart colors **/\r
- // THREAD_OPEN_START_RUN = getColor("thread_open_start_run"); //$NON-NLS-1$\r
- // THREAD_OPEN_END_RUN = getColor("thread_open_end_run"); //$NON-NLS-1$\r
- // THREAD_OPEN_START_STOP = getColor("thread_open_start_stop"); //$NON-NLS-1$\r
- // THREAD_OPEN_END_STOP = getColor("thread_open_end_stop"); //$NON-NLS-1$\r
- // THREAD_CLOSED_START = getColor("thread_closed_start"); //$NON-NLS-1$\r
- // THREAD_CLOSED_END = getColor("thread_closed_end"); //$NON-NLS-1$\r
- // THREAD_SLEEP_START = getColor("thread_sleep_start"); //$NON-NLS-1$\r
- // THREAD_SLEEP_END = getColor("thread_sleep_end"); //$NON-NLS-1$\r
- //\r
- // /** File chart colors **/\r
- // FILE_API_USED = getColor("file_api_used"); //$NON-NLS-1$\r
- // FILE_API_FAILED = getColor("file_api_failed"); //$NON-NLS-1$\r
- // FILE_AREA_USED_START = getColor("file_area_used_start"); //$NON-NLS-1$\r
- // FILE_AREA_USED_END = getColor("file_area_used_end"); //$NON-NLS-1$\r
- // FILE_AREA_CLOSED_START = getColor("file_area_closed_start"); //$NON-NLS-1$\r
- // FILE_AREA_CLOSED_END = getColor("file_area_closed_end"); //$NON-NLS-1$\r
- // FILE_AREA_NOT_ACCESS_START = getColor("file_not_access_start"); //$NON-NLS-1$\r
- // FILE_AREA_NOT_ACCESS_END = getColor("file_not_access_end"); //$NON-NLS-1$\r
- // FILE_ACCESS_READ = getColor("file_access_read"); //$NON-NLS-1$\r
- // FILE_ACCESS_WRITE = getColor("file_access_write"); //$NON-NLS-1$\r
- //\r
- // UNSELECTED_TAB_FIRST = getColor("unselected_tab_first"); //$NON-NLS-1$\r
- // UNSELECTED_TAB_SECOND = getColor("unselected_tab_second"); //$NON-NLS-1$\r
- // SELECTED_TAB_FIRST = getColor("selected_tab_first"); //$NON-NLS-1$\r
- // SELECTED_TAB_SECOND = getColor("selected_tab_second"); //$NON-NLS-1$\r
- //\r
- // /** Network chart colors **/\r
- // NETWORK_API_USED = getColor("network_api_used"); //$NON-NLS-1$\r
- // NETWORK_API_FAILED = getColor("network_api_failed"); //$NON-NLS-1$\r
- // NETWORK_AREA_FD_USED_START = getColor("network_area_fd_used_start"); //$NON-NLS-1$\r
- // NETWORK_AREA_FD_USED_END = getColor("network_area_fd_used_end"); //$NON-NLS-1$\r
- // NETWORK_AREA_CONNECTED_START = getColor("network_area_connected_start"); //$NON-NLS-1$\r
- // NETWORK_AREA_CONNECTED_END = getColor("network_area_connected_end"); //$NON-NLS-1$\r
- // NETWORK_AREA_CLOSED_START = getColor("network_area_closed_start"); //$NON-NLS-1$\r
- // NETWORK_AREA_CLOSED_END = getColor("network_area_closed_end"); //$NON-NLS-1$\r
- // NETWORK_AREA_NOT_CLOSED_START = getColor("network_area_not_closed_start"); //$NON-NLS-1$\r
- // NETWORK_AREA_NOT_CLOSED_END = getColor("network_area_not_closed_end"); //$NON-NLS-1$\r
- // NETWORK_ACCESS_RECV = getColor("network_access_recv"); //$NON-NLS-1$\r
- // NETWORK_ACCESS_SEND = getColor("network_access_send"); //$NON-NLS-1$\r
- // NETWORK_ACCESS_WAIT = getColor("network_access_wait"); //$NON-NLS-1$\r
- //\r
- // TOOLTIP = getColor("tooltip"); //$NON-NLS-1$\r
- //\r
- // BAR_GRAY1 = getColor("barGRAY1"); //$NON-NLS-1$\r
- // BAR_GRAY2 = getColor("barGRAY2"); //$NON-NLS-1$\r
- // BAR_GRAY3 = getColor("barGRAY3"); //$NON-NLS-1$\r
- //\r
- // /* Timeline */\r
- // ITEM_BLUE_BRIGHT = getColor("item blue right");//$NON-NLS-1$\r
- // ITEM_BLUE_DARK = getColor("item blue dark");//$NON-NLS-1$\r
- // ITEM_BG = getColor("item background");//$NON-NLS-1$\r
- //\r
- // TRANS = getColor("timeline_bg"); //$NON-NLS-1$\r
- // SNAPSHOT_CHART_FOREGROUND = BAR_GRAY1;\r
- // SNAPSHOT_CHART_BACKGROUND = getColor("snapshot_chart_bg"); //$NON-NLS-1$\r
- //\r
- // GRAY_130 = getColor("GRAY_130"); //$NON-NLS-1$\r
- // GRAY_170 = getColor("GRAY_170"); //$NON-NLS-1$\r
- // GRAY_210 = getColor("GRAY_210"); //$NON-NLS-1$\r
- //\r
- // DEFAULT_FOREGROUND = getColor("defaultForeground"); //$NON-NLS-1$\r
- // DEFAULT_BACKGROUND = getColor("defaultBackground"); //$NON-NLS-1$\r
- // DEFAULT_RED = getColor("defaultRed"); //$NON-NLS-1$\r
- //\r
- // // circular graph\r
- // CPU_BAR_GRAPH_COLOR = getColor("cpu_bar_graph_color"); //$NON-NLS-1$\r
- // CPU_BAR_GRAPH_GRAY_COLOR = getColor("cpu_bar_graph_gray_color"); //$NON-NLS-1$\r
- // CPU_BAR_GRAPH_BG_COLOR = getColor("cpu_bar_graph_bg_color"); //$NON-NLS-1$\r
- //\r
- // PROCESS_GRAPH_COLOR = getColor("process_bar_graph_color"); //$NON-NLS-1$\r
- // PROCESS_GRAPH_CENTER_COLOR = getColor("process_bar_graph_center_color"); //$NON-NLS-1$\r
- // PROCESS_GRAPH_BG_COLOR = getColor("process_bar_graph_bg_color"); //$NON-NLS-1$\r
- //\r
- // PROFILING_GRAPH_COLOR_START = getColor("profiling_graph_color_start"); //$NON-NLS-1$\r
- // PROFILING_GRAPH_COLOR_END = getColor("profiling_graph_color_end"); //$NON-NLS-1$\r
- //\r
- // PROFILING_GRAPH_SELECTION_COLOR_START = getColor("profiling_graph_selection_color_start"); //$NON-NLS-1$\r
- // PROFILING_GRAPH_SELECTION_COLOR_END = getColor("profiling_graph_selection_color_end"); //$NON-NLS-1$\r
- //\r
- // // Add Chart\r
- // ADD_CHART_ENABLE_COLOR_START = getColor("add_chart_enable_color_start"); //$NON-NLS-1$\r
- // ADD_CHART_ENABLE_COLOR_END = getColor("add_chart_enable_color_end"); //$NON-NLS-1$\r
- // ADD_CHART_DISABLE_COLOR_START = getColor("add_chart_disable_color_start"); //$NON-NLS-1$\r
- // ADD_CHART_DISABLE_COLOR_END = getColor("add_chart_disable_color_end"); //$NON-NLS-1$\r
- //\r
- // /** timeline chart **/\r
- // SERIES_COLOR_CPU_SYSTEM = getColor("seriesColorCPUSystem"); //$NON-NLS-1$\r
- // SERIES_COLOR_CPU_APP = getColor("seriesColorCPUApp"); //$NON-NLS-1$\r
- //\r
- // SERIES_COLOR_CPUCORE_CORE0 = getColor("seriesColorCPUCoreCore0"); //$NON-NLS-1$\r
- // SERIES_COLOR_CPUCORE_CORE1 = getColor("seriesColorCPUCoreCore1"); //$NON-NLS-1$\r
- // SERIES_COLOR_CPUCORE_CORE2 = getColor("seriesColorCPUCoreCore2"); //$NON-NLS-1$\r
- // SERIES_COLOR_CPUCORE_CORE3 = getColor("seriesColorCPUCoreCore3"); //$NON-NLS-1$\r
- //\r
- // SERIES_COLOR_CPU_FREQ = getColor("seriesColorCPUFreq"); //$NON-NLS-1$\r
- //\r
- // SERIES_COLOR_HEAP_SYSTEM = getColor("seriesColorHeapSystem"); //$NON-NLS-1$\r
- // SERIES_COLOR_HEAP_USER = getColor("seriesColorHeapApp"); //$NON-NLS-1$\r
- //\r
- // SERIES_COLOR_PROCESS_VSS = getColor("seriesColorProcessVSS"); //$NON-NLS-1$\r
- // SERIES_COLOR_PROCESS_RSS = getColor("seriesColorProcessRSS"); //$NON-NLS-1$\r
- // SERIES_COLOR_PROCESS_PSS = getColor("seriesColorProcessPSS"); //$NON-NLS-1$\r
- //\r
- // SERIES_COLOR_MEMORY_SYS_MAX = getColor("seriesColorMemorySysMax"); //$NON-NLS-1$\r
- // SERIES_COLOR_MEMORY_SYS_USED = getColor("seriesColorMemorySysUsed"); //$NON-NLS-1$\r
- // SERIES_COLOR_MEMORY_APP_USED = getColor("seriesColorMemoryAppUsed"); //$NON-NLS-1$\r
- //\r
- // SERIES_COLOR_FILE_READ = getColor("seriesColorFileRead"); //$NON-NLS-1$\r
- // SERIES_COLOR_FILE_WRITE = getColor("seriesColorFileWrite"); //$NON-NLS-1$\r
- // SERIES_COLOR_FILE_FD = getColor("seriesColorFileFD"); //$NON-NLS-1$\r
- //\r
- // SELECTION_RANGE = getColor("selectionRange"); //$NON-NLS-1$\r
- // SELECTION_LINE = getColor("selectionLine"); //$NON-NLS-1$\r
- //\r
- // // scale widget\r
- // SCALE_OUTLINE_COLOR = getColor("scale_outline_color"); //$NON-NLS-1$\r
- // SCALE_BG_COLOR_START = getColor("scale_bg_color_start"); //$NON-NLS-1$\r
- // SCALE_BG_COLOR_END = getColor("scale_bg_color_end"); //$NON-NLS-1$\r
- // SCALE_AREA_COLOR = getColor("scale_area_color"); //$NON-NLS-1$\r
- // SCALE_AREA_OUTLINE_COLOR = getColor("scale_area_outline_color"); //$NON-NLS-1$\r
- //\r
- // // stop progress dialog\r
- //// STOP_PROGRESS_LINE1_COLOR = getColor("stop_progress_line1_color"); //$NON-NLS-1$\r
- //// STOP_PROGRESS_LINE2_COLOR = getColor("stop_progress_line2_color"); //$NON-NLS-1$\r
- //// STOP_PROGRESS_BACKGROUND_COLOR = getColor("stop_progress_background_color"); //$NON-NLS-1$\r
- //// STOP_PROGRESS_INFO_FONT_COLOR = getColor("stop_progress_info_font_color"); //$NON-NLS-1$\r
- //\r
- // // thread graph\r
- // THREAD_GRAPH_CPU_LOAD_COLOR = getColor("thread_graph_cpu_load_color"); //$NON-NLS-1$\r
- // THREAD_GRAPH_CALLEE_COLOR = getColor("thread_graph_callee_color"); //$NON-NLS-1$\r
- // THREAD_GRAPH_LOCK_NEW_COLOR = getColor("thread_graph_lock_new_color"); //$NON-NLS-1$\r
- // THREAD_GRAPH_LOCK_WAIT_COLOR = getColor("thread_graph_lock_wait_color"); //$NON-NLS-1$\r
- // THREAD_GRAPH_LOCK_ACQUIRE_COLOR = getColor("thread_graph_lock_acquire_color"); //$NON-NLS-1$\r
- // THREAD_GRAPH_LOCK_RELEASE_COLOR = getColor("thread_graph_lock_release_color"); //$NON-NLS-1$\r
- //\r
- // // configuration\r
- // CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR = getColor("configufation_table_cover_background_color"); //$NON-NLS-1$\r
- // CONFIGURATION_TABLE_BACKGROUND_COLOR = getColor("configufation_table_background_color"); //$NON-NLS-1$\r
- // CONFIGURATION_BUTTON_COVER_BACKGROUND_COLOR = getColor("configufation_button_cover_background_color"); //$NON-NLS-1$\r
- // CONFIGURATION_SUNKEN_LINE_UP_COLOR = getColor("configufation_sunken_line_up_color"); //$NON-NLS-1$\r
- // CONFIGURATION_SUNKEN_LINE_DOWN_COLOR = getColor("configufation_sunken_line_down_color"); //$NON-NLS-1$\r
- //\r
- // // contextMenu\r
- // CONTEXT_MENU_TITLE_BACKGROUND_COLOR = getColor("context_menu_title_background_color"); //$NON-NLS-1$\r
- // CONTEXT_MENU_TITLE_FONT_COLOR = getColor("context_menu_title_font_color"); //$NON-NLS-1$ \r
- //\r
- // }\r
- \r
- private static Color getColor(String colorName, RGB rgb) {\r
- return DAThemeWhite.getInstance().getColor(colorName, rgb);\r
- }\r
- \r
- private static Color getColor(String colorName) {\r
- return DAThemeWhite.getInstance().getColor(colorName);\r
- }\r
- }\r
+ /*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * HyunJong Park <phjwithyou.park@samsung.com>
+ * Jooyoul Lee <jy.exe.lee@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+ package org.tizen.dynamicanalyzer.resources;
+
+ import org.eclipse.swt.graphics.Color;
+ import org.eclipse.swt.graphics.RGB;
+ import org.tizen.dynamicanalyzer.theme.DAThemeWhite;
+
+ public class ColorResources {
+ public static final Color WHITE = getColor("white"); //$NON-NLS-1$
+ public static final Color BLACK = getColor("black"); //$NON-NLS-1$
+ public static final Color BLUE = getColor("blue"); //$NON-NLS-1$
+ public static final Color RED = getColor("red"); //$NON-NLS-1$
+ public static final Color YELLOW = getColor("yellow"); //$NON-NLS-1$
+ public static final Color DARK_YELLOW = getColor("dark_yellow"); //$NON-NLS-1$
+ public static final Color PURPLE = getColor("purple"); //$NON-NLS-1$
+
+ public static final Color GREEN = getColor("green"); //$NON-NLS-1$
+ public static final Color BROWN = getColor("brown"); //$NON-NLS-1$
+ public static final Color NAVY = getColor("navy"); //$NON-NLS-1$
+ public static final Color DARKVIOLET = getColor("darkviolet"); //$NON-NLS-1$
+ public static final Color MAROON = getColor("maroon"); //$NON-NLS-1$
+ public static final Color TEAL = getColor("teal"); //$NON-NLS-1$
+ public static final Color INDIGO = getColor("indigo"); //$NON-NLS-1$
+ public static final Color DARKGOLDENROD = getColor("darkgoldenrod"); //$NON-NLS-1$
+ public static final Color CHOCOLATE = getColor("chocolate"); //$NON-NLS-1$
+ public static final Color MAGNETA = getColor("magneta"); //$NON-NLS-1$
+
+ public static final Color GOLDENROD = getColor("goldenrod"); //$NON-NLS-1$
+ public static final Color TURQUOISE = getColor("turquoise"); //$NON-NLS-1$
+ public static final Color VIOLET = getColor("violet"); //$NON-NLS-1$
+ public static final Color SLATEBLUE = getColor("slateblue"); //$NON-NLS-1$
+ public static final Color ORANGE = getColor("orange"); //$NON-NLS-1$
+ public static final Color YELLOWGREEN = getColor("yellowgreen"); //$NON-NLS-1$
+ public static final Color SKYBLUE = getColor("skyblue"); //$NON-NLS-1$
+ public static final Color ORCHID = getColor("orchid"); //$NON-NLS-1$
+ public static final Color SANDYBROWN = getColor("sandybrown"); //$NON-NLS-1$
+ public static final Color MEDIUMPURPLE = getColor("mediumpurple"); //$NON-NLS-1$
+
+ // shell window background color
+ public static Color WINDOW_BG_COLOR = getColor("window_bg_color"); //$NON-NLS-1$
+
+ public static Color DIALOG_BG_UPPER = getColor("dialg_bg_upper");//$NON-NLS-1$
+ public static Color DIALOG_BG_LOWER = getColor("dialg_bg_lower");//$NON-NLS-1$
+ public static Color DIALOG_SUNKEN_1 = getColor("dialg_sunken_1");//$NON-NLS-1$
+ public static Color DIALOG_SUNKEN_2 = getColor("dialg_sunken_2");//$NON-NLS-1$
+
+ /** Timeline Edit chart dialog **/
+ public static Color EDIT_CHART_DIALOG_UPPER = getColor("edit_chart_dialog_upper");//$NON-NLS-1$
+ public static Color EDIT_CHART_DIALOG_LOWER = getColor("edit_chart_dialog_lower");//$NON-NLS-1$
+ public static Color EDIT_CHART_TABLE_SEPARATE_COLOR = getColor("edit_chart_table_separate_color"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_NORMAL_COLOR_START = getColor("edit_chart_button_normal_color_start"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_NORMAL_COLOR_END = getColor("edit_chart_button_normal_color_end"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_HOVER_COLOR_START = getColor("edit_chart_button_hover_color_start"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_HOVER_COLOR_END = getColor("edit_chart_button_hover_color_end"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_PUSH_COLOR_START = getColor("edit_chart_button_push_color_start"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_PUSH_COLOR_END = getColor("edit_chart_button_push_color_end"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_OUTLINE_NORMAL_COLOR = getColor("edit_chart_button_outline_normal_color"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_OUTLINE_HOVER_COLOR = getColor("edit_chart_button_outline_hover_color"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_OUTLINE_PUSH_COLOR = getColor("edit_chart_button_outline_push_color"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_INLINE_NORMAL_COLOR = getColor("edit_chart_button_inline_normal_color"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_INLINE_HOVER_COLOR = getColor("edit_chart_button_inline_hover_color"); //$NON-NLS-1$
+ public static Color EDIT_CHART_BUTTON_INLINE_PUSH_COLOR = getColor("edit_chart_button_inline_push_color"); //$NON-NLS-1$
+
+ public static Color VIEW_BORDER = getColor("view_border"); //$NON-NLS-1$
+ public static Color VIEW_BORDER_1 = getColor("view_border_1"); //$NON-NLS-1$
+ public static Color VIEW_BORDER_2 = getColor("view_border_2"); //$NON-NLS-1$
+ public static Color VIEW_BORDER_3 = getColor("view_border_3"); //$NON-NLS-1$
+ public static Color VIEW_BG_COLOR = getColor("view_bg_color"); //$NON-NLS-1$
+ public static Color VIEW_TITLE_FONT_COLOR = getColor("view_title_font_color");//$NON-NLS-1$
+
+ /** title bar colors **/
+ public static Color TITLEBAR_TEXT_COLOR = getColor("titlebar_text_color"); //$NON-NLS-1$
+ public static Color TITLEBAR_BG_COLOR = getColor("titlebar_bg"); //$NON-NLS-1$
+ public static Color TITLEBAR_START_COLOR = getColor("titlebar_start_color"); //$NON-NLS-1$
+ public static Color TITLEBAR_END_COLOR = getColor("titlebar_end_color"); //$NON-NLS-1$
+ public static Color TITLEBAR_BOTTOM_STROKE_1 = getColor("titlebar_bottom_stroke_1"); //$NON-NLS-1$
+ public static Color TITLEBAR_BOTTOM_STROKE_2 = getColor("titlebar_bottom_stroke_2"); //$NON-NLS-1$
+
+ /** Coolbar bg color **/
+ public static Color COOLBAR_BG_COLOR = getColor("coolbar_bg_color"); //$NON-NLS-1$
+ public static Color DEFAULT_FONT_COLOR = getColor("default_font_color");//$NON-NLS-1$
+
+ /*** combo button color ***/
+ public static Color TOOLBAR_COMBO_NORMAL_START = getColor("toolbar_combo_normal_start"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_NORMAL_END = getColor("toolbar_combo_normal_end"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_PUSH_START = getColor("toolbar_combo_push_start"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_PUSH_END = getColor("toolbar_combo_push_end"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_HOVER_START = getColor("toolbar_combo_hover_start"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_HOVER_END = getColor("toolbar_combo_hover_end"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_DISABLE_START = getColor("toolbar_combo_disable_start"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_DISABLE_END = getColor("toolbar_combo_disable_end"); //$NON-NLS-1$
+
+ public static Color TOOLBAR_COMBO_OUTLINE_NORMAL_IN_COLOR = getColor("toolbar_combo_outline_normal_in_color"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_OUTLINE_HOVER_IN_COLOR = getColor("toolbar_combo_outline_hover_in_color"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_OUTLINE_PUSH_IN_COLOR = getColor("toolbar_combo_outline_push_in_color"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_OUTLINE_DISABLE_IN_COLOR = getColor("toolbar_combo_outline_disable_in_color"); //$NON-NLS-1$
+
+ public static Color TOOLBAR_COMBO_BUTTON_NORMAL_COLOR = getColor("toolbar_combo_button_normal_color"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_BUTTON_HOVER_COLOR = getColor("toolbar_combo_button_hover_color"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_BUTTON_PUSH_COLOR = getColor("toolbar_combo_button_push_color"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_BUTTON_DISABLE_COLOR = getColor("toolbar_combo_button_disable_color"); //$NON-NLS-1$
+
+ public static Color TOOLBAR_COMBO_ARROW_OUTLINE_COLOR = getColor("toolbar_combo_arrow_outline_color"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_FONT_NORMAL_COLOR = getColor("toolbar_combo_font_normal_color"); //$NON-NLS-1$
+ public static Color TOOLBAR_COMBO_FONT_DISABLE_COLOR = getColor("toolbar_combo_font_disable_color"); //$NON-NLS-1$
+
+
+ public static Color DEVICE_APPLICATION_BUTTON_OUTLINE = getColor("device_application_button_outline"); //$NON-NLS-1$
+
+ /** device and application combo specific colors end **/
+
+ /** title tab combo color **/
+ public static Color TAB_COMBO_NORMAL_START = getColor("tab_combo_normal_start"); //$NON-NLS-1$
+ public static Color TAB_COMBO_NORMAL_END = getColor("tab_combo_normal_end"); //$NON-NLS-1$
+ public static Color TAB_COMBO_NORMAL_STROKE = getColor("tab_combo_normal_stroke"); //$NON-NLS-1$
+ public static Color TAB_COMBO_HOVER_START = getColor("tab_combo_hover_start"); //$NON-NLS-1$
+ public static Color TAB_COMBO_HOVER_END = getColor("tab_combo_hover_end"); //$NON-NLS-1$
+ public static Color TAB_COMBO_HOVER_STROKE = getColor("tab_combo_hover_stroke"); //$NON-NLS-1$
+ public static Color TAB_COMBO_PUSH_START = getColor("tab_combo_push_start"); //$NON-NLS-1$
+ public static Color TAB_COMBO_PUSH_END = getColor("tab_combo_push_end"); //$NON-NLS-1$
+ public static Color TAB_COMBO_PUSH_STROKE = getColor("tab_combo_push_stroke"); //$NON-NLS-1$
+
+
+ /** title combo color **/
+ public static Color FRAME_RATE_COMBO_DISABLE_START = getColor("frame_rate_combo_disable_start"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_DISABLE_END = getColor("frame_rate_combo_disable_end"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_NORMAL_START = getColor("frame_rate_combo_normal_start"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_NORMAL_END = getColor("frame_rate_combo_normal_end"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_HOVER_START = getColor("frame_rate_combo_hover_start"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_HOVER_END = getColor("frame_rate_combo_hover_end"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_PUSH_START = getColor("frame_rate_combo_push_start"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_PUSH_END = getColor("frame_rate_combo_push_end"); //$NON-NLS-1$
+
+ public static Color FRAME_RATE_COMBO_OUTLINE_DISABLE = getColor("frame_rate_combo_outline_disable"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_OUTLINE_NORMAL = getColor("frame_rate_combo_outline_normal"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_OUTLINE_HOVER = getColor("frame_rate_combo_outline_hover"); //$NON-NLS-1$
+ public static Color FRAME_RATE_COMBO_OUTLINE_PUSH = getColor("frame_rate_combo_outline_push"); //$NON-NLS-1$
+
+ /*** common button colors ***/
+ public static Color BUTTON_DISABLE_COLOR_START = getColor("button_disable_color_start"); //$NON-NLS-1$
+ public static Color BUTTON_DISABLE_COLOR_END = getColor("button_disable_color_end"); //$NON-NLS-1$
+ public static Color BUTTON_NORMAL_COLOR_START = getColor("button_normal_color_start"); //$NON-NLS-1$
+ public static Color BUTTON_NORMAL_COLOR_END = getColor("button_normal_color_end"); //$NON-NLS-1$
+ public static Color BUTTON_HOVER_COLOR_START = getColor("button_hover_color_start"); //$NON-NLS-1$
+ public static Color BUTTON_HOVER_COLOR_END = getColor("button_hover_color_end"); //$NON-NLS-1$
+ public static Color BUTTON_PUSH_COLOR_START = getColor("button_push_color_start"); //$NON-NLS-1$
+ public static Color BUTTON_PUSH_COLOR_END = getColor("button_push_color_end"); //$NON-NLS-1$
+
+ public static Color BUTTON_OUTLINE_NORMAL_IN_COLOR = getColor("button_outline_normal_in_color"); //$NON-NLS-1$
+ public static Color BUTTON_OUTLINE_PUSH_IN_COLOR = getColor("button_outline_push_in_color"); //$NON-NLS-1$
+ public static Color BUTTON_OUTLINE_HOVER_IN_COLOR = getColor("button_outline_hover_in_color"); //$NON-NLS-1$
+ public static Color BUTTON_OUTLINE_DISABLE_IN_COLOR = getColor("button_outline_disable_in_color"); //$NON-NLS-1$
+
+ public static Color BUTTON_OUTLINE_NORMAL_COLOR = getColor("button_outline_normal_color"); //$NON-NLS-1$
+ public static Color BUTTON_OUTLINE_PUSH_COLOR = getColor("button_outline_push_color"); //$NON-NLS-1$
+ public static Color BUTTON_OUTLINE_HOVER_COLOR = getColor("button_outline_hover_color"); //$NON-NLS-1$
+ public static Color BUTTON_OUTLINE_DISABLE_COLOR = getColor("button_outline_disable_color"); //$NON-NLS-1$
+
+ public static Color BUTTON_NORMAL_FONT_COLOR = getColor("button_normal_font_color"); //$NON-NLS-1$
+ public static Color BUTTON_PUSH_FONT_COLOR = getColor("button_push_font_color"); //$NON-NLS-1$
+ public static Color BUTTON_HOVER_FONT_COLOR = getColor("button_hover_font_color"); //$NON-NLS-1$
+ public static Color BUTTON_DISABLE_FONT_COLOR = getColor("button_disable_font_color"); //$NON-NLS-1$
+
+ /** normal view layout colors start **/
+ public static Color NORMAL_VIEW_LAYOUT_OUTER = getColor("normal_view_layout_outer"); //$NON-NLS-1$
+ public static Color NORMAL_VIEW_LAYOUT_MIDDLE = getColor("normal_view_layout_middle"); //$NON-NLS-1$
+ public static Color NORMAL_VIEW_LAYOUT_INNER = getColor("normal_view_layout_inner"); //$NON-NLS-1$
+ /** normal view layout colors end **/
+
+ /** view colors start **/
+ public static Color SNAPSHOT_VIEW_OUTLINE = getColor("current_view_outline"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_TITLE_TEXT = WHITE;
+ public static Color SNAPSHOT_VIEW_MIDDLE = NORMAL_VIEW_LAYOUT_MIDDLE;
+ public static Color SNAPSHOT_VIEW_INNER = NORMAL_VIEW_LAYOUT_INNER;
+
+ public static Color SNAPSHOT_VIEW_TABLE_TITLE_BG = getColor("current_view_table_title_bg"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_TABLE_TITLE_TEXT = getColor("current_view_table_title_text"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_TABLE_CONTENTS_BG = getColor("current_view_table_contents_bg"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_TABLE_CONTENTS_TEXT = getColor("current_view_table_contents_text"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_TABLE_LINE = getColor("current_view_table_line"); //$NON-NLS-1$
+
+ public static Color SNAPSHOT_VIEW_CPU_TEXT = getColor("current_view_cpu_text"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_PROCESS_TEXT = getColor("current_view_process_text"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_GRAPH_BG = getColor("current_view_graph_bg"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_CPU_GRAPH = SNAPSHOT_VIEW_CPU_TEXT;
+ public static Color SNAPSHOT_VIEW_PROCESS_GRAPH = SNAPSHOT_VIEW_PROCESS_TEXT;
+ public static Color SNAPSHOT_VIEW_GRAPH_OUTLINE = getColor("current_view_graph_outline"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_SNAPSHOT_OUTLINE = getColor("current_view_snapshot_outline"); //$NON-NLS-1$
+ public static Color SNAPSHOT_VIEW_LOCK_TEXT = getColor("current_view_lock_text"); //$NON-NLS-1$
+ /** current view colors end **/
+
+ /** common table colors start **/
+ public static Color TABLE_HEADER_BG = getColor("table_header_bg"); //$NON-NLS-1$
+ public static Color TABLE_LINE = getColor("table_line"); //$NON-NLS-1$
+ public static Color TABLE_CONTENTS_NORMAL = getColor("table_contents_normal"); //$NON-NLS-1$
+ public static Color TABLE_CONTENTS_HOVER = getColor("table_contents_hover"); //$NON-NLS-1$
+ public static Color TABLE_CONTENTS_SELECTED_START = getColor("table_contents_selected_start"); //$NON-NLS-1$
+ public static Color TABLE_CONTENTS_SELECTED_END = getColor("table_contents_selected_end"); //$NON-NLS-1$
+ public static Color TABLE_CONTENTS_SELECTED_FONT_COLOR = getColor("table_contents_selected_font_color"); //$NON-NLS-1$
+ public static Color TABLE_HEADER_FONT_COLOR = getColor("table_title_font_color"); //$NON-NLS-1$
+ public static Color TABLE_CONTENTS_FONT_COLOR = getColor("table_contents_font_color"); //$NON-NLS-1$
+ public static Color TABLE_CONTENTS_FAILED_BACGOUND_COLOR = getColor("table_contents_failed_bacgound_color"); //$NON-NLS-1$
+ public static Color TABLE_CONTENTS_FAILED_FONT_COLOR = getColor("table_contents_failed_font_color"); //$NON-NLS-1$
+ /** common table colors end **/
+
+ /** range color **/
+ public static Color TABLE_RANGE_COLOR_RANGE = getColor("table_range_color_range"); //$NON-NLS-1$
+ public static Color TABLE_RANGE_COLOR_SECOND_SELECTION = getColor("table_range_color_second_selection"); //$NON-NLS-1$
+ public static Color TABLE_RANGE_COLOR_RANGE_SECOND = getColor("table_range_color_range_second"); //$NON-NLS-1$
+ /** renge color end **/
+
+ /** open trace popup colors **/
+ public static Color OPEN_TRACE_LABEL_COLOR = getColor("open_trace_label_color");//$NON-NLS-1$
+ public static Color OPEN_TRACE_SAVE_CONTENTS_COLOR = getColor("open_trace_save_contents_color");//$NON-NLS-1$
+ public static Color OPEN_TRACE_TEMP_CONTENTS_COLOR = getColor("open_trace_temp_contents_color");//$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_OUTLINE_COLOR = getColor("open_trace_table_outline_color");//$NON-NLS-1$
+
+ public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR1 = getColor("open_trace_table_content_normal_color1");//$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR1 = getColor("open_trace_table_content_hover_color1");//$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR1 = getColor("open_trace_table_content_selected_start_color1");//$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR1 = getColor("open_trace_table_content_selected_end_color1");//$NON-NLS-1$
+
+ public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR2 = getColor("open_trace_table_content_normal_color2");//$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR2 = getColor("open_trace_table_content_hover_color2");//$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR2 = getColor("open_trace_table_content_selected_start_color2");//$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR2 = getColor("open_trace_table_content_selected_end_color2");//$NON-NLS-1$
+
+ public static Color OPEN_TRACE_BUTTON_COMPOSITE_BG_COLOR = getColor("open_trace_button_composite_bg_color");//$NON-NLS-1$
+
+ public static Color OPEN_TRACE_POPUP_CONTENTS_BG_COLOR = getColor("open_trace_popup_contents_bg_color"); //$NON-NLS-1$
+ public static Color OPEN_TRACE_POPUP_BOTTOM_BG_COLOR = getColor("open_trace_popup_bottom_bg_color"); //$NON-NLS-1$
+ public static Color OPEN_TRACE_TITLE_TEXT_COLOR = TITLEBAR_TEXT_COLOR;
+ public static Color OPEN_TRACE_INNERTITLE_TEXT_COLOR = WHITE;
+ public static Color OPEN_TRACE_BUTTON_TEXT_COLOR = WHITE;
+ // public static Color OPEN_TRACE_TABLE_OUTLINE_COLOR =
+ // SNAPSHOT_VIEW_TABLE_LINE;
+ public static Color OPEN_TRACE_TABLE_LINE1_NORMAL = getColor("open_trace_table_line1_normal"); //$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_LINE1_HOVER = getColor("open_trace_table_line1_hover"); //$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_LINE_SELECTED_START = getColor("open_trace_table_line_selected_start"); //$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_LINE_SELECTED_END = getColor("open_trace_table_line_selected_end"); //$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_LINE2_NORMAL = getColor("open_trace_table_line2_normal"); //$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE_LINE2_HOVER = getColor("open_trace_table_line2_hover"); //$NON-NLS-1$
+ public static Color OPEN_TRACE_TABLE2_FONT_COLOR = getColor("open_trace_table2_font_color"); //$NON-NLS-1$
+
+ /** tab widget colors **/
+ public static Color TAB_SELECTED_COLOR_START = getColor("tab_selected_color_start"); //$NON-NLS-1$
+ public static Color TAB_SELECTED_COLOR_END = getColor("tab_selected_color_end"); //$NON-NLS-1$
+ public static Color TAB_NORMAL_COLOR_START = getColor("tab_normal_color_start"); //$NON-NLS-1$
+ public static Color TAB_NORMAL_COLOR_END = getColor("tab_normal_color_end"); //$NON-NLS-1$
+ public static Color TAB_HOVER_COLOR_START = getColor("tab_hover_color_start"); //$NON-NLS-1$
+ public static Color TAB_HOVER_COLOR_END = getColor("tab_hover_color_end"); //$NON-NLS-1$
+ public static Color TAB_PUSH_COLOR_START = getColor("tab_push_color_start"); //$NON-NLS-1$
+ public static Color TAB_PUSH_COLOR_END = getColor("tab_push_color_end"); //$NON-NLS-1$
+
+ public static Color TAB_OUTLINE_NORMAL_COLOR = getColor("tab_outline_normal_color"); //$NON-NLS-1$
+ public static Color TAB_OUTLINE_PUSH_COLOR = getColor("tab_outline_push_color"); //$NON-NLS-1$
+ public static Color TAB_OUTLINE_HOVER_COLOR = getColor("tab_outline_hover_color"); //$NON-NLS-1$
+ public static Color TAB_OUTLINE_SELECTED_COLOR = getColor("tab_outline_selected_color"); //$NON-NLS-1$
+
+ public static Color TAB_SELECTED_FONT_COLOR = getColor("tab_selected_font_color"); //$NON-NLS-1$
+ public static Color TAB_NORMAL_FONT_COLOR = getColor("tab_normal_font_color"); //$NON-NLS-1$
+ public static Color TAB_HOVER_FONT_COLOR = getColor("tab_hover_font_color"); //$NON-NLS-1$
+ public static Color TAB_PUSH_FONT_COLOR = getColor("tab_push_font_color"); //$NON-NLS-1$
+
+ public static Color TAB_BG_COLOR = getColor("tab_bg_color"); //$NON-NLS-1$
+ public static Color TAB_BG_COLOR_START = getColor("tab_bg_color_start"); //$NON-NLS-1$
+ public static Color TAB_BG_COLOR_END = getColor("tab_bg_color_end"); //$NON-NLS-1$
+ public static Color TAB_BG_OUTLINE_COLOR = getColor("tab_bg_outline_color"); //$NON-NLS-1$
+
+ /** Page chart colors **/
+ public static Color PAGE_CHART_HAEDER_BG = getColor("page_chart_header_bg"); //$NON-NLS-1$
+ public static Color PAGE_CHART_SELECTION_BG = getColor("page_chart_selection_bg"); //$NON-NLS-1$
+ public static Color PAGE_CHART_PARENT_BG = getColor("page_chart_parent_bg"); //$NON-NLS-1$
+ public static Color PAGE_CHART_CHILD_BG = getColor("page_chart_child_bg"); //$NON-NLS-1$
+ public static Color PAGE_OPEN_START_RUN = getColor("page_open_start_run"); //$NON-NLS-1$
+ public static Color PAGE_OPEN_END_RUN = getColor("page_open_end_run"); //$NON-NLS-1$
+ public static Color PAGE_OPEN_START_STOP = getColor("page_open_start_stop"); //$NON-NLS-1$
+ public static Color PAGE_OPEN_END_STOP = getColor("page_open_end_stop"); //$NON-NLS-1$
+ public static Color PAGE_CLOSED_START = getColor("page_closed_start"); //$NON-NLS-1$
+ public static Color PAGE_CLOSED_END = getColor("page_closed_end"); //$NON-NLS-1$
+ public static Color PAGE_USE_START = getColor("page_use_start"); //$NON-NLS-1$
+ public static Color PAGE_USE_END = getColor("page_use_end"); //$NON-NLS-1$
+
+ // /** Thread chart colors **/
+ // public static Color THREAD_OPEN_START_RUN = getColor("thread_open_start_run"); //$NON-NLS-1$
+ // public static Color THREAD_OPEN_END_RUN = getColor("thread_open_end_run"); //$NON-NLS-1$
+ // public static Color THREAD_OPEN_START_STOP = getColor("thread_open_start_stop"); //$NON-NLS-1$
+ // public static Color THREAD_OPEN_END_STOP = getColor("thread_open_end_stop"); //$NON-NLS-1$
+ // public static Color THREAD_CLOSED_START = getColor("thread_closed_start"); //$NON-NLS-1$
+ // public static Color THREAD_CLOSED_END = getColor("thread_closed_end"); //$NON-NLS-1$
+ // public static Color THREAD_SLEEP_START = getColor("thread_sleep_start"); //$NON-NLS-1$
+ // public static Color THREAD_SLEEP_END = getColor("thread_sleep_end"); //$NON-NLS-1$
+
+ /** File chart colors **/
+ public static Color FILE_API_USED = getColor("file_api_used"); //$NON-NLS-1$
+ public static Color FILE_API_FAILED = getColor("file_api_failed"); //$NON-NLS-1$
+ public static Color FILE_AREA_USED_START = getColor("file_area_used_start"); //$NON-NLS-1$
+ public static Color FILE_AREA_USED_END = getColor("file_area_used_end"); //$NON-NLS-1$
+ public static Color FILE_AREA_CLOSED_START = getColor("file_area_closed_start"); //$NON-NLS-1$
+ public static Color FILE_AREA_CLOSED_END = getColor("file_area_closed_end"); //$NON-NLS-1$
+ public static Color FILE_AREA_NOT_ACCESS_START = getColor("file_not_access_start"); //$NON-NLS-1$
+ public static Color FILE_AREA_NOT_ACCESS_END = getColor("file_not_access_end"); //$NON-NLS-1$
+ public static Color FILE_ACCESS_READ = getColor("file_access_read"); //$NON-NLS-1$
+ public static Color FILE_ACCESS_WRITE = getColor("file_access_write"); //$NON-NLS-1$
+ public static Color FILE_ACCESS_CONCURRENT_READ = getColor("file_access_concurrent_read"); //$NON-NLS-1$
+ public static Color FILE_ACCESS_CONCURRENT_WRITE = getColor("file_access_concurrent_write"); //$NON-NLS-1$
+ public static Color FILE_LOCK = getColor("file_lock"); //$NON-NLS-1$
+ public static Color FILE_UNLOCK = getColor("file_unlock"); //$NON-NLS-1$file_unlock
+ public static Color FILE_LOCK_WAITING = getColor("file_lock_waiting"); //$NON-NLS-1$
+ public static Color FILE_OTHER_OPERATION = getColor("file_other_operation"); //$NON-NLS-1$
+ public static Color FILE_OPENED = getColor("file_opened"); //$NON-NLS-1$
+ public static Color FILE_DUPLICATE_OPENED = getColor("file_duplicate_opened"); //$NON-NLS-1$
+
+ /** Network chart colors **/
+ public static Color NETWORK_API_USED = getColor("network_api_used"); //$NON-NLS-1$
+ public static Color NETWORK_API_FAILED = getColor("network_api_failed"); //$NON-NLS-1$
+ public static Color NETWORK_AREA_FD_USED_START = getColor("network_area_fd_used_start"); //$NON-NLS-1$
+ public static Color NETWORK_AREA_FD_USED_END = getColor("network_area_fd_used_end"); //$NON-NLS-1$
+ public static Color NETWORK_AREA_CONNECTED_START = getColor("network_area_connected_start"); //$NON-NLS-1$
+ public static Color NETWORK_AREA_CONNECTED_END = getColor("network_area_connected_end"); //$NON-NLS-1$
+ public static Color NETWORK_AREA_CLOSED_START = getColor("network_area_closed_start"); //$NON-NLS-1$
+ public static Color NETWORK_AREA_CLOSED_END = getColor("network_area_closed_end"); //$NON-NLS-1$
+ public static Color NETWORK_AREA_NOT_CLOSED_START = getColor("network_area_not_closed_start"); //$NON-NLS-1$
+ public static Color NETWORK_AREA_NOT_CLOSED_END = getColor("network_area_not_closed_end"); //$NON-NLS-1$
+ public static Color NETWORK_ACCESS_RECV = getColor("network_access_recv"); //$NON-NLS-1$
+ public static Color NETWORK_ACCESS_SEND = getColor("network_access_send"); //$NON-NLS-1$
+ public static Color NETWORK_ACCESS_WAIT = getColor("network_access_wait"); //$NON-NLS-1$
+
+ public static Color UNSELECTED_TAB_FIRST = getColor("unselected_tab_first"); //$NON-NLS-1$
+ public static Color UNSELECTED_TAB_SECOND = getColor("unselected_tab_second"); //$NON-NLS-1$
+ public static Color SELECTED_TAB_FIRST = getColor("selected_tab_first"); //$NON-NLS-1$
+ public static Color SELECTED_TAB_SECOND = getColor("selected_tab_second"); //$NON-NLS-1$
+
+ public static Color TOOLTIP = getColor("tooltip"); //$NON-NLS-1$
+
+ public static Color BAR_GRAY1 = getColor("barGRAY1"); //$NON-NLS-1$
+ public static Color BAR_GRAY2 = getColor("barGRAY2"); //$NON-NLS-1$
+ public static Color BAR_GRAY3 = getColor("barGRAY3"); //$NON-NLS-1$
+
+ /* Timeline */
+ public static Color ITEM_BLUE_BRIGHT = getColor("item blue right");//$NON-NLS-1$
+ public static Color ITEM_BLUE_DARK = getColor("item blue dark");//$NON-NLS-1$
+ public static Color ITEM_BG = getColor("item background");//$NON-NLS-1$
+ public static Color ITEM_BG_TOP = getColor("item_bg_top");//$NON-NLS-1$
+ public static Color ITEM_BG_Bottom = getColor("item_bg_bottom");//$NON-NLS-1$
+
+ public static Color TIMELINE_BG = getColor("timeline_bg"); //$NON-NLS-1$
+ public static Color TRANS = getColor("timeline_bg"); //$NON-NLS-1$
+ public static Color SNAPSHOT_CHART_FOREGROUND = BAR_GRAY1;
+ public static Color SNAPSHOT_CHART_BACKGROUND = getColor("snapshot_chart_bg"); //$NON-NLS-1$
+
+ public static Color GRAY_130 = getColor("GRAY_130"); //$NON-NLS-1$
+ public static Color GRAY_170 = getColor("GRAY_170"); //$NON-NLS-1$
+ public static Color GRAY_210 = getColor("GRAY_210"); //$NON-NLS-1$
+
+ public static Color DEFAULT_FOREGROUND = getColor("defaultForeground"); //$NON-NLS-1$
+ public static Color DEFAULT_BACKGROUND = getColor("defaultBackground"); //$NON-NLS-1$
+ public static Color DEFAULT_RED = getColor("defaultRed"); //$NON-NLS-1$
+
+ public static Color TIME_TICK_BG = getColor("time_tick_bg"); //$NON-NLS-1$
+ public static Color TIME_TICK_LINE = getColor("time_tick_line"); //$NON-NLS-1$
+
+ public static Color LIFECYCLE_INITIALIZING = getColor("lifecycle_initializing");//$NON-NLS-1$
+ public static Color LIFECYCLE_RUNNING = getColor("lifecycle_running");//$NON-NLS-1$
+ public static Color LIFECYCLE_PAUSING = getColor("lifecycle_pausing");//$NON-NLS-1$
+ public static Color LIFECYCLE_TERMINATING = getColor("lifecycle_terminating");//$NON-NLS-1$
+
+ public static Color ADD_CHART_NORMAL_STROKE = getColor("add_chart_normal_stroke");//$NON-NLS-1$
+ public static Color ADD_CHART_HOVER_STROKE = getColor("add_chart_hover_stroke");//$NON-NLS-1$
+ public static Color ADD_CHART_PUSH_STROKE = getColor("add_chart_push_stroke");//$NON-NLS-1$
+
+ public static Color ADD_CHART_NORMAL_START = getColor("add_chart_normal_start");//$NON-NLS-1$
+ public static Color ADD_CHART_NORMAL_END = getColor("add_chart_normal_end");//$NON-NLS-1$
+ public static Color ADD_CHART_HOVER_START = getColor("add_chart_hover_start");//$NON-NLS-1$
+ public static Color ADD_CHART_HOVER_END = getColor("add_chart_hover_end");//$NON-NLS-1$
+ public static Color ADD_CHART_PUSH_START = getColor("add_chart_push_start");//$NON-NLS-1$
+ public static Color ADD_CHART_PUSH_END = getColor("add_chart_push_end");//$NON-NLS-1$
+ public static Color ADD_CHART_FONT_COLOR = getColor("add_chart_font_color");//$NON-NLS-1$
+
+ // circular graph
+ public static Color CPU_BAR_GRAPH_COLOR = getColor("cpu_bar_graph_color"); //$NON-NLS-1$
+ public static Color CPU_BAR_GRAPH_GRAY_COLOR = getColor("cpu_bar_graph_gray_color"); //$NON-NLS-1$
+ public static Color CPU_BAR_GRAPH_BG_COLOR = getColor("cpu_bar_graph_bg_color"); //$NON-NLS-1$
+
+ public static Color PROCESS_GRAPH_COLOR = getColor("process_bar_graph_color"); //$NON-NLS-1$
+ public static Color PROCESS_GRAPH_CENTER_COLOR = getColor("process_bar_graph_center_color"); //$NON-NLS-1$
+ public static Color PROCESS_GRAPH_BG_COLOR = getColor("process_bar_graph_bg_color"); //$NON-NLS-1$
+
+ public static Color PROFILING_GRAPH_COLOR_START = getColor("profiling_graph_color_start"); //$NON-NLS-1$
+ public static Color PROFILING_GRAPH_COLOR_END = getColor("profiling_graph_color_end"); //$NON-NLS-1$
+
+ public static Color PROFILING_GRAPH_SELECTION_COLOR_START = getColor("profiling_graph_selection_color_start"); //$NON-NLS-1$
+ public static Color PROFILING_GRAPH_SELECTION_COLOR_END = getColor("profiling_graph_selection_color_end"); //$NON-NLS-1$
+
+ // Add Chart
+ public static Color ADD_CHART_ENABLE_COLOR = getColor("add_chart_enable_color"); //$NON-NLS-1$
+ public static Color ADD_CHART_DISABLE_COLOR = getColor("add_chart_disable_color"); //$NON-NLS-1$
+ public static Color ADD_CHART_ENABLE_TITLE_COLOR = getColor("add_chart_enable_title_color"); //$NON-NLS-1$
+ public static Color ADD_CHART_DISABLE_TITLE_COLOR = getColor("add_chart_disable_title_color"); //$NON-NLS-1$
+ public static Color ADD_CHART_ENABLE_DESCRIPT_COLOR = getColor("add_chart_enable_descript_color"); //$NON-NLS-1$
+ public static Color ADD_CHART_DISABLE_DESCRIPT_COLOR = getColor("add_chart_disable_descript_color"); //$NON-NLS-1$
+ public static Color ADD_CHART_ENABLE_HOVER_COLOR = getColor("add_chart_enable_hover_color"); //$NON-NLS-1$
+ public static Color ADD_CHART_DISABLE_HOVER_COLOR = getColor("add_chart_disable_hover_color"); //$NON-NLS-1$
+ public static Color ADD_CHART_DRAG_COLOR = getColor("add_chart_drag_color"); //$NON-NLS-1$
+
+ /** timeline chart **/
+ public static Color SERIES_COLOR_CPU_SYSTEM = getColor("seriesColorCPUSystem"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_CPU_APP = getColor("seriesColorCPUApp"); //$NON-NLS-1$
+
+ public static Color SERIES_COLOR_CPUCORE_CORE0 = getColor("seriesColorCPUCoreCore0"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_CPUCORE_CORE1 = getColor("seriesColorCPUCoreCore1"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_CPUCORE_CORE2 = getColor("seriesColorCPUCoreCore2"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_CPUCORE_CORE3 = getColor("seriesColorCPUCoreCore3"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_CPUCORE_CORE4 = getColor("seriesColorCPUCoreCore4"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_CPUCORE_CORE5 = getColor("seriesColorCPUCoreCore5"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_CPUCORE_CORE6 = getColor("seriesColorCPUCoreCore6"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_CPUCORE_CORE7 = getColor("seriesColorCPUCoreCore7"); //$NON-NLS-1$
+
+ public static Color SERIES_COLOR_HEAP_SYSTEM = getColor("seriesColorHeapSystem"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_HEAP_USER = getColor("seriesColorHeapApp"); //$NON-NLS-1$
+
+ public static Color SERIES_COLOR_PROCESS_VSS = getColor("seriesColorProcessVSS"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_PROCESS_RSS = getColor("seriesColorProcessRSS"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_PROCESS_PSS = getColor("seriesColorProcessPSS"); //$NON-NLS-1$
+
+ public static Color SERIES_COLOR_MEMORY_SYS_MAX = getColor("seriesColorMemorySysMax"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_MEMORY_SYS_USED = getColor("seriesColorMemorySysUsed"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_MEMORY_APP_USED = getColor("seriesColorMemoryAppUsed"); //$NON-NLS-1$
+
+ public static Color SERIES_COLOR_NETWORK_IO_SEND = getColor("seriesColorNetworkIOSend"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_NETWORK_IO_RECEIVE = getColor("seriesColorNetworkIOReceive"); //$NON-NLS-1$
+
+ public static Color SERIES_COLOR_DISK_IO_READ_BYTE = getColor("seriesColorDiskIOReadByte"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_DISK_IO_WRITE_BYTE = getColor("seriesColorDiskIOWriteByte"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_DISK_IO_READ_SECTOR = getColor("seriesColorDiskIOReadSector"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_DISK_IO_READ_WRITE_SECTOR = getColor("seriesColorDiskIOWriteSector"); //$NON-NLS-1$
+
+ public static Color SERIES_COLOR_DEVICE_WIFI = getColor("seriesColorDeviceWifi"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_DEVICE_BLUETOOTH = getColor("seriesColorDeviceBluetooth"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_DEVICE_GPS = getColor("seriesColorDeviceGPS"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_DEVICE_DNET = getColor("seriesColorDeviceDNet"); //$NON-NLS-1$
+ public static Color SERIES_COLOR_DEVICE_CAMERA = getColor("seriesColorDeviceCamera"); //$NON-NLS-1$
+
+ public static Color SERIES_COLOR_UI_EVENT_KEY = getColor("seriesColorUIEventKey");//$NON-NLS-1$
+ public static Color SERIES_COLOR_UI_EVENT_TOUCH = getColor("seriesColorUIEventTouch");//$NON-NLS-1$
+ public static Color SERIES_COLOR_UI_EVENT_GESTURE = getColor("seriesColorUIEventGesture");//$NON-NLS-1$
+ public static Color SERIES_COLOR_UI_EVENT_ORIENTATION = getColor("seriesColorUIEventOrientation");//$NON-NLS-1$
+ public static Color SERIES_COLOR_UI_EVENT_FRAMEWORK = getColor("seriesColorUIEventFramework");//$NON-NLS-1$
+
++ public static Color SERIES_COLOR_INTERACTIVE_BEFORE = getColor("seriesColorInteractiveBefore");//$NON-NLS-1$
++ public static Color SERIES_COLOR_INTERACTIVE_AFTER = getColor("seriesColorInteractiveAfter");//$NON-NLS-1$
++
+ public static Color SELECTION_RANGE = getColor("selectionRange"); //$NON-NLS-1$
+ public static Color SELECTION_LINE = getColor("selectionLine"); //$NON-NLS-1$
+
+ // scale widget
+ public static Color SCALE_OUTLINE_COLOR = getColor("scale_outline_color"); //$NON-NLS-1$
+ public static Color SCALE_BG_COLOR_START = getColor("scale_bg_color_start"); //$NON-NLS-1$
+ public static Color SCALE_BG_COLOR_END = getColor("scale_bg_color_end"); //$NON-NLS-1$
+ public static Color SCALE_AREA_COLOR = getColor("scale_area_color"); //$NON-NLS-1$
+ public static Color SCALE_AREA_OUTLINE_COLOR = getColor("scale_area_outline_color"); //$NON-NLS-1$
+
+ // stop progress dialog
+ // public static Color STOP_PROGRESS_LINE1_COLOR = getColor("stop_progress_line1_color"); //$NON-NLS-1$
+ // public static Color STOP_PROGRESS_LINE2_COLOR = getColor("stop_progress_line2_color"); //$NON-NLS-1$
+ // public static Color STOP_PROGRESS_BACKGROUND_COLOR = getColor("stop_progress_background_color"); //$NON-NLS-1$
+ // public static Color STOP_PROGRESS_INFO_FONT_COLOR = getColor("stop_progress_info_font_color"); //$NON-NLS-1$
+ // public static Color STOP_PROGRESS_BAR_START_COLOR = getColor("stop_progress_bar_start_color"); //$NON-NLS-1$
+ // public static Color STOP_PROGRESS_BAR_END_COLOR = getColor("stop_progress_bar_end_color"); //$NON-NLS-1$
+ // public static Color STOP_PROGRESS_BAR_BG_START_COLOR = getColor("stop_progress_bar_bg_start_color"); //$NON-NLS-1$
+ // public static Color STOP_PROGRESS_BAR_BG_END_COLOR = getColor("stop_progress_bar_bg_end_color"); //$NON-NLS-1$
+ // public static Color STOP_PROGRESS_BAR_OUTLINE_COLOR = getColor("stop_progress_bar_outline_color"); //$NON-NLS-1$
+
+ // thread graph
+ public static Color THREAD_GRAPH_MIN_CPU_LOAD_COLOR = getColor("thread_graph_min_cpu_load_color"); //$NON-NLS-1$
+ public static Color THREAD_GRAPH_MAX_CPU_LOAD_COLOR = getColor("thread_graph_max_cpu_load_color"); //$NON-NLS-1$
+ public static Color THREAD_GRAPH_CALLEE_COLOR = getColor("thread_graph_callee_color"); //$NON-NLS-1$
+ public static Color THREAD_GRAPH_LOCK_NEW_COLOR = getColor("thread_graph_lock_new_color"); //$NON-NLS-1$
+ public static Color THREAD_GRAPH_LOCK_WAIT_COLOR = getColor("thread_graph_lock_wait_color"); //$NON-NLS-1$
+ public static Color THREAD_GRAPH_LOCK_ACQUIRE_COLOR = getColor("thread_graph_lock_acquire_color"); //$NON-NLS-1$
+ public static Color THREAD_GRAPH_LOCK_RELEASE_COLOR = getColor("thread_graph_lock_release_color"); //$NON-NLS-1$
+
+ public static Color SNAPSHOT_VIEWER_BG_COLOR = getColor("snapshot_viewer_bg_color"); //$NON-NLS-1$
+
+ // public static Color CHECKBOX_DISABLED_FONT_COLOR = getColor("checkbox_disabled_font_color"); //$NON-NLS-1$
+
+ // configuration
+ public static Color CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR = getColor("configufation_table_cover_background_color"); //$NON-NLS-1$
+ public static Color CONFIGURATION_TABLE_BACKGROUND_COLOR = getColor("configufation_table_background_color"); //$NON-NLS-1$
+ public static Color CONFIGURATION_BUTTON_COVER_BACKGROUND_COLOR = getColor("configufation_button_cover_background_color"); //$NON-NLS-1$
+ public static Color CONFIGURATION_SUNKEN_LINE_UP_COLOR = getColor("configufation_sunken_line_up_color"); //$NON-NLS-1$
+ public static Color CONFIGURATION_SUNKEN_LINE_DOWN_COLOR = getColor("configufation_sunken_line_down_color"); //$NON-NLS-1$
+
+ // contextMenu
+ public static Color CONTEXT_MENU_TITLE_BACKGROUND_COLOR = getColor("context_menu_title_background_color"); //$NON-NLS-1$
+ public static Color CONTEXT_MENU_TITLE_FONT_COLOR = getColor("context_menu_title_font_color"); //$NON-NLS-1$
+
+ // binary settings
+ public static Color BINARY_SETTINGS_INPUT_BOX_COLOR = getColor("binary_settings_input_box_color"); //$NON-NLS-1$
+ public static Color BINARY_SETTINGS_LABEL_COLOR = getColor("binary_settings_label_color"); //$NON-NLS-1$
+
+ public static Color TEXT_NORMAL_COLOR = SCALE_OUTLINE_COLOR;
+ public static Color TEXT_HOVER_COLOR = BUTTON_OUTLINE_HOVER_COLOR;
+ public static Color TEXT_PUSH_COLOR = TAB_OUTLINE_PUSH_COLOR;
+
+ // explorer
+ public static Color EXPLORER_SELECT_START = getColor("explorer_select_start_color"); //$NON-NLS-1$
+ public static Color EXPLORER_SELECT_END = getColor("explorer_select_end_color"); //$NON-NLS-1$
+ public static Color EXPLORER_CELL_BG = getColor("explorer_cell_bg_color"); //$NON-NLS-1$
+ public static Color EXPLORER_CELL_LINE = getColor("explorer_cell_line_color"); //$NON-NLS-1$
+
+ // setting
+ public static Color SETTING_STROKE = getColor("setting_stroke"); //$NON-NLS-1$
+ public static Color SETTING_SUNKEN_LINE_1 = getColor("setting_sunken_line_1"); //$NON-NLS-1$
+ public static Color SETTING_SUNKEN_LINE_2 = getColor("setting_sunken_line_2"); //$NON-NLS-1$
+ public static Color SETTING_TITLE_BACKGROUND = getColor("setting_title_background"); //$NON-NLS-1$
+ public static Color SETTING_OVERHEAD_BACKGROUND = getColor("setting_overhead_background"); //$NON-NLS-1$
+
+ public static Color SETTING_BUTTON_NORMAL_COLOR = getColor("setting_button_normal_color"); //$NON-NLS-1$
+ public static Color SETTING_BUTTON_HOVER_COLOR = getColor("setting_button_hover_color"); //$NON-NLS-1$
+ public static Color SETTING_BUTTON_PUSH_COLOR = getColor("setting_button_push_color"); //$NON-NLS-1$
+ public static Color SETTING_BUTTON_DISABLE_COLOR = getColor("setting_button_disable_color"); //$NON-NLS-1$
+ public static Color SETTING_BUTTON_TOGGLE_NORMAL_COLOR = getColor("setting_button_toggle_normal_color"); //$NON-NLS-1$
+ public static Color SETTING_BUTTON_TOGGLE_HOVER_COLOR = getColor("setting_button_toggle_hover_color"); //$NON-NLS-1$
+ public static Color SETTING_BUTTON_TOGGLE_PUSH_COLOR = getColor("setting_button_toggle_push_color"); //$NON-NLS-1$
+
+ public static Color SETTING_COLOR = getColor("setting_font_color");//$NON-NLS-1$
+ public static Color SETTING_WARNING_FONT_COLOR = getColor("setting_warning_font_color");//$NON-NLS-1$
+
+ /** setting table colors start **/
+ public static Color SETTING_TABLE_HEADER_BG = getColor("setting_table_header_bg"); //$NON-NLS-1$
+ public static Color SETTING_TABLE_CONTENTS_NORMAL_ODD = getColor("setting_table_contents_normal_odd"); //$NON-NLS-1$
+ public static Color SETTING_TABLE_CONTENTS_NORMAL_EVEN = getColor("setting_table_contents_normal_even"); //$NON-NLS-1$
+ public static Color SETTING_TABLE_CONTENTS_HOVER = getColor("setting_table_contents_hover"); //$NON-NLS-1$
+ public static Color SETTING_TABLE_CONTENTS_SELECTED = getColor("setting_table_contents_selected"); //$NON-NLS-1$
+ public static Color SETTING_TABLE_CONTENTS_PARENT = getColor("setting_table_contents_parent"); //$NON-NLS-1$
+ public static Color SETTING_TABLE_CONTENTS_CHILD = getColor("setting_table_contents_child"); //$NON-NLS-1$
+ public static Color SETTING_TABLE_HEADER_FONT_COLOR = getColor("setting_table_title_font_color"); //$NON-NLS-1$
+ public static Color SETTING_TABLE_CONTENTS_FONT_COLOR = getColor("setting_table_contents_font_color"); //$NON-NLS-1$
+ /** setting table colors end **/
+
+ public static Color FEATURE_OVERHEAD_RANKING_NORMAL = getColor("feature_overhead_ranking_normal"); //$NON-NLS-1$
+ public static Color FEATURE_OVERHEAD_RANKING_MIDDLE = getColor("feature_overhead_ranking_middle"); //$NON-NLS-1$
+ public static Color FEATURE_OVERHEAD_RANKING_HIGH = getColor("feature_overhead_ranking_high"); //$NON-NLS-1$
+
+ /*** stop progress dialog ***/
+ public static final Color STOP_PROGRESS_LINE1_COLOR = getColor("stop_progress_line1_color", new RGB(45, 180, 200)); //$NON-NLS-1$
+ public static final Color STOP_PROGRESS_LINE2_COLOR = getColor("stop_progress_line2_color", new RGB(0, 0, 0)); //$NON-NLS-1$
+ public static final Color STOP_PROGRESS_BACKGROUND_COLOR = getColor("stop_progress_background_color", new RGB(232, 234, 235)); //$NON-NLS-1$
+ public static final Color STOP_PROGRESS_INFO_FONT_COLOR = getColor("stop_progress_info_font_color", new RGB(70, 70, 70)); //$NON-NLS-1$
+ public static final Color STOP_PROGRESS_BAR_START_COLOR = getColor("stop_progress_bar_start_color", new RGB(45, 180, 222)); //$NON-NLS-1$
+ public static final Color STOP_PROGRESS_BAR_END_COLOR = getColor("stop_progress_bar_end_color", new RGB(19, 161, 183)); //$NON-NLS-1$
+ public static final Color STOP_PROGRESS_BAR_BG_START_COLOR = getColor("stop_progress_bar_bg_start_color", new RGB(204, 204, 204)); //$NON-NLS-1$
+ public static final Color STOP_PROGRESS_BAR_BG_END_COLOR = getColor("stop_progress_bar_bg_end_color", new RGB(212, 212, 212)); //$NON-NLS-1$
+ public static final Color STOP_PROGRESS_BAR_OUTLINE_COLOR = getColor("stop_progress_bar_outline_color", new RGB(95, 95, 95)); //$NON-NLS-1$
+
+ // public static void initColors() {
+ // WINDOW_BG_COLOR = getColor("window_bg_color"); //$NON-NLS-1$
+ //
+ // DIALOG_BG_UPPER = getColor("dialg_bg_upper");//$NON-NLS-1$
+ // DIALOG_BG_LOWER = getColor("dialg_bg_lower");//$NON-NLS-1$
+ // DIALOG_SUNKEN_1 = getColor("dialg_sunken_1");//$NON-NLS-1$
+ // DIALOG_SUNKEN_2 = getColor("dialg_sunken_2");//$NON-NLS-1$
+ //
+ // EDIT_CHART_DIALOG_UPPER = getColor("edit_chart_dialog_upper");//$NON-NLS-1$
+ // EDIT_CHART_DIALOG_LOWER = getColor("edit_chart_dialog_lower");//$NON-NLS-1$
+ //
+ // VIEW_BORDER = getColor("view_border"); //$NON-NLS-1$
+ // VIEW_BG_COLOR = getColor("view_bg_color"); //$NON-NLS-1$
+ // VIEW_TITLE_FONT_COLOR = getColor("view_title_font_color");//$NON-NLS-1$
+ //
+ // /** title bar colors **/
+ // TITLEBAR_TEXT_COLOR = getColor("titlebar_text_color"); //$NON-NLS-1$
+ // TITLEBAR_BG_COLOR = getColor("titlebar_bg"); //$NON-NLS-1$
+ // TITLEBAR_START_COLOR = getColor("titlebar_start_color"); //$NON-NLS-1$
+ // TITLEBAR_END_COLOR = getColor("titlebar_end_color"); //$NON-NLS-1$
+ //
+ // /** Coolbar bg color **/
+ // COOLBAR_BG_COLOR = getColor("coolbar_bg_color"); //$NON-NLS-1$
+ // DEFAULT_FONT_COLOR = getColor("default_font_color");//$NON-NLS-1$
+ //
+ // /** device and application combo specific colors start **/
+ // DEVICE_APPLICATION_ENABLE = getColor("device_application_enable_font"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_DISABLE = getColor("device_application_disable"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_POPUP_OUTER_1 = getColor("device_application_popup_outer_1"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_POPUP_OUTER_2 = getColor("device_application_popup_outer_2"); //$NON-NLS-1$
+ // // DEVICE_APPLICATION_POPUP_OUTER_1 = RED;
+ // DEVICE_APPLICATION_DROPDOWN_TEXT = getColor("device_application_enable_font"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_ITEM_NORMAL_TOP = getColor("device_application_item_normal_top"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_ITEM_NORMAL_INNER = getColor("device_application_item_normal_inner"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_ITEM_NORMAL_BOTTOM = getColor("device_application_item_normal_bottom"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_ITEM_SELECT_TOP = getColor(
+ // "device_application_item_select_top", new RGB(76, 76, 77)); //$NON-NLS-1$
+ // DEVICE_APPLICATION_ITEM_SELECT_INNER = getColor("device_application_item_select_inner"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_ITEM_SELECT_BOTTOM = getColor("device_application_item_select_bottom"); //$NON-NLS-1$
+ //
+ // /*** combo button color ***/
+ // DEVICE_APPLICATION_BUTTON_NORMAL_START = getColor("device_application_button_normal_start"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_BUTTON_NORMAL_END = getColor("device_application_button_normal_end"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_BUTTON_PUSH_START = getColor("device_application_button_push_start"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_BUTTON_PUSH_END = getColor("device_application_button_push_end"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_BUTTON_HOVER_START = getColor("device_application_button_hover_start"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_BUTTON_HOVER_END = getColor("device_application_button_hover_end"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_BUTTON_DISABLE_START = getColor("device_application_button_disable_start"); //$NON-NLS-1$
+ // DEVICE_APPLICATION_BUTTON_DISABLE_END = getColor("device_application_button_disable_end"); //$NON-NLS-1$
+ //
+ // DEVICE_APPLICATION_BUTTON_OUTLINE = getColor("device_application_button_outline"); //$NON-NLS-1$
+ //
+ // /** device and application combo specific colors end **/
+ //
+ // /*** common button colors ***/
+ // BUTTON_DISABLE_COLOR_START = getColor("button_disable_color_start"); //$NON-NLS-1$
+ // BUTTON_DISABLE_COLOR_END = getColor("button_disable_color_end"); //$NON-NLS-1$
+ // BUTTON_NORMAL_COLOR_START = getColor("button_normal_color_start"); //$NON-NLS-1$
+ // BUTTON_NORMAL_COLOR_END = getColor("button_normal_color_end"); //$NON-NLS-1$
+ // BUTTON_HOVER_COLOR_START = getColor("button_hover_color_start"); //$NON-NLS-1$
+ // BUTTON_HOVER_COLOR_END = getColor("button_hover_color_end"); //$NON-NLS-1$
+ // BUTTON_PUSH_COLOR_START = getColor("button_push_color_start"); //$NON-NLS-1$
+ // BUTTON_PUSH_COLOR_END = getColor("button_push_color_end"); //$NON-NLS-1$
+ //
+ // BUTTON_OUTLINE_NORMAL_IN_COLOR = getColor("button_outline_normal_in_color"); //$NON-NLS-1$
+ // BUTTON_OUTLINE_PUSH_IN_COLOR = getColor("button_outline_push_in_color"); //$NON-NLS-1$
+ // BUTTON_OUTLINE_HOVER_IN_COLOR = getColor("button_outline_hover_in_color"); //$NON-NLS-1$
+ // BUTTON_OUTLINE_DISABLE_IN_COLOR = getColor("button_outline_disable_in_color"); //$NON-NLS-1$
+ //
+ // BUTTON_OUTLINE_NORMAL_COLOR = getColor("button_outline_normal_color"); //$NON-NLS-1$
+ // BUTTON_OUTLINE_PUSH_COLOR = getColor("button_outline_push_color"); //$NON-NLS-1$
+ // BUTTON_OUTLINE_HOVER_COLOR = getColor("button_outline_hover_color"); //$NON-NLS-1$
+ // BUTTON_OUTLINE_DISABLE_COLOR = getColor("button_outline_disable_color"); //$NON-NLS-1$
+ //
+ // BUTTON_NORMAL_FONT_COLOR = getColor("button_normal_font_color"); //$NON-NLS-1$
+ // BUTTON_PUSH_FONT_COLOR = getColor("button_push_font_color"); //$NON-NLS-1$
+ // BUTTON_HOVER_FONT_COLOR = getColor("button_hover_font_color"); //$NON-NLS-1$
+ // BUTTON_DISABLE_FONT_COLOR = getColor("button_disable_font_color"); //$NON-NLS-1$
+ //
+ // /** normal view layout colors start **/
+ // NORMAL_VIEW_LAYOUT_OUTER = getColor("normal_view_layout_outer"); //$NON-NLS-1$
+ // NORMAL_VIEW_LAYOUT_MIDDLE = getColor("normal_view_layout_middle"); //$NON-NLS-1$
+ // NORMAL_VIEW_LAYOUT_INNER = getColor("normal_view_layout_inner"); //$NON-NLS-1$
+ // /** normal view layout colors end **/
+ //
+ // /** view colors start **/
+ // SNAPSHOT_VIEW_OUTLINE = getColor("current_view_outline"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_TITLE_TEXT = WHITE;
+ // SNAPSHOT_VIEW_MIDDLE = NORMAL_VIEW_LAYOUT_MIDDLE;
+ // SNAPSHOT_VIEW_INNER = NORMAL_VIEW_LAYOUT_INNER;
+ //
+ // SNAPSHOT_VIEW_TABLE_TITLE_BG = getColor("current_view_table_title_bg"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_TABLE_TITLE_TEXT = getColor("current_view_table_title_text"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_TABLE_CONTENTS_BG = getColor("current_view_table_contents_bg"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_TABLE_CONTENTS_TEXT = getColor("current_view_table_contents_text"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_TABLE_LINE = getColor("current_view_table_line"); //$NON-NLS-1$
+ //
+ // SNAPSHOT_VIEW_CPU_TEXT = getColor("current_view_cpu_text"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_PROCESS_TEXT = getColor("current_view_process_text"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_GRAPH_BG = getColor("current_view_graph_bg"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_CPU_GRAPH = SNAPSHOT_VIEW_CPU_TEXT;
+ // SNAPSHOT_VIEW_PROCESS_GRAPH = SNAPSHOT_VIEW_PROCESS_TEXT;
+ // SNAPSHOT_VIEW_GRAPH_OUTLINE = getColor("current_view_graph_outline"); //$NON-NLS-1$
+ // SNAPSHOT_VIEW_SNAPSHOT_OUTLINE = getColor("current_view_snapshot_outline"); //$NON-NLS-1$
+ //
+ // SNAPSHOT_VIEW_LOCK_TEXT = getColor("current_view_lock_text"); //$NON-NLS-1$
+ // /** current view colors end **/
+ //
+ // /** common table colors start **/
+ // TABLE_HEADER_BG = getColor("table_header_bg"); //$NON-NLS-1$
+ // TABLE_LINE = getColor("table_line"); //$NON-NLS-1$
+ // TABLE_CONTENTS_NORMAL = getColor("table_contents_normal"); //$NON-NLS-1$
+ // TABLE_CONTENTS_HOVER = getColor("table_contents_hover"); //$NON-NLS-1$
+ // TABLE_CONTENTS_SELECTED_START = getColor("table_contents_selected_start"); //$NON-NLS-1$
+ // TABLE_CONTENTS_SELECTED_END = getColor("table_contents_selected_end"); //$NON-NLS-1$
+ // TABLE_CONTENTS_SELECTED_FONT_COLOR = getColor("table_contents_selected_font_color"); //$NON-NLS-1$
+ // TABLE_HEADER_FONT_COLOR = getColor("table_title_font_color"); //$NON-NLS-1$
+ // TABLE_CONTENTS_FONT_COLOR = getColor("table_contents_font_color"); //$NON-NLS-1$
+ // TABLE_CONTENTS_FAILED_BACGOUND_COLOR = getColor("table_contents_failed_bacgound_color"); //$NON-NLS-1$
+ // TABLE_CONTENTS_FAILED_FONT_COLOR = getColor("table_contents_failed_font_color"); //$NON-NLS-1$
+ // /** common table colors end **/
+ //
+ // /** open trace popup colors **/
+ // OPEN_TRACE_LABEL_COLOR = getColor("open_trace_label_color");//$NON-NLS-1$
+ // OPEN_TRACE_SAVE_CONTENTS_COLOR = getColor("open_trace_save_contents_color");//$NON-NLS-1$
+ // OPEN_TRACE_TEMP_CONTENTS_COLOR = getColor("open_trace_temp_contents_color");//$NON-NLS-1$
+ // OPEN_TRACE_TABLE_OUTLINE_COLOR = getColor("open_trace_table_outline_color");//$NON-NLS-1$
+ //
+ // OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR1 = getColor("open_trace_table_content_normal_color1");//$NON-NLS-1$
+ // OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR1 = getColor("open_trace_table_content_hover_color1");//$NON-NLS-1$
+ // OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR1 = getColor("open_trace_table_content_selected_start_color1");//$NON-NLS-1$
+ // OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR1 = getColor("open_trace_table_content_selected_end_color1");//$NON-NLS-1$
+ //
+ // OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR2 = getColor("open_trace_table_content_normal_color2");//$NON-NLS-1$
+ // OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR2 = getColor("open_trace_table_content_hover_color2");//$NON-NLS-1$
+ // OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR2 = getColor("open_trace_table_content_selected_start_color2");//$NON-NLS-1$
+ // OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR2 = getColor("open_trace_table_content_selected_end_color2");//$NON-NLS-1$
+ //
+ // OPEN_TRACE_BUTTON_COMPOSITE_BG_COLOR = getColor("open_trace_button_composite_bg_color");//$NON-NLS-1$
+ //
+ // OPEN_TRACE_POPUP_CONTENTS_BG_COLOR = getColor("open_trace_popup_contents_bg_color"); //$NON-NLS-1$
+ // OPEN_TRACE_POPUP_BOTTOM_BG_COLOR = getColor("open_trace_popup_bottom_bg_color"); //$NON-NLS-1$
+ // OPEN_TRACE_TITLE_TEXT_COLOR = TITLEBAR_TEXT_COLOR;
+ // OPEN_TRACE_INNERTITLE_TEXT_COLOR = WHITE;
+ // OPEN_TRACE_BUTTON_TEXT_COLOR = WHITE;
+ // // OPEN_TRACE_TABLE_OUTLINE_COLOR =
+ // // SNAPSHOT_VIEW_TABLE_LINE;
+ // OPEN_TRACE_TABLE_LINE1_NORMAL = getColor("open_trace_table_line1_normal"); //$NON-NLS-1$
+ // OPEN_TRACE_TABLE_LINE1_HOVER = getColor("open_trace_table_line1_hover"); //$NON-NLS-1$
+ // OPEN_TRACE_TABLE_LINE_SELECTED_START = getColor("open_trace_table_line_selected_start"); //$NON-NLS-1$
+ // OPEN_TRACE_TABLE_LINE_SELECTED_END = getColor("open_trace_table_line_selected_end"); //$NON-NLS-1$
+ // OPEN_TRACE_TABLE_LINE2_NORMAL = getColor("open_trace_table_line2_normal"); //$NON-NLS-1$
+ // OPEN_TRACE_TABLE_LINE2_HOVER = getColor("open_trace_table_line2_hover"); //$NON-NLS-1$
+ // OPEN_TRACE_TABLE2_FONT_COLOR = getColor("open_trace_table2_font_color"); //$NON-NLS-1$
+ //
+ // /** tab widget colors **/
+ // TAB_SELECTED_COLOR_START = getColor("tab_selected_color_start"); //$NON-NLS-1$
+ // TAB_SELECTED_COLOR_END = getColor("tab_selected_color_end"); //$NON-NLS-1$
+ // TAB_NORMAL_COLOR_START = getColor("tab_normal_color_start"); //$NON-NLS-1$
+ // TAB_NORMAL_COLOR_END = getColor("tab_normal_color_end"); //$NON-NLS-1$
+ // TAB_HOVER_COLOR_START = getColor("tab_hover_color_start"); //$NON-NLS-1$
+ // TAB_HOVER_COLOR_END = getColor("tab_hover_color_end"); //$NON-NLS-1$
+ // TAB_PUSH_COLOR_START = getColor("tab_push_color_start"); //$NON-NLS-1$
+ // TAB_PUSH_COLOR_END = getColor("tab_push_color_end"); //$NON-NLS-1$
+ //
+ // TAB_OUTLINE_NORMAL_COLOR = getColor("tab_outline_normal_color"); //$NON-NLS-1$
+ // TAB_OUTLINE_PUSH_COLOR = getColor("tab_outline_push_color"); //$NON-NLS-1$
+ // TAB_OUTLINE_HOVER_COLOR = getColor("tab_outline_hover_color"); //$NON-NLS-1$
+ // TAB_OUTLINE_SELECTED_COLOR = getColor("tab_outline_selected_color"); //$NON-NLS-1$
+ //
+ // TAB_SELECTED_FONT_COLOR = getColor("tab_selected_font_color"); //$NON-NLS-1$
+ // TAB_NORMAL_FONT_COLOR = getColor("tab_normal_font_color"); //$NON-NLS-1$
+ // TAB_HOVER_FONT_COLOR = getColor("tab_hover_font_color"); //$NON-NLS-1$
+ // TAB_PUSH_FONT_COLOR = getColor("tab_push_font_color"); //$NON-NLS-1$
+ //
+ // TAB_BG_COLOR_START = getColor("tab_bg_color_start"); //$NON-NLS-1$
+ // TAB_BG_COLOR_END = getColor("tab_bg_color_end"); //$NON-NLS-1$
+ // TAB_BG_OUTLINE_COLOR = getColor("tab_bg_outline_color"); //$NON-NLS-1$
+ //
+ // /** Page chart colors **/
+ // PAGE_CHART_HAEDER_BG = getColor("page_chart_header_bg"); //$NON-NLS-1$
+ // PAGE_CHART_SELECTION_BG = getColor("page_chart_selection_bg"); //$NON-NLS-1$
+ // PAGE_CHART_PARENT_BG = getColor("page_chart_parent_bg"); //$NON-NLS-1$
+ // PAGE_CHART_CHILD_BG = getColor("page_chart_child_bg"); //$NON-NLS-1$
+ // PAGE_OPEN_START_RUN = getColor("page_open_start_run"); //$NON-NLS-1$
+ // PAGE_OPEN_END_RUN = getColor("page_open_end_run"); //$NON-NLS-1$
+ // PAGE_OPEN_START_STOP = getColor("page_open_start_stop"); //$NON-NLS-1$
+ // PAGE_OPEN_END_STOP = getColor("page_open_end_stop"); //$NON-NLS-1$
+ // PAGE_CLOSED_START = getColor("page_closed_start"); //$NON-NLS-1$
+ // PAGE_CLOSED_END = getColor("page_closed_end"); //$NON-NLS-1$
+ // PAGE_USE_START = getColor("page_use_start"); //$NON-NLS-1$
+ // PAGE_USE_END = getColor("page_use_end"); //$NON-NLS-1$
+ //
+ // /** Thread chart colors **/
+ // THREAD_OPEN_START_RUN = getColor("thread_open_start_run"); //$NON-NLS-1$
+ // THREAD_OPEN_END_RUN = getColor("thread_open_end_run"); //$NON-NLS-1$
+ // THREAD_OPEN_START_STOP = getColor("thread_open_start_stop"); //$NON-NLS-1$
+ // THREAD_OPEN_END_STOP = getColor("thread_open_end_stop"); //$NON-NLS-1$
+ // THREAD_CLOSED_START = getColor("thread_closed_start"); //$NON-NLS-1$
+ // THREAD_CLOSED_END = getColor("thread_closed_end"); //$NON-NLS-1$
+ // THREAD_SLEEP_START = getColor("thread_sleep_start"); //$NON-NLS-1$
+ // THREAD_SLEEP_END = getColor("thread_sleep_end"); //$NON-NLS-1$
+ //
+ // /** File chart colors **/
+ // FILE_API_USED = getColor("file_api_used"); //$NON-NLS-1$
+ // FILE_API_FAILED = getColor("file_api_failed"); //$NON-NLS-1$
+ // FILE_AREA_USED_START = getColor("file_area_used_start"); //$NON-NLS-1$
+ // FILE_AREA_USED_END = getColor("file_area_used_end"); //$NON-NLS-1$
+ // FILE_AREA_CLOSED_START = getColor("file_area_closed_start"); //$NON-NLS-1$
+ // FILE_AREA_CLOSED_END = getColor("file_area_closed_end"); //$NON-NLS-1$
+ // FILE_AREA_NOT_ACCESS_START = getColor("file_not_access_start"); //$NON-NLS-1$
+ // FILE_AREA_NOT_ACCESS_END = getColor("file_not_access_end"); //$NON-NLS-1$
+ // FILE_ACCESS_READ = getColor("file_access_read"); //$NON-NLS-1$
+ // FILE_ACCESS_WRITE = getColor("file_access_write"); //$NON-NLS-1$
+ //
+ // UNSELECTED_TAB_FIRST = getColor("unselected_tab_first"); //$NON-NLS-1$
+ // UNSELECTED_TAB_SECOND = getColor("unselected_tab_second"); //$NON-NLS-1$
+ // SELECTED_TAB_FIRST = getColor("selected_tab_first"); //$NON-NLS-1$
+ // SELECTED_TAB_SECOND = getColor("selected_tab_second"); //$NON-NLS-1$
+ //
+ // /** Network chart colors **/
+ // NETWORK_API_USED = getColor("network_api_used"); //$NON-NLS-1$
+ // NETWORK_API_FAILED = getColor("network_api_failed"); //$NON-NLS-1$
+ // NETWORK_AREA_FD_USED_START = getColor("network_area_fd_used_start"); //$NON-NLS-1$
+ // NETWORK_AREA_FD_USED_END = getColor("network_area_fd_used_end"); //$NON-NLS-1$
+ // NETWORK_AREA_CONNECTED_START = getColor("network_area_connected_start"); //$NON-NLS-1$
+ // NETWORK_AREA_CONNECTED_END = getColor("network_area_connected_end"); //$NON-NLS-1$
+ // NETWORK_AREA_CLOSED_START = getColor("network_area_closed_start"); //$NON-NLS-1$
+ // NETWORK_AREA_CLOSED_END = getColor("network_area_closed_end"); //$NON-NLS-1$
+ // NETWORK_AREA_NOT_CLOSED_START = getColor("network_area_not_closed_start"); //$NON-NLS-1$
+ // NETWORK_AREA_NOT_CLOSED_END = getColor("network_area_not_closed_end"); //$NON-NLS-1$
+ // NETWORK_ACCESS_RECV = getColor("network_access_recv"); //$NON-NLS-1$
+ // NETWORK_ACCESS_SEND = getColor("network_access_send"); //$NON-NLS-1$
+ // NETWORK_ACCESS_WAIT = getColor("network_access_wait"); //$NON-NLS-1$
+ //
+ // TOOLTIP = getColor("tooltip"); //$NON-NLS-1$
+ //
+ // BAR_GRAY1 = getColor("barGRAY1"); //$NON-NLS-1$
+ // BAR_GRAY2 = getColor("barGRAY2"); //$NON-NLS-1$
+ // BAR_GRAY3 = getColor("barGRAY3"); //$NON-NLS-1$
+ //
+ // /* Timeline */
+ // ITEM_BLUE_BRIGHT = getColor("item blue right");//$NON-NLS-1$
+ // ITEM_BLUE_DARK = getColor("item blue dark");//$NON-NLS-1$
+ // ITEM_BG = getColor("item background");//$NON-NLS-1$
+ //
+ // TRANS = getColor("timeline_bg"); //$NON-NLS-1$
+ // SNAPSHOT_CHART_FOREGROUND = BAR_GRAY1;
+ // SNAPSHOT_CHART_BACKGROUND = getColor("snapshot_chart_bg"); //$NON-NLS-1$
+ //
+ // GRAY_130 = getColor("GRAY_130"); //$NON-NLS-1$
+ // GRAY_170 = getColor("GRAY_170"); //$NON-NLS-1$
+ // GRAY_210 = getColor("GRAY_210"); //$NON-NLS-1$
+ //
+ // DEFAULT_FOREGROUND = getColor("defaultForeground"); //$NON-NLS-1$
+ // DEFAULT_BACKGROUND = getColor("defaultBackground"); //$NON-NLS-1$
+ // DEFAULT_RED = getColor("defaultRed"); //$NON-NLS-1$
+ //
+ // // circular graph
+ // CPU_BAR_GRAPH_COLOR = getColor("cpu_bar_graph_color"); //$NON-NLS-1$
+ // CPU_BAR_GRAPH_GRAY_COLOR = getColor("cpu_bar_graph_gray_color"); //$NON-NLS-1$
+ // CPU_BAR_GRAPH_BG_COLOR = getColor("cpu_bar_graph_bg_color"); //$NON-NLS-1$
+ //
+ // PROCESS_GRAPH_COLOR = getColor("process_bar_graph_color"); //$NON-NLS-1$
+ // PROCESS_GRAPH_CENTER_COLOR = getColor("process_bar_graph_center_color"); //$NON-NLS-1$
+ // PROCESS_GRAPH_BG_COLOR = getColor("process_bar_graph_bg_color"); //$NON-NLS-1$
+ //
+ // PROFILING_GRAPH_COLOR_START = getColor("profiling_graph_color_start"); //$NON-NLS-1$
+ // PROFILING_GRAPH_COLOR_END = getColor("profiling_graph_color_end"); //$NON-NLS-1$
+ //
+ // PROFILING_GRAPH_SELECTION_COLOR_START = getColor("profiling_graph_selection_color_start"); //$NON-NLS-1$
+ // PROFILING_GRAPH_SELECTION_COLOR_END = getColor("profiling_graph_selection_color_end"); //$NON-NLS-1$
+ //
+ // // Add Chart
+ // ADD_CHART_ENABLE_COLOR_START = getColor("add_chart_enable_color_start"); //$NON-NLS-1$
+ // ADD_CHART_ENABLE_COLOR_END = getColor("add_chart_enable_color_end"); //$NON-NLS-1$
+ // ADD_CHART_DISABLE_COLOR_START = getColor("add_chart_disable_color_start"); //$NON-NLS-1$
+ // ADD_CHART_DISABLE_COLOR_END = getColor("add_chart_disable_color_end"); //$NON-NLS-1$
+ //
+ // /** timeline chart **/
+ // SERIES_COLOR_CPU_SYSTEM = getColor("seriesColorCPUSystem"); //$NON-NLS-1$
+ // SERIES_COLOR_CPU_APP = getColor("seriesColorCPUApp"); //$NON-NLS-1$
+ //
+ // SERIES_COLOR_CPUCORE_CORE0 = getColor("seriesColorCPUCoreCore0"); //$NON-NLS-1$
+ // SERIES_COLOR_CPUCORE_CORE1 = getColor("seriesColorCPUCoreCore1"); //$NON-NLS-1$
+ // SERIES_COLOR_CPUCORE_CORE2 = getColor("seriesColorCPUCoreCore2"); //$NON-NLS-1$
+ // SERIES_COLOR_CPUCORE_CORE3 = getColor("seriesColorCPUCoreCore3"); //$NON-NLS-1$
+ //
+ // SERIES_COLOR_CPU_FREQ = getColor("seriesColorCPUFreq"); //$NON-NLS-1$
+ //
+ // SERIES_COLOR_HEAP_SYSTEM = getColor("seriesColorHeapSystem"); //$NON-NLS-1$
+ // SERIES_COLOR_HEAP_USER = getColor("seriesColorHeapApp"); //$NON-NLS-1$
+ //
+ // SERIES_COLOR_PROCESS_VSS = getColor("seriesColorProcessVSS"); //$NON-NLS-1$
+ // SERIES_COLOR_PROCESS_RSS = getColor("seriesColorProcessRSS"); //$NON-NLS-1$
+ // SERIES_COLOR_PROCESS_PSS = getColor("seriesColorProcessPSS"); //$NON-NLS-1$
+ //
+ // SERIES_COLOR_MEMORY_SYS_MAX = getColor("seriesColorMemorySysMax"); //$NON-NLS-1$
+ // SERIES_COLOR_MEMORY_SYS_USED = getColor("seriesColorMemorySysUsed"); //$NON-NLS-1$
+ // SERIES_COLOR_MEMORY_APP_USED = getColor("seriesColorMemoryAppUsed"); //$NON-NLS-1$
+ //
+ // SERIES_COLOR_FILE_READ = getColor("seriesColorFileRead"); //$NON-NLS-1$
+ // SERIES_COLOR_FILE_WRITE = getColor("seriesColorFileWrite"); //$NON-NLS-1$
+ // SERIES_COLOR_FILE_FD = getColor("seriesColorFileFD"); //$NON-NLS-1$
+ //
+ // SELECTION_RANGE = getColor("selectionRange"); //$NON-NLS-1$
+ // SELECTION_LINE = getColor("selectionLine"); //$NON-NLS-1$
+ //
+ // // scale widget
+ // SCALE_OUTLINE_COLOR = getColor("scale_outline_color"); //$NON-NLS-1$
+ // SCALE_BG_COLOR_START = getColor("scale_bg_color_start"); //$NON-NLS-1$
+ // SCALE_BG_COLOR_END = getColor("scale_bg_color_end"); //$NON-NLS-1$
+ // SCALE_AREA_COLOR = getColor("scale_area_color"); //$NON-NLS-1$
+ // SCALE_AREA_OUTLINE_COLOR = getColor("scale_area_outline_color"); //$NON-NLS-1$
+ //
+ // // stop progress dialog
+ //// STOP_PROGRESS_LINE1_COLOR = getColor("stop_progress_line1_color"); //$NON-NLS-1$
+ //// STOP_PROGRESS_LINE2_COLOR = getColor("stop_progress_line2_color"); //$NON-NLS-1$
+ //// STOP_PROGRESS_BACKGROUND_COLOR = getColor("stop_progress_background_color"); //$NON-NLS-1$
+ //// STOP_PROGRESS_INFO_FONT_COLOR = getColor("stop_progress_info_font_color"); //$NON-NLS-1$
+ //
+ // // thread graph
+ // THREAD_GRAPH_CPU_LOAD_COLOR = getColor("thread_graph_cpu_load_color"); //$NON-NLS-1$
+ // THREAD_GRAPH_CALLEE_COLOR = getColor("thread_graph_callee_color"); //$NON-NLS-1$
+ // THREAD_GRAPH_LOCK_NEW_COLOR = getColor("thread_graph_lock_new_color"); //$NON-NLS-1$
+ // THREAD_GRAPH_LOCK_WAIT_COLOR = getColor("thread_graph_lock_wait_color"); //$NON-NLS-1$
+ // THREAD_GRAPH_LOCK_ACQUIRE_COLOR = getColor("thread_graph_lock_acquire_color"); //$NON-NLS-1$
+ // THREAD_GRAPH_LOCK_RELEASE_COLOR = getColor("thread_graph_lock_release_color"); //$NON-NLS-1$
+ //
+ // // configuration
+ // CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR = getColor("configufation_table_cover_background_color"); //$NON-NLS-1$
+ // CONFIGURATION_TABLE_BACKGROUND_COLOR = getColor("configufation_table_background_color"); //$NON-NLS-1$
+ // CONFIGURATION_BUTTON_COVER_BACKGROUND_COLOR = getColor("configufation_button_cover_background_color"); //$NON-NLS-1$
+ // CONFIGURATION_SUNKEN_LINE_UP_COLOR = getColor("configufation_sunken_line_up_color"); //$NON-NLS-1$
+ // CONFIGURATION_SUNKEN_LINE_DOWN_COLOR = getColor("configufation_sunken_line_down_color"); //$NON-NLS-1$
+ //
+ // // contextMenu
+ // CONTEXT_MENU_TITLE_BACKGROUND_COLOR = getColor("context_menu_title_background_color"); //$NON-NLS-1$
+ // CONTEXT_MENU_TITLE_FONT_COLOR = getColor("context_menu_title_font_color"); //$NON-NLS-1$
+ //
+ // }
+
+ private static Color getColor(String colorName, RGB rgb) {
+ return DAThemeWhite.getInstance().getColor(colorName, rgb);
+ }
+
+ private static Color getColor(String colorName) {
+ return DAThemeWhite.getInstance().getColor(colorName);
+ }
+ }
public final static int TYPE_TABLE_CALLTRACE = 0x0020;
public final static int TYPE_TABLE_CONTEXTSWITCH = 0x0040;
public final static int TYPE_TABLE_FUNCTIONFRAGMENT = 0x0080;
- public final static int TYPE_TABLE_INTERACTIVE = 0x0100;
+ public final static int TYPE_TABLE_APP_STARTUP = 0x0100;
+ public final static int TYPE_TABLE_WEB_APP_STARTUP = 0x0200;
+ public final static int TYPE_TABLE_WEB_CALLTRACE = 0x0400;
-
++ public final static int TYPE_TABLE_INTERACTIVE = 0x0800;
public final static int CONTEXT_TABLE_RANGE = 0x0001;
public final static int CONTEXT_TABLE_SOURCE = 0x0002;
return ret;
}
- byte[] ret = ByteUtil.toBytesN(payload, index, size);
+ public final byte[] getBytesN(int size) {
++ byte[] ret = ByteUtil.toBytesN(body, index, size);
+ index += size;
+ return ret;
+ }
+
private int getStringLength() {
int length = 0;
- for (int i = index; i < payload.length; i++, length++) {
- if (payload[i] == 0) {
+ for (int i = index; i < body.length; i++, length++) {
+ if (body[i] == 0) {
length++;
break;
}
COOLBAR_AREA_NETWORK=Network
COOLBAR_AREA_KERNEL=Kernel
COOLBAR_AREA_OPENGLES=OpenGL ES
- COOLBAR_AREA_INTERACTIVE=Interactive
++COOLBAR_AREA_INTERACTIVE=CheckPoint
COOLBAR_AREA_TIMELINE_TOOLTIP=Timeline [Ctrl + 1]
COOLBAR_AREA_FILE_TOOLTIP=File [Ctrl + 4]
--- /dev/null
+ /*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jaewon Lim <jaewon81.lim@samsung.com>
+ * Woojin Jung <woojin2.jung@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+ package org.tizen.dynamicanalyzer.protocol;
+
+ // immutable constant value by protocol version
+ public class ProtocolConstants {
+ // to get protocol version
+ public static final int MSG_VERSION = 0x0001;
+ public static final int MSG_VERSION_ACK = 0x1001;
+
+ // sequence number
+ public static final long MAX_SEQ_NUMBER = 0xFFFFFFFFL;
+
+ // data message header size
+ public static final int DATAMSG_HEADER_SIZE = 20;
+
+ // header indexes
+ public static final int DATAMSG_MSGID_INDEX = 0;
+ public static final int DATAMSG_SEQNUM_INDEX = 4;
+ public static final int DATAMSG_TIME_SEC_INDEX = 8;
+ public static final int DATAMSG_TIME_NANO_INDEX = 12;
+ public static final int DATAMSG_PAYLOADLEN_INDEX = 16;
+
+ // data message id
+ public static final int MSG_DATA_PROCESS_INFO = 0x0001;
+ public static final int MSG_DATA_TERMINATE = 0x0002;
+ public static final int MSG_DATA_ERROR = 0x0003;
+ public static final int MSG_DATA_SAMPLE = 0x0004;
+ public static final int MSG_DATA_SYSTEM = 0x0005;
+ public static final int MSG_DATA_IMAGE = 0x0006;
+ public static final int MSG_DATA_RECORD = 0x0007;
+ public static final int MSG_FUNCTION_ENTRY = 0x0008;
+ public static final int MSG_FUNCTION_EXIT = 0x0009;
++ public final static int MSG_FUNCTION_BODY = 0x000A;
+ public static final int MSG_CONTEXT_SWITCH_ENTRY = 0x0010;
+ public static final int MSG_CONTEXT_SWITCH_EXIT = 0x0011;
+ public static final int MSG_PROCESS_MAP = 0x0012;
+ public static final int MSG_PROCESS_UNMAP = 0x0013;
+ public static final int MSG_PROCESS_COMM = 0x0014;
+ public final static int MSG_WEB_FUNCTION_ENTRY = 0x0015;
+ public final static int MSG_WEB_FUNCTION_EXIT = 0x0016;
+ public final static int MSG_APP_STARTUP = 0x0019;
+ public final static int MSG_WEB_APP_STARTUP = 0x001A;
+
+ // data probe message id
+ public static final int MSG_PROBE_MIN = 0x0101;
+ public static final int MSG_PROBE_MEMORY = 0x0101;
+ public static final int MSG_PROBE_UICONTROL = 0x0102;
+ public static final int MSG_PROBE_UIEVENT = 0x0103;
+ public static final int MSG_PROBE_FILE = 0x0104;
+ public static final int MSG_PROBE_LIFECYCLE = 0x0105;
+ public static final int MSG_PROBE_SCREENSHOT = 0x0106;
+ public static final int MSG_PROBE_SCENE = 0x0107;
+ public static final int MSG_PROBE_THREAD = 0x0108;
+ public static final int MSG_PROBE_CUSTOM = 0x0109;
+ public static final int MSG_PROBE_SYNC = 0x0110;
+ public static final int MSG_PROBE_NETWORK = 0x0111;
+ public static final int MSG_PROBE_GLES20 = 0x0112;
+
+ // Custom Message ID
+ public static final int MSG_FUCNTION_ENTRY_EXIT = 0x0900;
+ public static final int MSG_UNKNOWN = 0;
+
+ // feature flag values (low 8 byte)
+ public static final long FEATURE_RESERVED1 = 0x1L << 0;
+ public static final long FEATURE_RESERVED2 = 0x1L << 1;
+ public static final long FEATURE_FUNCTION_PROFILING = 0x1L << 2;
+ public static final long FEATURE_MEMORY_ALLOC_PROBE = 0x1L << 3;
+ public static final long FEATURE_FILE_API_PROBE = 0x1L << 4;
+ public static final long FEATURE_THREAD_API_PROBE = 0x1L << 5;
+ public static final long FEATURE_OSPUI_API_PROBE = 0x1L << 6;
+ public static final long FEATURE_SCREENSHOT = 0x1L << 7;
+ public static final long FEATURE_USER_EVENT = 0x1L << 8;
+ public static final long FEATURE_RECORDING = 0x1L << 9;
+ public static final long FEATURE_SYSCALL_FILE = 0x1L << 10;
+ public static final long FEATURE_SYSCALL_IPC = 0x1L << 11;
+ public static final long FEATURE_SYSCALL_PROCESS = 0x1L << 12;
+ public static final long FEATURE_SYSCALL_SIGNAL = 0x1L << 13;
+ public static final long FEATURE_SYSCALL_NETWORK = 0x1L << 14;
+ public static final long FEATURE_SYSCAL_DESC = 0x1L << 15;
+ public static final long FEATURE_CONTEXT_SWITCH = 0x1L << 16;
+ public static final long FEATURE_NETWORK_API_PROBE = 0x1L << 17;
+ public static final long FEATURE_OPENGL_API_PROBE = 0x1L << 18;
+ public static final long FEATURE_FUNCTION_SAMPLING = 0x1L << 19;
+
+ public static final long FEATURE_INTERNAL_MEMORY_ALLOC = 0x1L << 28;
+ public static final long FEATURE_INTERNAL_FILE_API = 0x1L << 29;
+ public static final long FEATURE_INTERNAL_THREAD_API = 0x1L << 30;
+ public static final long FEATURE_INTERNAL_OSPUI_API = 0x1L << 31;
+ public static final long FEATURE_INTERNAL_NETWORK_API = 0x1L << 32;
+ public static final long FEATURE_INTERNAL_OPENGL_API = 0x1L << 33;
+
+ public static final long FEATURE_SYSTEM_CPU = 0x1L << 36;
+ public static final long FEATURE_SYSTEM_MEMORY = 0x1L << 37;
+ public static final long FEATURE_SYSTEM_PROCESS = 0x1L << 38;
+ public static final long FEATURE_SYSTEM_THREAD_LOAD = 0x1L << 39;
+ public static final long FEATURE_SYSTEM_PROCESSES_LOAD = 0x1L << 40;
+ public static final long FEATURE_SYSTEM_DISK = 0x1L << 41;
+ public static final long FEATURE_SYSTEM_NETWORK = 0x1L << 42;
+ public static final long FEATURE_SYSTEM_DEVICE = 0x1L << 43;
+ public static final long FEATURE_SYSTEM_ENERGY = 0x1L << 44;
+
+ public static final long FEATURE_SYSTEM_FILE_ACTIVITY = 0x1L << 48;
+
+ // miscellaneous
+ public static final String MAIN_FUNCTION_SYMBOL = "main";
+ }
--- /dev/null
-import org.tizen.dynamicanalyzer.communicator.UnsupportedProtocolException;
+ /*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jaewon Lim <jaewon81.lim@samsung.com>
+ * Woojin Jung <woojin2.jung@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+ package org.tizen.dynamicanalyzer.protocol.p40;
+
+ import static org.tizen.dynamicanalyzer.constant.CommonConstants.INT_SIZE;
+
+ import java.util.ArrayList;
+ import java.util.Collections;
+ import java.util.List;
+ import java.util.Map;
+ import java.util.Set;
+ import java.util.TreeMap;
++
+ import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
+ import org.tizen.dynamicanalyzer.common.DAResult;
+ import org.tizen.dynamicanalyzer.common.DAResult.ErrorCode;
+ import org.tizen.dynamicanalyzer.common.Global;
+ import org.tizen.dynamicanalyzer.communicator.AckMessage;
+ import org.tizen.dynamicanalyzer.communicator.BaseCommunicator;
+ import org.tizen.dynamicanalyzer.communicator.DeviceInfo;
+ import org.tizen.dynamicanalyzer.communicator.ISerializable;
+ import org.tizen.dynamicanalyzer.communicator.ProtocolParser;
+ import org.tizen.dynamicanalyzer.communicator.ProtocolSerializer;
++import org.tizen.dynamicanalyzer.communicator.UnsupportedProtocolException;
+ import org.tizen.dynamicanalyzer.constant.CommonConstants;
+ import org.tizen.dynamicanalyzer.control.ApplistManager;
+ import org.tizen.dynamicanalyzer.control.IProgress;
+ import org.tizen.dynamicanalyzer.model.AddrSymbolPair;
+ import org.tizen.dynamicanalyzer.nl.UserErrorWarningLabels;
+ import org.tizen.dynamicanalyzer.project.AppInfo;
+ import org.tizen.dynamicanalyzer.project.BinaryInfo;
+ import org.tizen.dynamicanalyzer.project.PackageInfo;
+ import org.tizen.dynamicanalyzer.protocol.ProtocolConstants;
+ import org.tizen.dynamicanalyzer.protocol.p30.Communicator30;
+ import org.tizen.dynamicanalyzer.protocol.p30.ProtocolFilter30;
+ import org.tizen.dynamicanalyzer.setting.Feature;
+ import org.tizen.dynamicanalyzer.setting.SettingDataManager;
+ import org.tizen.dynamicanalyzer.setting.TargetData;
+ import org.tizen.dynamicanalyzer.swap.communicator.SwapErrorCode;
++import org.tizen.dynamicanalyzer.ui.interactive.model.FBIManager;
+ import org.tizen.dynamicanalyzer.util.Logger;
+
+ public class Communicator40 extends Communicator30 {
+
+ public Communicator40(BaseCommunicator parent) {
+ super(parent);
+ }
+
+ @Override
+ public DAResult connect() {
+ DAResult result;
+
+ int localPort = parent.getLocalPort();
+
+ result = createDataSocket(localPort);
+ if (!result.isSuccess()) {
+ Logger.warning(result.toString());
+ return new DAResult(ErrorCode.ERR_DATA_SOCKET_CREATION_FAIL);
+ }
+
+ // get target information
+ result = sendTargetInfoMessage(null);
+ if (!result.isSuccess()) {
+ Logger.warning(result.toString());
+ return result;
+ }
+
+ // get api map information
+ try {
+ result = sendProbeMapMessage(null);
+ if (!result.isSuccess()) {
+ Logger.warning(result.toString());
+ return result;
+ }
+ } catch (UnsupportedProtocolException e) {
+ parent.getDevice().getDeviceStatusInfo().setApiNameMap(getApiMap());
+ }
+
+ // send configuration message
+ result = sendConfigurationMessage(null);
+ if (result.isSuccess()) {
+ parent.getDevice().setConfigSuccess(true);
+ } else {
+ Logger.warning(result.toString());
+ }
+
+ return result;
+ }
+
+ @Override
+ public DAResult sendConfigurationMessage(IProgress progress) {
+ // send config message
+ ProtocolSerializer ps = new ProtocolSerializer();
+ ps.setMessageID(ProtocolConstant40.MSG_CONFIG);
+
+ // set feature flag value
+ Set<Feature> selectedFeatures = SettingDataManager.INSTANCE.getSelectedFeatureSet();
+ byte[] featureFlag = ProtocolConfig40.getFeatureFlagValue(selectedFeatures);
+ ps.putByteArray(featureFlag);
+
+ // set sampling period value
+ TargetData target = SettingDataManager.INSTANCE.getConnectedTarget();
+ int systemPeriod = target.getSelectedFeatureValue(Feature.SYSTEM_SAMPLING_RATE);
+ if (systemPeriod < 0) {
+ systemPeriod = Feature.SYSTEM_SAMPLING_RATE.getData().getDefaultValue();
+ }
+ int samplingPeriod = target.getSelectedFeatureValue(Feature.FUNCTION_SAMPLING_RATE);
+ if (samplingPeriod < 0) {
+ samplingPeriod = Feature.FUNCTION_SAMPLING_RATE.getData().getDefaultValue();
+ }
+ ps.putInt(systemPeriod);
+ ps.putInt(samplingPeriod);
+
+ byte[] msg = ps.toByteArray();
+
+ AckMessage result = parent.handleControlMessage(msg);
+
+ if (result != null && result.isSuccess()
+ && result.isCorrectID(ProtocolConstant40.MSG_CONFIG_ACK)) {
+ return new DAResult(ErrorCode.SUCCESS);
+ } else {
+ return new DAResult(ErrorCode.ERR_CONFIG_FAILED);
+ }
+ }
+
+ @Override
+ public DAResult sendKeepAliveMessage(IProgress progress) {
+ ProtocolSerializer ps = new ProtocolSerializer();
+ ps.setMessageID(ProtocolConstant40.MSG_KEEP_ALIVE);
+ byte[] msg = ps.toByteArray();
+
+ AckMessage result = parent.handleControlMessage(msg);
+ if (result != null && result.isCorrectID(ProtocolConstant40.MSG_KEEP_ALIVE_ACK)
+ && result.isSuccess()) {
+ return new DAResult(ErrorCode.SUCCESS);
+ } else {
+ return new DAResult(ErrorCode.ERR_KEEP_ALIVE);
+ }
+ }
+
+ @Override
+ public DAResult sendScreenshotMessage(IProgress progress) {
+ ProtocolSerializer ps = new ProtocolSerializer();
+ ps.setMessageID(ProtocolConstant40.MSG_GET_SCREENSHOT);
+ byte[] msg = ps.toByteArray();
+
+ // wait ack in protocol 4.0
+ AckMessage result = parent.handleControlMessage(msg, 0);
+ if (result != null && result.isSuccess()
+ && result.isCorrectID(ProtocolConstant40.MSG_GET_SCREENSHOT_ACK)) {
+ return new DAResult(ErrorCode.SUCCESS);
+ } else {
+ return new DAResult(ErrorCode.ERR_SCREENSHOT_GET_FAIL);
+ }
+ }
+
+ @Override
+ public DAResult sendProbeMapMessage(IProgress progress) throws UnsupportedProtocolException {
+ ProtocolSerializer ps = new ProtocolSerializer();
+ ps.setMessageID(ProtocolConstant40.MSG_GET_PROBEMAP);
+ byte[] msg = ps.toByteArray();
+
+ // wait ack in protocol 4.0
+ AckMessage result = parent.handleControlMessage(msg, 0);
+ if (result != null && result.isSuccess()
+ && result.isCorrectID(ProtocolConstant40.MSG_GET_PROBEMAP_ACK)) {
+ byte[] payload = result.getPayload();
+ if (payload != null) {
+ ProtocolParser parser = new ProtocolParser(payload);
+ parser.getInt(); // for return code
+
+ int countOfApi = parser.getInt();
+ if (countOfApi > 0) {
+ Map<Integer, String> apiNameMap = new TreeMap<Integer, String>();
+ apiNameMap.put(Integer.valueOf(0), AnalyzerConstants.UNKNOWN_API);
+
+ for (int i = 0; i < countOfApi; i++) {
+ int index = parser.getInt();
+ String apiName = parser.getString();
+ apiNameMap.put(Integer.valueOf(index), apiName);
+ }
+
+ parent.getDevice().getDeviceStatusInfo()
+ .setApiNameMap(Collections.unmodifiableMap(apiNameMap));
+ }
+ }
+
+ return new DAResult(ErrorCode.SUCCESS);
+ } else {
+ return new DAResult(ErrorCode.ERR_MSG_SEND_FAIL);
+ }
+ }
+
+ // return false if there is no application inst.
+ // return true, otherwise
+ @Override
+ protected boolean serializeApplicationInst(ProtocolSerializer ps) {
+ DeviceInfo dev = parent.getDevice();
+ String pkgID = Global.getCurrentApplication().getPackageId();
+ PackageInfo pkgInfo = dev.getPkgInfoByPkgID(pkgID);
+ List<AppInfo> apps = pkgInfo.getAppInfos();
+
+ List<ISerializable> appInstList = new ArrayList<ISerializable>();
+
+ if (pkgInfo.getPackageId().equals(AnalyzerConstants.RUNNING_PROCESS)) {
+ // if running process is selected for tracing
+ Map<Integer, String> selectedProcess = apps.get(0).getRunningProcesses();
+ if (selectedProcess != null && selectedProcess.size() > 0) {
+ for (Map.Entry<Integer, String> entry : selectedProcess.entrySet()) {
+ BinaryInfo binInfo = Global.getProject().getDeviceStatusInfo()
+ .getBinaryInfo(entry.getValue());
+ String temppath = binInfo.getTempBinaryPath();
+ if (temppath == null) {
+ // this means the app binary does not exist in device
+ continue;
+ }
+
+ ApplicationInst40 appInst = new ApplicationInst40();
+ appInst.setApplicationType(ProtocolConstant40.APPTYPE_PROCESS);
+ appInst.setApplicationID(entry.getKey().toString());
+ appInst.setExecutablePath(entry.getValue());
+
+ List<AddrSymbolPair> symbols = apps.get(0).getSymbols(temppath);
+ appInst.setFunctionInstList(getFunctionInstList(symbols));
+
+ appInstList.add(appInst);
+ }
+ }
+ } else if (pkgInfo.getPackageId().equals(AnalyzerConstants.WITHOUT_EXECUTABLE)) {
+ // if no executable is selected for tracing (system wide tracing)
+ ApplicationInst40 appInst = new ApplicationInst40();
+ appInst.setApplicationType(ProtocolConstant40.APPTYPE_PROCESS);
+ appInst.setApplicationID(CommonConstants.EMPTY);
+ appInst.setExecutablePath(CommonConstants.EMPTY);
+
+ appInstList.add(appInst);
+ } else { // normal application or common executable is selected
+ for (int k = 0; k < apps.size(); k++) {
+ AppInfo app = apps.get(k);
+
+ // check if application is in black list
+ if (ApplistManager.isInBlackList(app)) {
+ continue;
+ }
+
+ BinaryInfo binInfo = Global.getProject().getDeviceStatusInfo()
+ .getBinaryInfo(app.getExecBinaryPath());
+ String temppath = binInfo.getTempBinaryPath();
+ if (temppath == null) {
+ // this means the app binary does not exist in device
+ continue;
+ }
+
+ ApplicationInst40 appInst = new ApplicationInst40();
+
+ List<AddrSymbolPair> symbols = app.getSymbols(temppath);
+ List<ISerializable> functionInstList = getFunctionInstList(symbols, appInst);
+ if (functionInstList.isEmpty()) {
+ // this means there is no function inst.
+ continue;
+ }
++
++ List<FunctionBodyInstrument40> fbiList = FBIManager.getInstance().getFbiList();
++ Logger.debug("fbiList.size() : " + fbiList.size());
++ for (int i = 0; i < fbiList.size(); i++) {
++ FunctionInst40 functionInst = new FunctionInst40();
++ functionInst.setAddr(fbiList.get(i).getAddress());
++ functionInst.setType(ProtocolConstant40.PROBE_FBI);
++ functionInst.setFBI(fbiList.get(i));
++ functionInstList.add(functionInst);
++ }
+
+ // TODO : make sure that first app of package is main app
+ if (k == 0) {
+ String appType = app.getInfo(AppInfo.PROPERTY.APPTYPE.index);
+ if (appType.contains(AppInfo.APPTYPE_CPP)) {
+ appInst.setApplicationType(ProtocolConstant40.APPTYPE_TIZEN);
+ appInst.setApplicationID(app.getAppID());
+ } else if (appType.contains(AppInfo.APPTYPE_WEB)) {
+ appInst.setApplicationType(ProtocolConstant40.APPTYPE_WEB);
+ appInst.setApplicationID(app.getAppID());
+ } else if (appType.contains(AppInfo.APPTYPE_CAPP)) {
+ appInst.setApplicationType(ProtocolConstant40.APPTYPE_TIZEN);
+ appInst.setApplicationID(app.getAppID());
+ } else {
+ appInst.setApplicationType(ProtocolConstant40.APPTYPE_COMMON_EXEC);
+ appInst.setApplicationID(CommonConstants.EMPTY);
+ }
+ } else {
+ appInst.setApplicationType(ProtocolConstant40.APPTYPE_PROCESS);
+ appInst.setApplicationID(CommonConstants.EMPTY);
+ }
+
+ appInst.setExecutablePath(app.getExecPath());
+ appInst.setFunctionInstList(functionInstList);
+
+ appInstList.add(appInst);
+ }
+ }
+
+ // put application inst. count
+ ps.putInt(appInstList.size());
+
+ // serialize application inst. by ProtocolSerializer
+ for (ISerializable appInst : appInstList) {
+ appInst.serialize(ps);
+ }
+
+ if (appInstList.size() == 0) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+
+ @Override
+ protected List<ISerializable> getFunctionInstList(List<AddrSymbolPair> symbols) {
+ List<ISerializable> functionInstList = new ArrayList<ISerializable>();
+
+ int size = (symbols == null) ? 0 : symbols.size();
+ for (int i = 0; i < size; i++) {
+ AddrSymbolPair addrSymbol = symbols.get(i);
+ String symbol = addrSymbol.getSymbol();
+
+ if (ProtocolFilter30.isInBlacklistFunctionInst(symbol)) {
+ continue;
+ }
+
+ FunctionInst40 functionInst = new FunctionInst40();
+ functionInst.setAddr(addrSymbol.getAddr());
+ functionInst.setArgs(getFunctionArgs(symbol));
+ functionInst.setType(ProtocolConstant40.PROBE_COMMON);
+ functionInstList.add(functionInst);
+ }
+
+ return functionInstList;
+ }
+
+ // get function inst and find main function address
+ protected List<ISerializable> getFunctionInstList(List<AddrSymbolPair> symbols,
+ ApplicationInst40 appInst) {
+ boolean bFoundMain = false;
+ List<ISerializable> functionInstList = new ArrayList<ISerializable>();
+
+ int size = (symbols == null) ? 0 : symbols.size();
+ for (int i = 0; i < size; i++) {
+ AddrSymbolPair addrSymbol = symbols.get(i);
+ String symbol = addrSymbol.getSymbol();
+
+ // set application start-up information (main function address)
+ if (!bFoundMain && symbol.equals(ProtocolConstants.MAIN_FUNCTION_SYMBOL)) {
+ appInst.setMainAddress(addrSymbol.getAddr());
+ bFoundMain = true;
+ }
+
+ if (ProtocolFilter30.isInBlacklistFunctionInst(symbol)) {
+ continue;
+ }
+
+ FunctionInst40 functionInst = new FunctionInst40();
+ functionInst.setAddr(addrSymbol.getAddr());
+ functionInst.setArgs(getFunctionArgs(symbol));
+ functionInst.setType(ProtocolConstant40.PROBE_COMMON);
+ functionInstList.add(functionInst);
+ }
+
+ return functionInstList;
+ }
+
+ @Override
+ public DAResult sendBinaryInfoMessage(IProgress progress, List<String> binPaths) {
+ ProtocolSerializer ps = new ProtocolSerializer();
+
+ // make message
+ ps.setMessageID(ProtocolConstant40.MSG_BINARY_INFO);
+
+ int binCount = binPaths.size();
+ ps.putInt(binCount);
+
+ for (int i = 0; i < binCount; i++) {
+ String targetPath = binPaths.get(i);
+ ps.putString(targetPath);
+ }
+
+ byte[] msg = ps.toByteArray();
+
+ AckMessage result = parent.handleControlMessage(msg);
+ if (result != null && result.isCorrectID(ProtocolConstant40.MSG_BINARY_INFO_ACK)) {
+ if (result.isSuccess()
+ || (result.getReturnCode() == SwapErrorCode.ERR_WRONG_MESSAGE_DATA
+ .getErrorNumber() && result.getPayloadLength() > INT_SIZE)) {
+ // some binary information may not be available, but that of the others is obtained
+
+ // parse binary info
+ return parseBinaryInfo(result.getPayload());
+ }
+ }
+
+ return new DAResult(ErrorCode.ERR_BIN_INFO_GET_FAIL);
+ }
+
+ protected DAResult parseBinaryInfo(byte[] payload) {
+ DAResult ret = new DAResult(ErrorCode.SUCCESS);
+ StringBuffer detailErrorMsg = new StringBuffer();
+
+ ProtocolParser parser = new ProtocolParser(payload);
+ parser.getInt(); // for return code
+
+ DeviceInfo curDevice = parent.getDevice();
+
+ int count = parser.getInt();
+ for (int i = 0; i < count; i++) {
+ String targetPath = parser.getString();
+ BinaryInfo binInfo = curDevice.getDeviceStatusInfo().getBinaryInfo(targetPath);
+
+ int binaryType = parser.getInt();
+ String localBinaryPath = parser.getString().trim();
+ String md5sum = parser.getString();
+
+ binInfo.setType(binaryType);
+ binInfo.setMd5sumValue(md5sum);
+ binInfo.setTempBinaryPath(null);
+
+ if (binaryType < 0) {
+ // binary does not exist in target(-1) or is non-elf binary(-2)
+ // so do not try to download binary from target
+ if (detailErrorMsg.length() != 0) {
+ detailErrorMsg.append("\n");
+ }
+
+ if (binaryType == ProtocolConstant40.BINTYPE_NOT_EXIST) {
+ detailErrorMsg.append(UserErrorWarningLabels.ERROR_NONEXIST_BINARY + "("
+ + targetPath + ")");
+ } else if (binaryType == ProtocolConstant40.BINTYPE_NOT_ELF) {
+ detailErrorMsg.append(UserErrorWarningLabels.ERROR_NONELF_BINARY + "("
+ + targetPath + ")");
+ }
+
+ ret = new DAResult(ErrorCode.ERR_BIN_INFO_GET_FAIL);
+ continue;
+ }
+
+ DAResult result = checkDirtyOfBinary(binInfo, localBinaryPath);
+ if (!result.isSuccess()) {
+ if (detailErrorMsg.length() != 0) {
+ detailErrorMsg.append("\n");
+ }
+ detailErrorMsg.append(result.getMessage());
+
+ ret = new DAResult(ErrorCode.ERR_BIN_INFO_GET_FAIL);
+ }
+ }
+
+ if (!ret.isSuccess()) {
+ ret.setDetailMessage(detailErrorMsg.toString());
+ }
+
+ return ret;
+ }
+
+ }
--- /dev/null
- package org.tizen.dynamicanalyzer.swap.channel.control;
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
- public class FunctionBodyInstrument implements Streamable {
++package org.tizen.dynamicanalyzer.protocol.p40;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.tizen.dynamicanalyzer.model.Streamable;
+import org.tizen.dynamicanalyzer.util.ByteUtil;
+
- private List<FunctionBodyInstrumentVariable> variables = new ArrayList<FunctionBodyInstrumentVariable>();
++public class FunctionBodyInstrument40 implements Streamable {
+ public final static int MAX_VARIABLE_COUNT = 255; // TODO add checking routine in Ide-eplugin
+
+ private long address;
+ private byte[] variableCount = new byte[1]; // TODO use byte not byte[]
- public FunctionBodyInstrument(long address) {
++ // TODO: consider change to ISerializable
++ private List<FunctionBodyInstrumentVariable40> variables = new ArrayList<FunctionBodyInstrumentVariable40>();
+
- public void addVariable(FunctionBodyInstrumentVariable variable) {
++ public FunctionBodyInstrument40(long address) {
+ this.address = address;
+ }
+
+ public long getAddress() {
+ return address;
+ }
+
++ public void addVariable(FunctionBodyInstrumentVariable40 variable) {
+ if (variables.size() == MAX_VARIABLE_COUNT) {
+ return;
+ }
+ variables.add(variable);
+ }
+
+ @Override
+ public byte[] toByteStream() {
+ variableCount[0] = (byte)variables.size();
+ byte[] payLoad = ByteUtil.getByte(variableCount);
+ for (int i = 0; i < variables.size(); i++) {
+ payLoad = ByteUtil.getByte(payLoad, variables.get(i).toByteStream());
+ }
+ return payLoad;
+ }
+
+ @Override
+ public void fromByteStream(byte[] input) {
+ // TODO Auto-generated method stub
+ }
+}
--- /dev/null
- package org.tizen.dynamicanalyzer.swap.channel.control;
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
- public class FunctionBodyInstrumentStep implements Streamable {
++package org.tizen.dynamicanalyzer.protocol.p40;
+
+import org.tizen.dynamicanalyzer.model.Streamable;
+import org.tizen.dynamicanalyzer.util.ByteUtil;
+
- public FunctionBodyInstrumentStep(byte pointerOrder, long memoryOffset) {
++public class FunctionBodyInstrumentStep40 implements Streamable {
+ private byte[] pointerOrder = new byte[1];
+ private long memoryOffset = 0;
+
++ public FunctionBodyInstrumentStep40(byte pointerOrder, long memoryOffset) {
+ this.pointerOrder[0] = pointerOrder;
+ this.memoryOffset = memoryOffset;
+ }
+
+ public byte[] getPointerOrder() {
+ return pointerOrder;
+ }
+
+ public void setPointerOrder(byte[] pointerOrder) {
+ this.pointerOrder = pointerOrder;
+ }
+
+
+ public long getMemoryOffset() {
+ return memoryOffset;
+ }
+
+ public void setMemoryOffset(long memoryOffset) {
+ this.memoryOffset = memoryOffset;
+ }
+
+ @Override
+ public byte[] toByteStream() {
+ return ByteUtil.getByte(pointerOrder, memoryOffset);
+ }
+
+ @Override
+ public void fromByteStream(byte[] input) {
+ // TODO Auto-generated method stub
+ }
+}
--- /dev/null
- package org.tizen.dynamicanalyzer.swap.channel.control;
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
- public class FunctionBodyInstrumentVariable implements Streamable {
++package org.tizen.dynamicanalyzer.protocol.p40;
+
+import java.util.List;
+
+import org.tizen.dynamicanalyzer.model.Streamable;
+import org.tizen.dynamicanalyzer.util.ByteUtil;
+
- private List<FunctionBodyInstrumentStep> steps;
++public class FunctionBodyInstrumentVariable40 implements Streamable {
+ private long variableID;
+ private long registerOffset;
+ private byte[] registerNum = new byte[1];
+ private int dataSize;
+ private byte[] stepsCount = new byte[1];
- public FunctionBodyInstrumentVariable(long variableID, long registerOffset, byte registerNum, int dataSize,
- List<FunctionBodyInstrumentStep> steps) {
++ private List<FunctionBodyInstrumentStep40> steps;
+
- if (o instanceof FunctionBodyInstrumentVariable) {
- return (variableID == ((FunctionBodyInstrumentVariable) o).variableID);
++ public FunctionBodyInstrumentVariable40(long variableID, long registerOffset, byte registerNum, int dataSize,
++ List<FunctionBodyInstrumentStep40> steps) {
+ this.variableID = variableID;
+ this.registerOffset = registerOffset;
+ this.registerNum[0] = registerNum;
+ this.dataSize = dataSize;
+ this.steps = steps;
+ }
+
+ public long getRegisterOffset() {
+ return registerOffset;
+ }
+
+ public void setRegisterOffset(long registerOffset) {
+ this.registerOffset = registerOffset;
+ }
+
+ public byte[] getRegisterNum() {
+ return registerNum;
+ }
+
+ public void setRegisterNum(byte[] registerNum) {
+ this.registerNum = registerNum;
+ }
+
+ public int getDataSize() {
+ return dataSize;
+ }
+
+ public void setDataSize(int dataSize) {
+ this.dataSize = dataSize;
+ }
+
+ public void setVariableID(long variableID) {
+ this.variableID = variableID;
+ }
+
+ public long getVariableID() {
+ return variableID;
+ }
+
+ @Override
+ public byte[] toByteStream() {
+ stepsCount[0] = (byte)(steps.size());
+ byte[] payLoad = ByteUtil.getByte(variableID, registerOffset, registerNum, dataSize, stepsCount);
+ // Reverse sequence
+ for (int i = steps.size() - 1; i >= 0; i--) {
+ payLoad = ByteUtil.getByte(payLoad, steps.get(i).toByteStream());
+ }
+ return payLoad;
+ }
+
+ @Override
+ public void fromByteStream(byte[] input) {
+ // TODO Auto-generated method stub
+ }
+
+ @Override
+ public boolean equals(Object o) {
++ if (o instanceof FunctionBodyInstrumentVariable40) {
++ return (variableID == ((FunctionBodyInstrumentVariable40) o).variableID);
+ }
+ return false;
+ }
+}
--- /dev/null
-
+ /*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jaewon Lim <jaewon81.lim@samsung.com>
+ * Woojin Jung <woojin2.jung@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+ package org.tizen.dynamicanalyzer.protocol.p40;
+
+ import org.tizen.dynamicanalyzer.communicator.ProtocolSerializer;
+ import org.tizen.dynamicanalyzer.protocol.p30.FunctionInst30;
+
+ public class FunctionInst40 extends FunctionInst30 {
+ protected byte type = 0;
- // TODO : implementation for FBI
++ protected FunctionBodyInstrument40 fbi;
++
+ public void setType(byte type) {
+ this.type = type;
+ }
+
++ public void setFBI(FunctionBodyInstrument40 fbi) {
++ this.fbi = fbi;
++ }
++
+ @Override
+ public void serialize(ProtocolSerializer ps) {
+ ps.putLong(addr);
+ ps.putByte(type);
+
+ if (type == ProtocolConstant40.PROBE_COMMON) {
+ ps.putByteArray(args);
+ } else if (type == ProtocolConstant40.PROBE_FBI) {
++ ps.putByteArray(fbi.toByteStream());
+ } else if (type == ProtocolConstant40.PROBE_WEB) {
+ // do nothing
+ }
+ }
+ }
packLog(log, logPack);
}
break;
- case MSG_DATA_SYSTEM:
- case MSG_DATA_RECORD:
- case MSG_CONTEXT_SWITCH_ENTRY:
- case MSG_CONTEXT_SWITCH_EXIT:
- case MSG_FUNCTION_BODY:
+ case ProtocolConstants.MSG_DATA_SAMPLE:
+ case ProtocolConstants.MSG_DATA_SYSTEM:
+ case ProtocolConstants.MSG_DATA_RECORD:
+ case ProtocolConstants.MSG_CONTEXT_SWITCH_ENTRY:
+ case ProtocolConstants.MSG_CONTEXT_SWITCH_EXIT:
+ case ProtocolConstants.MSG_APP_STARTUP:
+ case ProtocolConstants.MSG_WEB_APP_STARTUP:
++ case ProtocolConstants.MSG_FUNCTION_BODY:
packLog(log, logPack);
break;
- case MSG_PROBE_SCREENSHOT:
+ case ProtocolConstants.MSG_PROBE_SCREENSHOT:
processScreenshotData((ScreenShotData) log);
packLog(log, logPack);
Global.getRuntimeCallstackManager().makeCallstackWithoutBacktrace(log);
// setting process info
processProcessInfo(log);
break;
- case DataChannelConstants.MSG_PROCESS_MAP:
- case DataChannelConstants.MSG_PROCESS_UNMAP:
+ case ProtocolConstants.MSG_PROCESS_MAP:
+ case ProtocolConstants.MSG_PROCESS_UNMAP:
memoryMapChanged(log);
break;
- case DataChannelConstants.MSG_DATA_TERMINATE:
+ case ProtocolConstants.MSG_DATA_TERMINATE:
processTerminate();
break;
- case DataChannelConstants.MSG_DATA_ERROR:
+ case ProtocolConstants.MSG_DATA_ERROR:
// process error message
break;
- case DataChannelConstants.MSG_DATA_SYSTEM:
- case DataChannelConstants.MSG_FUNCTION_ENTRY:
- case DataChannelConstants.MSG_FUNCTION_EXIT:
- case DataChannelConstants.MSG_DATA_SAMPLE:
- case DataChannelConstants.MSG_CONTEXT_SWITCH_ENTRY:
- case DataChannelConstants.MSG_CONTEXT_SWITCH_EXIT:
- case DataChannelConstants.MSG_DATA_RECORD:
- case DataChannelConstants.MSG_FUNCTION_BODY:
+ case ProtocolConstants.MSG_DATA_SYSTEM:
+ case ProtocolConstants.MSG_FUNCTION_ENTRY:
+ case ProtocolConstants.MSG_FUNCTION_EXIT:
+ case ProtocolConstants.MSG_DATA_SAMPLE:
+ case ProtocolConstants.MSG_CONTEXT_SWITCH_ENTRY:
+ case ProtocolConstants.MSG_CONTEXT_SWITCH_EXIT:
+ case ProtocolConstants.MSG_DATA_RECORD:
+ case ProtocolConstants.MSG_APP_STARTUP:
+ case ProtocolConstants.MSG_WEB_APP_STARTUP:
+ case ProtocolConstants.MSG_WEB_FUNCTION_ENTRY:
+ case ProtocolConstants.MSG_WEB_FUNCTION_EXIT:
++ case ProtocolConstants.MSG_FUNCTION_BODY:
if (AnalyzerManager.isProcessInfoArrived()) {
- if (log.makeDataPublic(Global.getProject().getProfilingStartTime())) {
- sendBuffer.add(log);
- }
+ sendBuffer.add(log);
}
break;
- case DataChannelConstants.MSG_PROCESS_COMM:
+ case ProtocolConstants.MSG_PROCESS_COMM:
processAddInfo(log);
break;
- case DataChannelConstants.MSG_DATA_IMAGE:
+ case ProtocolConstants.MSG_DATA_IMAGE:
// process image message
break;
default:
--- /dev/null
- import static org.tizen.dynamicanalyzer.constant.CommonConstants.INT_SIZE;
-
- import org.tizen.dynamicanalyzer.swap.model.DATime;
- import org.tizen.dynamicanalyzer.util.ByteUtil;
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+package org.tizen.dynamicanalyzer.swap.model.data;
+
- public class FunctionBodyInstrumentData extends LogData {
- UnsignedInt variableID;
- UnsignedInt size;
- byte[] data;
++import org.tizen.dynamicanalyzer.communicator.UnsupportedProtocolException;
++import org.tizen.dynamicanalyzer.model.DATime;
++import org.tizen.dynamicanalyzer.protocol.Protocol;
+import org.tizen.dynamicanalyzer.util.UnsignedInt;
+
- public boolean makeData(DATime startTime) {
- super.makeData(startTime);
++public class FunctionBodyInstrumentData extends ProbeCommonData {
++ protected UnsignedInt variableID; // protocol 4.0
++ protected UnsignedInt size; // protocol 4.0
++ protected byte[] data; // protocol 4.0
+
+ public FunctionBodyInstrumentData() {
+ }
+
+ @Override
- this.variableID = getUnsignedInt();
- this.size = getUnsignedInt();
- this.data = getBytesN((int) size.getValue());
-
++ public FunctionBodyInstrumentData clone() throws CloneNotSupportedException {
++ FunctionBodyInstrumentData log = (FunctionBodyInstrumentData) super.clone();
++ log.variableID = this.variableID;
++ log.size = this.size;
++ log.data = this.data;
++ return log;
++ }
++
++ @Override
++ protected boolean parse(DATime startTime) {
++ super.parse(startTime);
++
++ // start of protocol 4.0
++ variableID = getUnsignedInt();
++ size = getUnsignedInt();
++ data = getBytesN((int) size.getValue());
++ // end of protocol 4.0
+
- public UnsignedInt getVariableID() {
+ return true;
+ }
+
- public UnsignedInt getSize() {
++ public UnsignedInt getVariableID() throws UnsupportedProtocolException {
++ if (protocolVersion != Protocol.VERSION_40.getID()) {
++ throw new UnsupportedProtocolException();
++ }
+ return variableID;
+ }
+
+ public void setVariableID(UnsignedInt variableID) {
+ this.variableID = variableID;
+ }
+
- public byte[] getData() {
++ public UnsignedInt getSize() throws UnsupportedProtocolException {
++ if (protocolVersion != Protocol.VERSION_40.getID()) {
++ throw new UnsupportedProtocolException();
++ }
+ return size;
+ }
+
+ public void setSize(UnsignedInt size) {
+ this.size = size;
+ }
+
-
- @Override
- public int getPid() {
- return 0;
- }
++ public byte[] getData() throws UnsupportedProtocolException {
++ if (protocolVersion != Protocol.VERSION_40.getID()) {
++ throw new UnsupportedProtocolException();
++ }
+ return data;
+ }
+
+ public void setData(byte[] data) {
+ this.data = data;
+ }
+}
package org.tizen.dynamicanalyzer.swap.model.data;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_CONTEXT_SWITCH_ENTRY;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_CONTEXT_SWITCH_EXIT;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_DATA_RECORD;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_DATA_SAMPLE;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_DATA_SYSTEM;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_FUNCTION_ENTRY;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_FUNCTION_EXIT;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_FUNCTION_BODY;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_CUSTOM;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_FILE;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_GLES20;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_LIFECYCLE;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_MEMORY;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_NETWORK;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_SCENE;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_SCREENSHOT;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_SYNC;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_THREAD;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_UICONTROL;
- import static org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants.MSG_PROBE_UIEVENT;
-
- import java.util.ArrayList;
- import java.util.List;
-
- import org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants;
+ import org.tizen.dynamicanalyzer.protocol.ProtocolConstants;
import org.tizen.dynamicanalyzer.util.ByteUtil;
+ import org.tizen.dynamicanalyzer.util.Logger;
public class LogDataFactory {
- private static List<Integer> logIDList = new ArrayList<Integer>();
-
- public static List<Integer> getLogIDList() {
- if (logIDList.isEmpty()) {
- initLogIDList();
- }
- return logIDList;
- }
-
- private static void initLogIDList() {
- logIDList.clear();
- logIDList.add(MSG_PROBE_MEMORY);
- logIDList.add(MSG_PROBE_UICONTROL);
- logIDList.add(MSG_PROBE_UIEVENT);
- logIDList.add(MSG_PROBE_FILE);
- logIDList.add(MSG_PROBE_NETWORK);
- logIDList.add(MSG_PROBE_GLES20);
- logIDList.add(MSG_PROBE_LIFECYCLE);
- logIDList.add(MSG_PROBE_SCREENSHOT);
- logIDList.add(MSG_PROBE_SCENE);
- logIDList.add(MSG_PROBE_THREAD);
- logIDList.add(MSG_PROBE_CUSTOM);
- logIDList.add(MSG_PROBE_SYNC);
- logIDList.add(MSG_DATA_SYSTEM);
- logIDList.add(MSG_DATA_RECORD);
- logIDList.add(MSG_FUNCTION_ENTRY);
- logIDList.add(MSG_FUNCTION_EXIT);
- logIDList.add(MSG_DATA_SAMPLE);
- logIDList.add(MSG_CONTEXT_SWITCH_ENTRY);
- logIDList.add(MSG_CONTEXT_SWITCH_EXIT);
- logIDList.add(MSG_FUNCTION_BODY);
- }
-
public static LogData createInstance(byte[] header) {
- int id = ByteUtil.toInt(header, DataChannelConstants.MSGID_INDEX);
+ int msgID = ByteUtil.toInt(header, ProtocolConstants.DATAMSG_MSGID_INDEX);
LogData output = null;
- switch (id) {
- case MSG_PROBE_MEMORY:
- // memory
- output = new MemoryData();
- break;
- case MSG_PROBE_UICONTROL:
- // ui control
- output = new ControlData();
- break;
- case MSG_PROBE_UIEVENT:
- output = new UIEventData();
- break;
- case MSG_PROBE_FILE:
- // file
- output = new FileData();
- break;
- case MSG_PROBE_NETWORK:
- output = new NetworkData();
- break;
- case MSG_PROBE_GLES20:
- output = new GLES20LogData();
- break;
- case MSG_PROBE_LIFECYCLE:
- // life cycle
- output = new LifeCycleLogData();
- break;
- case MSG_PROBE_SCREENSHOT:
- // screenshot
- output = new ScreenShotData();
- break;
- case MSG_PROBE_SCENE:
- // scene
- output = new SceneData();
- break;
- case MSG_PROBE_THREAD:
- // thread
- output = new ThreadData();
- break;
- case MSG_PROBE_CUSTOM:
- // custom
- output = new CustomData();
- break;
- case MSG_PROBE_SYNC:
- // sync
- output = new SyncData();
- break;
- case MSG_DATA_SAMPLE:
- case MSG_FUNCTION_ENTRY:
- case MSG_FUNCTION_EXIT:
- // profiling sample log
- output = new ProfileData();
- break;
- case MSG_DATA_SYSTEM:
- // system log
- output = new SystemData();
- break;
- case MSG_DATA_RECORD:
- // replay log
- output = new ReplayData();
- break;
- case MSG_CONTEXT_SWITCH_ENTRY:
- case MSG_CONTEXT_SWITCH_EXIT:
- output = new ContextSwitchData();
- break;
- case MSG_FUNCTION_BODY:
- output = new FunctionBodyInstrumentData();
- break;
- default:
- output = new LogData();
- break;
+ if (msgID < ProtocolConstants.MSG_CONTEXT_SWITCH_ENTRY) {
+ switch (msgID) {
+ case ProtocolConstants.MSG_DATA_SAMPLE: // protocol 3.0
+ case ProtocolConstants.MSG_FUNCTION_ENTRY: // protocol 3.0
+ case ProtocolConstants.MSG_FUNCTION_EXIT: // protocol 3.0
+ // profiling sample log
+ output = new ProfileData();
+ break;
+ case ProtocolConstants.MSG_DATA_SYSTEM: // protocol 3.0
+ output = new SystemData();
+ break;
+ case ProtocolConstants.MSG_DATA_RECORD: // protocol 3.0
+ output = new ReplayData();
+ break;
+ case ProtocolConstants.MSG_DATA_PROCESS_INFO: // protocol 3.0
+ output = new ProcessInfoData();
+ break;
+ case ProtocolConstants.MSG_DATA_TERMINATE: // protocol 3.0
+ output = new LogData();
+ break;
+ case ProtocolConstants.MSG_DATA_IMAGE: // protocol 3.0
+ output = new LogData();
+ break;
+ case ProtocolConstants.MSG_DATA_ERROR: // protocol 3.0
+ output = new ErrorData();
+ break;
+ case ProtocolConstants.MSG_APP_STARTUP: // protocol 4.0
+ output = new AppStartupData();
+ break;
+ case ProtocolConstants.MSG_WEB_APP_STARTUP: // protocol 4.0
+ output = new WebAppStartupData();
+ break;
+ case ProtocolConstants.MSG_WEB_FUNCTION_ENTRY: // protocol 4.0
+ case ProtocolConstants.MSG_WEB_FUNCTION_EXIT: // protocol 4.0
+ output = new WebProfileData();
+ break;
++ case ProtocolConstants.MSG_FUNCTION_BODY:
++ output = new FunctionBodyInstrumentData();
++ break;
+ default: // unknown message
+ Logger.error("Unknown message ID(%d)", msgID);
+ break;
+ }
+ } else if (msgID < ProtocolConstants.MSG_PROBE_MIN) {
+ switch (msgID) {
+ case ProtocolConstants.MSG_PROCESS_MAP: // protocol 3.0
+ case ProtocolConstants.MSG_PROCESS_UNMAP: // protocol 3.0
+ output = new MemoryMapData();
+ break;
+ case ProtocolConstants.MSG_CONTEXT_SWITCH_ENTRY: // protocol 3.0
+ case ProtocolConstants.MSG_CONTEXT_SWITCH_EXIT: // protocol 3.0
+ output = new ContextSwitchData();
+ break;
+ case ProtocolConstants.MSG_PROCESS_COMM: // protocol 3.0
+ output = new ProcessAddInfoData();
+ break;
+ default: // unknown message
+ Logger.error("Unknown message ID(%d)", msgID);
+ break;
+ }
+ } else { // probe log
+ switch (msgID) {
+ case ProtocolConstants.MSG_PROBE_MEMORY: // protocol 3.0
+ output = new MemoryData();
+ break;
+ case ProtocolConstants.MSG_PROBE_GLES20: // protocol 3.0
+ output = new GLES20LogData();
+ break;
+ case ProtocolConstants.MSG_PROBE_FILE: // protocol 3.0
+ output = new FileData();
+ break;
+ case ProtocolConstants.MSG_PROBE_NETWORK: // protocol 3.0
+ output = new NetworkData();
+ break;
+ case ProtocolConstants.MSG_PROBE_THREAD: // protocol 3.0
+ output = new ThreadData();
+ break;
+ case ProtocolConstants.MSG_PROBE_SYNC: // protocol 3.0
+ output = new SyncData();
+ break;
+ case ProtocolConstants.MSG_PROBE_SCREENSHOT: // protocol 3.0
+ output = new ScreenShotData();
+ break;
+ case ProtocolConstants.MSG_PROBE_UICONTROL: // protocol 3.0
+ output = new ControlData();
+ break;
+ case ProtocolConstants.MSG_PROBE_UIEVENT: // protocol 3.0
+ output = new UIEventData();
+ break;
+ case ProtocolConstants.MSG_PROBE_LIFECYCLE: // protocol 3.0
+ output = new LifeCycleLogData();
+ break;
+ case ProtocolConstants.MSG_PROBE_SCENE: // protocol 3.0
+ output = new SceneData();
+ break;
+ case ProtocolConstants.MSG_PROBE_CUSTOM: // protocol 3.0
+ output = new CustomData();
+ break;
+ default: // unknown message
+ Logger.error("Unknown message ID(%d)", msgID);
+ break;
+ }
}
- output.init(header);
+ if (output != null) {
+ output.init(header);
+ } else {
+ output = new LogData();
+ output.init(header);
+ output.setMsgID(ProtocolConstants.MSG_UNKNOWN);
+ }
return output;
}
--- /dev/null
- double eventTime = plot.getXFromXPixcel(e.x);
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+package org.tizen.dynamicanalyzer.ui.interactive.chart;
+
+import java.util.List;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.MouseAdapter;
+import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.MouseMoveListener;
+import org.eclipse.swt.widgets.Canvas;
+import org.tizen.dynamicanalyzer.common.AnalyzerManager;
+import org.tizen.dynamicanalyzer.common.DASelectionData;
+import org.tizen.dynamicanalyzer.ui.info.screenshot.ScreenshotView;
+import org.tizen.dynamicanalyzer.ui.interactive.InteractivePage;
+import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.range.RangeDataManager;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineConstants;
+import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar;
+import org.tizen.dynamicanalyzer.util.Logger;
+import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChart;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartPlot;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartPlotIntervalMarker;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartPlotMarker;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartPlotTooltip;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartSeries;
+import org.tizen.dynamicanalyzer.widgets.chartBoard.DAChartBoard;
+import org.tizen.dynamicanalyzer.widgets.chartBoard.DAChartBoardItem;
+import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.widgets.popupMenu.DAPopupMenu;
+import org.tizen.dynamicanalyzer.widgets.popupMenu.DAPopupMenuItem;
+import org.tizen.dynamicanalyzer.widgets.timeline.DATimeline;
+
+public class InteractiveChartMouseEventListener extends MouseAdapter implements MouseMoveListener {
+ private RangeDataManager rangeDataManager = RangeDataManager.getInstance();
+ private DAPopupMenu menu;
+ private DATimeline timeline;
+ private DAChartBoard chartBoard;
+ private double baseTime = TimelineConstants.NOT_INITED;
+
+ private static final int SELECTION_MARKER_INDEX = 0;
+
+ public InteractiveChartMouseEventListener(DAPopupMenu menu, DATimeline timeline, DAChartBoard chartBoard) {
+ this.menu = menu;
+ this.timeline = timeline;
+ this.chartBoard = chartBoard;
+ }
+
+ @Override
+ public void mouseDown(MouseEvent e) {
+ DAChart chart = (DAChart) e.widget;
+ DAChartPlot plot = chart.getPlot();
+ DAChartPlotMarker marker = plot.getMarkers().get(SELECTION_MARKER_INDEX);
+ if (!(marker instanceof DAChartPlotIntervalMarker)) {
+ return;
+ }
+ DAChartPlotIntervalMarker intervalMarker = (DAChartPlotIntervalMarker) marker;
+
- double eventTime = plot.getXFromXPixcel(e.x);
++ double eventTime = plot.getXFromXPixel(e.x);
+
+ if (e.button == 3) { // mouse right click
+ List<DAPopupMenuItem> itemList = menu.getItems();
+ DAPopupMenuItem startItem = itemList.get(0);
+ DAPopupMenuItem endItem = itemList.get(1);
+ DAPopupMenuItem fromSelectionItem = itemList.get(2);
+ DAPopupMenuItem analysisItem = itemList.get(3);
+ DAPopupMenuItem clearItem = itemList.get(4);
+
+ if (Toolbar.INSTANCE == null) {
+ Logger.debug("toolbar area is null");//$NON-NLS-1$
+ return;
+ }
+
+ if (eventTime * TimelineConstants.MEGA_DOUBLE <= Toolbar.INSTANCE.getTime()) {
+ startItem.setEnabled(true);
+ endItem.setEnabled(true);
+ analysisItem.setEnabled(rangeDataManager.isAnalyzable());
+ clearItem.setEnabled(rangeDataManager.isBeingAnalyzed());
+
+ startItem.setDoubleData(eventTime);
+ endItem.setDoubleData(eventTime);
+ } else {
+ startItem.setEnabled(false);
+ endItem.setEnabled(false);
+ analysisItem.setEnabled(rangeDataManager.isAnalyzable());
+ clearItem.setEnabled(rangeDataManager.isBeingAnalyzed());
+ }
+
+ if (intervalMarker.getStartVal() != intervalMarker.getEndVal()) {
+ fromSelectionItem.setEnabled(true);
+ } else {
+ fromSelectionItem.setEnabled(false);
+ }
+ return;
+ }
+
+ DATabComposite interactiveTabComp = (DATabComposite) AnalyzerUtil.getView(InteractivePage.pageID,
+ ScreenshotTabComposite.tabID);
+ ScreenshotView screenshotView = (ScreenshotView) interactiveTabComp
+ .getView(ScreenshotTabComposite.screenshotViewID);
+ screenshotView.setLatestButtonEnable(true);
+
+ boolean bShift = false;
+ if ((e.stateMask & SWT.SHIFT) != 0) {
+ bShift = true;
+ }
+
+ if (bShift == true && intervalMarker.getStartVal() != -1) {
+ if (baseTime > eventTime) {
+ intervalMarker.setInterval(eventTime, baseTime);
+ } else {
+ intervalMarker.setInterval(baseTime, eventTime);
+ }
+ } else {
+ intervalMarker.setInterval(eventTime, eventTime);
+ baseTime = eventTime;
+ }
+
+ chart.redraw();
+ }
+
+ @Override
+ public void mouseUp(MouseEvent e) {
+ if (e.button == 3) { // mouse right click
+ return;
+ }
+
+ DAChart chart = (DAChart) e.widget;
+ DAChartPlot plot = chart.getPlot();
+ DAChartPlotMarker marker = plot.getMarkers().get(SELECTION_MARKER_INDEX);
+ if (!(marker instanceof DAChartPlotIntervalMarker)) {
+ return;
+ }
+ DAChartPlotIntervalMarker intervalMarker = (DAChartPlotIntervalMarker) marker;
+
- double eventTime = plot.getXFromXPixcel(e.x);
++ double eventTime = plot.getXFromXPixel(e.x);
+ double markerStartTime;
+ double markerEndTime;
+
+ if (intervalMarker.getStartVal() >= eventTime) {
+ markerStartTime = eventTime;
+ markerEndTime = intervalMarker.getEndVal();
+ } else {
+ markerStartTime = intervalMarker.getStartVal();
+ markerEndTime = eventTime;
+ }
+
+ double toolbarTime = Toolbar.INSTANCE.getTime() / TimelineConstants.MEGA_DOUBLE;
+
+ if (markerStartTime < 0) {
+ markerStartTime = 0;
+ } else if (markerStartTime > toolbarTime) {
+ markerStartTime = toolbarTime;
+ }
+
+ if (markerEndTime > toolbarTime) {
+ markerEndTime = toolbarTime;
+ } else if (markerEndTime < 0) {
+ markerEndTime = 0;
+ }
+
+ if (markerEndTime <= plot.getVisibleEndX()) {
+ intervalMarker.setInterval(markerStartTime, markerEndTime);
+ } else {
+ intervalMarker.setInterval(markerStartTime, plot.getVisibleEndX());
+ }
+
+ sendSelectionTimes(intervalMarker.getStartVal(), intervalMarker.getEndVal());
+ }
+
+ @Override
+ public void mouseMove(MouseEvent e) {
+ DAChart chart = (DAChart) e.widget;
+ DAChartPlot plot = chart.getPlot();
+ DAChartPlotMarker marker = plot.getMarkers().get(SELECTION_MARKER_INDEX);
+ if (!(marker instanceof DAChartPlotIntervalMarker)) {
+ Logger.debug("mouseMove !IntervalMarker");
+ return;
+ }
+ DAChartPlotIntervalMarker intervalMarker = (DAChartPlotIntervalMarker) marker;
+ DAChartPlotTooltip tooltip;
+
+ if ((e.stateMask & SWT.BUTTON1) != 0) {
- timeline.setDetailTime(plot.getXFromXPixcel(e.x));
++ double eventTime = plot.getXFromXPixel(e.x);
+
+ if (baseTime > eventTime) {
+ intervalMarker.setInterval(eventTime, baseTime);
+ } else {
+ intervalMarker.setInterval(baseTime, eventTime);
+ }
+ }
+ tooltip = plot.getTooltip();
+ if (null == tooltip) {
+ return;
+ }
+
+ double oldYPosRatio = tooltip.getYPosRatio();
+ double newYPosRatio = (double) e.y / ((Canvas) e.widget).getSize().y;
+
+ if (Double.compare(oldYPosRatio, newYPosRatio) != 0) {
+ if (newYPosRatio < 0) {
+ newYPosRatio = 0.01;
+ } else if (newYPosRatio >= 1) {
+ newYPosRatio = 0.99;
+ }
+
+ tooltip.setYPosRatio(newYPosRatio);
+ }
+
+ double oldStartVal = tooltip.getStartVal();
+ double newStartVal = getTooltipStartX(plot, chart.getSeriesList(), e.x, newYPosRatio);
+
+ if (oldStartVal != newStartVal) {
+ tooltip.setStartVal(newStartVal);
+ }
+
- int index = series.getPrevIndexByXvalue(plot.getXFromXPixcel(x));
++ timeline.setDetailTime(plot.getXFromXPixel(e.x));
+ timeline.setDetailTimePosition(e.x);
+ timeline.setDrawDetailTime(true);
+ timeline.redraw();
+ }
+
+ private void sendSelectionTimes(double start, double end) {
+ long startTime = (long) (start * TimelineConstants.MEGA_DOUBLE);
+ long endTime = (long) (end * TimelineConstants.MEGA_DOUBLE);
+ if (endTime < startTime) { // user mouse drag right->left on chart
+ long temp = startTime;
+ startTime = endTime;
+ endTime = temp;
+ }
+ if (startTime < 0) {
+ startTime = 0;
+ }
+ DAChartBoardItem selectedItem = chartBoard.getSelectItem();
+ Object data = selectedItem.getData();
+ AnalyzerManager.getCurrentPage().updateView(
+ new DASelectionData(InteractivePage.chartViewID, startTime, endTime, data, null));
+ }
+
+ private double getTooltipStartX(DAChartPlot plot, List<DAChartSeries> seriesList, int x, double yPosRatio) {
+ double ret = -1;
+ for (int i = 0; i < seriesList.size(); i++) {
+ DAChartSeries series = seriesList.get(i);
++ int index = series.getPrevIndexByXvalue(plot.getXFromXPixel(x));
+ if (-1 == index) {
+ continue;
+ }
+ double startVal = series.getSeriesItemList().get(index).getX();
+ if (ret < startVal) {
+ ret = startVal;
+ }
+ }
+ return ret;
+ }
+}
--- /dev/null
- int pixcelStartX = plot.getXPixcelFromX(currentX, r);
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+package org.tizen.dynamicanalyzer.ui.interactive.chart;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.graphics.GC;
+import org.eclipse.swt.graphics.Rectangle;
+import org.tizen.dynamicanalyzer.nl.InteractivePageLabels;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChart;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartPlotTooltip;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartRenderer;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartSeries;
+import org.tizen.dynamicanalyzer.widgets.chart.DAChartSeriesItem;
+import org.tizen.dynamicanalyzer.widgets.helper.ColorResources;
+import org.tizen.dynamicanalyzer.widgets.helper.FontResources;
+import org.tizen.dynamicanalyzer.widgets.helper.ImageResources;
+
+public class InteractiveChartRenderer extends DAChartRenderer {
+ private final int SERIES_DISTANCE_MARGIN = 20;
+
+ @Override
+ protected void drawToGc(GC gc, DAChart chart) {
+ if (!preDraw(gc, chart)) {
+ return;
+ }
+ for (int i = 0; i < seriesList.size(); i++) {
+ drawSeries(gc, seriesList.get(i), i);
+ }
+ }
+
+ private void drawSeries(GC gc, DAChartSeries series, int seriesIndex) {
+ int seriesSize = seriesList.size();
+ Rectangle rect = new Rectangle(r.x, r.y + r.height * seriesIndex / seriesSize, r.width, r.height / seriesSize);
+
+ if (seriesIndex != 0) {
+ gc.setForeground(ColorResources.CHART_SEPERATE_LINE);
+ gc.drawLine(rect.x, r.height * seriesIndex / seriesSize, rect.width, r.height * seriesIndex / seriesSize);
+ }
+
+ Font oriFont = gc.getFont();
+ gc.setForeground(ColorResources.CHART_INFO);
+ gc.setFont(FontResources.CHART_INFO_FONT);
+ gc.drawImage(ImageResources.CHART_INFO, rect.x + 3, rect.y + rect.height / 2 - gc.stringExtent(series.getName()).y / 2);
+ gc.drawText(series.getName(), rect.x + 18,
+ rect.y + rect.height / 2 - gc.stringExtent(series.getName()).y / 2, true);
+
+ gc.setFont(oriFont);
+
+ List<DAChartSeriesItem> seriesItems = series.getSeriesItemList();
+ if (seriesItems == null) {
+ return;
+ }
+ int seriesItemSize = seriesItems.size();
+ if (seriesItemSize < 1) {
+ return;
+ }
+
+ int index = series.getPrevIndexByXvalue(plot.getVisibleStartX());
+ if (index < 0) {
+ index = 0;
+ }
+
+ gc.setLineStyle(SWT.LINE_SOLID);
+ gc.setAntialias(SWT.ON);
+ for (int i = index; i < seriesItemSize; i++) {
+ double currentX = seriesItems.get(i).getX();
- gc.drawLine(plot.getXPixcelFromX(xVal), 0, plot.getXPixcelFromX(xVal), r.height);
++ int pixcelStartX = plot.getXPixelFromX(currentX, r);
+ int pixcelStartY = rect.y + 4;
+
+ gc.setBackground(series.getColor());
+ gc.fillRectangle(pixcelStartX, pixcelStartY, 2, rect.height - 4);
+ if (currentX > plot.getVisibleEndX()) {
+ return;
+ }
+ }
+ }
+
+ @Override
+ protected void drawTooltip(GC gc) {
+ DAChartPlotTooltip tooltip = plot.getTooltip();
+ if (tooltip == null || tooltip.shouldBeDrawn() == false || tooltip.getStartVal() == -1) {
+ return;
+ }
+
+ gc.setFont(tooltip.getFont());
+
+ List<String> tooltipTexts = new ArrayList<String>();
+ List<String> tooltipTimes = new ArrayList<String>();
+ List<Color> tooltipColor = new ArrayList<Color>();
+
+ // make text,time & draw auxiliary line
+ int textWidthMax = 0;
+ int textHeightMax = 0;
+ double realXVal = tooltip.getStartVal();
+ int tooltipSize = 0;
+ for (int i = 0; i < seriesList.size(); i++) {
+ DAChartSeries series = seriesList.get(i);
+ tooltipSize++;
+
+ int index = series.getPrevIndexByXvalue(realXVal);
+ String text = "";
+ String time = "";
+ Color color;
+ if (index >= 0) {
+ double xVal = series.getSeriesItemList().get(index).getX();
+
+ time += toTimeFormat(xVal);
+
+ if (series.isSummarizeTooltip() && checkOverlapFromPrevItem(series, index)) {
+ text += series.getSummarizeString();
+ } else {
+ text += series.getSeriesItemList().get(index).getTooltipText();
+ }
+
+ gc.setForeground(tooltip.getLineColor());
+ gc.setLineStyle(SWT.LINE_DOT);
+ gc.setLineWidth(1);
+
- int ret = plot.getXPixcelFromX(startVal);
++ gc.drawLine(plot.getXPixelFromX(xVal), 0, plot.getXPixelFromX(xVal), r.height);
+ gc.setLineStyle(SWT.LINE_CUSTOM);
+
+ // event color
+ color = series.getSeriesItemList().get(index).getColor();
+ } else { // Case : There is no series item to draw.
+ text = InteractivePageLabels.INTERACTIVE_CHART_INVALID_CHECK_LOCATION;
+ color = null;
+ }
+
+ tooltipTexts.add(text);
+ tooltipTimes.add(time);
+ tooltipColor.add(color);
+
+ int textWidth = gc.textExtent(text).x + DAChartPlotTooltip.TOOLTIP_TIME_MARGIN + gc.textExtent(time).x;
+ int textHeight = gc.textExtent(text).y;
+ if (textWidthMax < textWidth) {
+ textWidthMax = textWidth;
+ }
+ if (textHeightMax < textHeight) {
+ textHeightMax = textHeight;
+ }
+ }
+
+ int preTextWidthMargin = DAChartPlotTooltip.TOOLTIP_MARGIN + DAChartPlotTooltip.TOOLTIP_SERIES_RECT_LENGTH
+ + DAChartPlotTooltip.TOOLTIP_MARGIN;
+ int startX = getTooltipStartX(realXVal, textWidthMax + preTextWidthMargin, DAChartPlotTooltip.TOOLTIP_MARGIN);
+
+ int totalHeight = tooltipSize * textHeightMax + DAChartPlotTooltip.TOOLTIP_MARGIN
+ + DAChartPlotTooltip.TOOLTIP_MARGIN + (tooltipSize - 1) * SERIES_DISTANCE_MARGIN;
+
+ int startY = (r.y + r.height / 2) - (totalHeight / 2);
+
+ gc.setAlpha(180);
+ gc.setBackground(tooltip.getBackgroundColor());
+ gc.setForeground(tooltip.getForegroundColor());
+ gc.fillGradientRectangle(startX, startY, preTextWidthMargin + textWidthMax + DAChartPlotTooltip.TOOLTIP_MARGIN,
+ totalHeight, true);
+ gc.setAlpha(255);
+ gc.setForeground(tooltip.getLineColor());
+ gc.drawRoundRectangle(startX, startY, preTextWidthMargin + textWidthMax + DAChartPlotTooltip.TOOLTIP_MARGIN,
+ totalHeight, 5, 5);
+ gc.setFont(tooltip.getFont());
+
+ String timeStr;
+ tooltipSize = -1;
+ for (int i = 0; i < seriesList.size(); i++) {
+ DAChartSeries series = seriesList.get(i);
+ if (series.isDisableTooltip()) {
+ continue;
+ } else {
+ tooltipSize++;
+ }
+
+ int yPosition = r.y + r.height * i / seriesList.size() + r.height / seriesList.size() / 2 - textHeightMax
+ / 2;
+
+ Color col = tooltipColor.get(i);
+ if (col == null) {
+ gc.setBackground(series.getColor());
+ } else {
+ gc.setBackground(col);
+ }
+ gc.fillRectangle(startX + DAChartPlotTooltip.TOOLTIP_MARGIN, yPosition + textHeightMax / 2
+ - DAChartPlotTooltip.TOOLTIP_SERIES_RECT_LENGTH / 2, DAChartPlotTooltip.TOOLTIP_SERIES_RECT_LENGTH,
+ DAChartPlotTooltip.TOOLTIP_SERIES_RECT_LENGTH);
+ gc.setBackground(tooltip.getBackgroundColor());
+
+ gc.setForeground(tooltip.getTextColor());
+ gc.drawText(tooltipTexts.get(i), startX + DAChartPlotTooltip.TOOLTIP_MARGIN
+ + DAChartPlotTooltip.TOOLTIP_SERIES_RECT_LENGTH + DAChartPlotTooltip.TOOLTIP_MARGIN, yPosition,
+ SWT.DRAW_DELIMITER | SWT.DRAW_TRANSPARENT);
+
+ gc.setForeground(tooltip.getTimeColor());
+ timeStr = tooltipTimes.get(i);
+ gc.drawText(tooltipTimes.get(i), startX + DAChartPlotTooltip.TOOLTIP_MARGIN
+ + DAChartPlotTooltip.TOOLTIP_SERIES_RECT_LENGTH + DAChartPlotTooltip.TOOLTIP_MARGIN + textWidthMax
+ - DAChartPlotTooltip.TOOLTIP_MARGIN - gc.textExtent(timeStr).x, yPosition, SWT.DRAW_DELIMITER
+ | SWT.DRAW_TRANSPARENT);
+ }
+ }
+
+ @Override
+ protected int getTooltipStartX(double startVal, int width, int margin) {
++ int ret = plot.getXPixelFromX(startVal);
+ if (ret + width > r.x + r.width) {
+ ret = ret - width - margin;
+ if (ret < 0) {
+ ret = 50;
+ }
+ } else if (ret < r.x) {
+ ret = r.x + margin;
+ } else {
+ ret += margin;
+ }
+
+ return ret;
+ }
+}
--- /dev/null
- import org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants;
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+package org.tizen.dynamicanalyzer.ui.interactive.data;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
++import org.tizen.dynamicanalyzer.communicator.UnsupportedProtocolException;
+import org.tizen.dynamicanalyzer.database.DBInserter;
+import org.tizen.dynamicanalyzer.database.SqlConnectionManager;
- Logs fbiLogs = pack.getLogs(DataChannelConstants.MSG_FUNCTION_BODY);
++import org.tizen.dynamicanalyzer.protocol.ProtocolConstants;
+import org.tizen.dynamicanalyzer.swap.logparser.LogPackage;
+import org.tizen.dynamicanalyzer.swap.logparser.Logs;
+import org.tizen.dynamicanalyzer.swap.logparser.PageDataManager;
+import org.tizen.dynamicanalyzer.swap.model.data.FunctionBodyInstrumentData;
+import org.tizen.dynamicanalyzer.swap.model.data.LogData;
+import org.tizen.dynamicanalyzer.ui.interactive.chart.InteractiveChartView;
+import org.tizen.dynamicanalyzer.ui.interactive.model.InteractiveInfo;
+import org.tizen.dynamicanalyzer.ui.interactive.model.InteractiveParser;
+import org.tizen.dynamicanalyzer.ui.interactive.model.VAR_TYPE;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.CPUChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.CPUCoreChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.CPUFrequencyChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.DeviceChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.DiskIOChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.EnergyChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.HeapChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.NetworkIOChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.ProcessMemoryChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.ScreenshotChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.SystemMemoryChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.TimelineChart;
+import org.tizen.dynamicanalyzer.ui.timeline.chart.UIEventChart;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineChartManager;
++import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar;
+import org.tizen.dynamicanalyzer.util.Logger;
+import org.tizen.dynamicanalyzer.widgets.chartBoard.IDAChartSeriesMaker;
+
+public class InteractiveDataManager extends PageDataManager implements IDAChartSeriesMaker {
+ private static InteractiveDataManager instance = null;
+
+ private InteractiveVariableDBTable variableDBTable = null;
+ private InteractiveValueDBTable valueDBTable = null;
+ private DBInserter valueDBInserter = null;
+ // Only contain target variables
+ private List<InteractiveInfo> variableInfoList = new ArrayList<InteractiveInfo>();
+ private InteractiveChartView chartView;
+ private List<TimelineChart> timelineChartList = new ArrayList<TimelineChart>();
+ private List<TimelineChart> showTimelineChartList = new ArrayList<TimelineChart>();
+
+ private InteractiveDataManager() {
+ variableDBTable = new InteractiveVariableDBTable();
+ valueDBTable = new InteractiveValueDBTable();
+ valueDBInserter = makeInserter(valueDBTable);
+
+ timelineChartList.add(new CPUChart());
+ timelineChartList.add(new CPUCoreChart());
+ timelineChartList.add(new CPUFrequencyChart());
+ timelineChartList.add(new HeapChart());
+ timelineChartList.add(new ProcessMemoryChart());
+ timelineChartList.add(new SystemMemoryChart());
+ timelineChartList.add(new ScreenshotChart());
+ timelineChartList.add(new UIEventChart());
+ timelineChartList.add(new DiskIOChart());
+ timelineChartList.add(new NetworkIOChart());
+ timelineChartList.add(new DeviceChart());
+ timelineChartList.add(new EnergyChart());
+ }
+
+ public synchronized static InteractiveDataManager getInstance() {
+ if (null == instance) {
+ instance = new InteractiveDataManager();
+ }
+ return instance;
+ }
+
+ public List<InteractiveInfo> getVariableInfoList() {
+ return variableInfoList;
+ }
+
+ public void setChartView(InteractiveChartView chartView) {
+ this.chartView = chartView;
+ }
+
+ public List<TimelineChart> getTimelineChartList() {
+ return timelineChartList;
+ }
+
+ public List<TimelineChart> getShowTimelineChartList() {
+ return showTimelineChartList;
+ }
+
+ public void addVariableInfo(InteractiveInfo info) {
+ variableInfoList.add(info);
+ }
+
+ public static ResultSet getValueDataFromDB(long start, long end) {
+ String query = "SELECT SEQUENCE_NUMBER, SAMPLING_TIME, VARIABLE_ID, VALUE_SIZE, VALUE FROM INTERACTIVE_VALUE "
+ + "WHERE SAMPLING_TIME BETWEEN " + start + " AND " + end + " ORDER BY SAMPLING_TIME";
+ ResultSet rs = SqlConnectionManager.executeQueryRS(query);
+
+ return rs;
+ }
+
+ public ResultSet getValueDataFromDB(InteractiveInfo interactiveInfo) {
+ String query = "SELECT SEQUENCE_NUMBER, SAMPLING_TIME, VARIABLE_ID, VALUE_SIZE, VALUE FROM INTERACTIVE_VALUE "
+ + "WHERE VARIABLE_ID IN (";
+ List<Long> variableIDList = new ArrayList<Long>();
+ interactiveInfo.getAllRelatedVariableIDs(variableIDList, interactiveInfo.getCheckLocation());
+ for (int i = 0; i < variableIDList.size(); i++) {
+ query += variableIDList.get(i);
+ if (i + 1 < variableIDList.size()) {
+ query += ",";
+ }
+ }
+ query += ")";
+ ResultSet rs = SqlConnectionManager.executeQueryRS(query);
+ return rs;
+ }
+
+ @Override
+ public void saveData(Map<String, String> dataMap) {
+ List<List<Object>> list = new ArrayList<List<Object>>();
+ insertVariableInfo(variableInfoList, list);
+ variableDBTable.insertData(list);
+ }
+
+ private void insertVariableInfo(List<InteractiveInfo> infoList, List<List<Object>> list) {
+ for (int i = 0; i < infoList.size(); i++) {
+ ArrayList<Object> dbVariableData = new ArrayList<Object>();
+ InteractiveInfo info = infoList.get(i);
+ dbVariableData.add(info.getVariableID(InteractiveInfo.CHECK_BEFORE_LINE));
+ dbVariableData.add(info.getVariableID(InteractiveInfo.CHECK_AFTER_LINE));
+ dbVariableData.add(info.getCheckLocation());
+ dbVariableData.add(info.getType().ordinal());
+ dbVariableData.add(info.getTypeName());
+ dbVariableData.add(info.getVariableName());
+ dbVariableData.add(info.getFunctionID());
+ dbVariableData.add(info.getSourceLineNum());
+ dbVariableData.add(info.getSourceFileName());
+ dbVariableData.add(info.getPointerOrder());
+ dbVariableData.add(info.getPointerSize());
+ dbVariableData.add(info.getArrayCount());
+ dbVariableData.add(info.getByteSize());
+ dbVariableData.add(info.getOffset());
+ dbVariableData.add(info.isTarget());
+ dbVariableData.add(info.getChildrenIDs());
+ list.add(dbVariableData);
+ if (info.getChildren() != null) {
+ insertVariableInfo(info.getChildren(), list);
+ }
+ }
+ }
+
+ @Override
+ public void openData(Map<String, String> dataMap) {
+ variableInfoList.clear();
+ List<List<Object>> datas = variableDBTable.selectAllColumnData(null);
+ if (datas == null) {
+ return;
+ }
+
+ Map<InteractiveInfo, List<Long>> relationMap = new HashMap<InteractiveInfo, List<Long>>();
+ for (int i = 0; i < datas.size(); i++) {
+ List<Object> row = datas.get(i);
+ long beforeVariableID = ((Long) row.get(InteractiveVariableDBTable.COLUMN.BEFORE_VARIABLE_ID.ordinal()))
+ .longValue();
+ long afterVariableID = ((Long) row.get(InteractiveVariableDBTable.COLUMN.AFTER_VARIABLE_ID.ordinal()))
+ .longValue();
+ int checkLocation = ((Integer) row.get(InteractiveVariableDBTable.COLUMN.CHECK_LOCATION.ordinal()))
+ .intValue();
+ VAR_TYPE variableType = VAR_TYPE.values()[((Integer) row
+ .get(InteractiveVariableDBTable.COLUMN.VARIABLE_TYPE.ordinal())).intValue()];
+ String typeName = (String) row.get(InteractiveVariableDBTable.COLUMN.VARIABLE_TYPE_NAME.ordinal());
+ String variableName = (String) row.get(InteractiveVariableDBTable.COLUMN.VARIABLE_NAME.ordinal());
+ int functionID = ((Integer) row.get(InteractiveVariableDBTable.COLUMN.FUNCTION_ID.ordinal()))
+ .intValue();
+ int sourceLineNum = ((Integer) row.get(InteractiveVariableDBTable.COLUMN.SOURCE_LINE_NUM.ordinal()))
+ .intValue();
+ String sourceFileName = (String) row.get(InteractiveVariableDBTable.COLUMN.SOURCE_FILE_NAME.ordinal());
+ int pointerOrder = ((Integer) row.get(InteractiveVariableDBTable.COLUMN.POINTER_ORDER.ordinal()))
+ .intValue();
+ int pointerSize = ((Integer) row.get(InteractiveVariableDBTable.COLUMN.POINTER_SIZE.ordinal())).intValue();
+ int arrayCount = ((Integer) row.get(InteractiveVariableDBTable.COLUMN.ARRAY_COUNT.ordinal())).intValue();
+ int byteSize = ((Integer) row.get(InteractiveVariableDBTable.COLUMN.BYTE_SIZE.ordinal())).intValue();
+ boolean isTarget = ((Boolean) row.get(InteractiveVariableDBTable.COLUMN.IS_TARGET.ordinal()))
+ .booleanValue();
+ int offset = ((Integer) row.get(InteractiveVariableDBTable.COLUMN.OFFSET.ordinal())).intValue();
+ @SuppressWarnings("unchecked")
+ List<Long> childrenID = (List<Long>) row.get(InteractiveVariableDBTable.COLUMN.CHILDREN_VARIABLE_ID
+ .ordinal());
+
+ InteractiveInfo valueInfo = new InteractiveInfo();
+ valueInfo.setVariableID(InteractiveInfo.CHECK_BEFORE_LINE, beforeVariableID);
+ valueInfo.setVariableID(InteractiveInfo.CHECK_AFTER_LINE, afterVariableID);
+ valueInfo.setCheckLocation(checkLocation);
+ valueInfo.setType(variableType);
+ valueInfo.setTypeName(typeName);
+ valueInfo.setVariableName(variableName);
+ valueInfo.setFunctionID(functionID);
+ valueInfo.setSourceLineNum(sourceLineNum);
+ valueInfo.setSourceFileName(sourceFileName);
+ valueInfo.setPointerOrder(pointerOrder);
+ valueInfo.setPointerSize(pointerSize);
+ valueInfo.setArrayCount(arrayCount);
+ valueInfo.setByteSize(byteSize);
+ valueInfo.setOffset(offset);
+ valueInfo.setTarget(isTarget);
+ if (isTarget) { // target variable, only this info show in chart.
+ variableInfoList.add(valueInfo);
+ }
+ relationMap.put(valueInfo, childrenID);
+ }
+ makeRelation(relationMap);
+ }
+
+ private void makeRelation(Map<InteractiveInfo, List<Long>> relationMap) {
+ Iterator<InteractiveInfo> iter = relationMap.keySet().iterator();
+ while (iter.hasNext()) {
+ InteractiveInfo parent = iter.next();
+ List<Long> childrenIDs = relationMap.get(parent);
+ if (childrenIDs != null) {
+ List<InteractiveInfo> children = new ArrayList<InteractiveInfo>();
+ for (int i = 0; i < childrenIDs.size(); i++) {
+ InteractiveInfo child = findInfo(relationMap.keySet(), childrenIDs.get(i));
+ if (children.contains(child) == false) {
+ child.setParent(parent);
+ children.add(child);
+ }
+ parent.setChildren(children);
+ }
+ }
+ }
+ }
+
+ private InteractiveInfo findInfo(Set<InteractiveInfo> infoSet, long variableID) {
+ Iterator<InteractiveInfo> iter = infoSet.iterator();
+ while (iter.hasNext()) {
+ InteractiveInfo target = iter.next();
+ if (target.hasVariableID(variableID)) {
+ return target;
+ }
+ }
+ return null;
+ }
+
+ @Override
+ protected void makeData(LogPackage pack) {
- long variableID = log.getVariableID().getValue();
- long size = log.getSize().getValue();
- byte[] data = log.getData();
++ Logs fbiLogs = pack.getLogs(ProtocolConstants.MSG_FUNCTION_BODY);
+ List<LogData> fbiLogList = fbiLogs == null ? null : fbiLogs.getRawLogs();
+
+ if (fbiLogList != null) {
+ List<List<Object>> valueDataList = new ArrayList<List<Object>>();
+ for (int i = 0; i < fbiLogList.size(); i++) {
+ FunctionBodyInstrumentData log = (FunctionBodyInstrumentData) fbiLogList.get(i);
- ArrayList<Object> dbValueData = new ArrayList<Object>();
- dbValueData.add(new Long(log.getSeq()));
- dbValueData.add(new Long(log.getTime()));
- dbValueData.add(new Long(variableID));
- dbValueData.add(new Long(size));
- dbValueData.add(data);
++ try {
++ long variableID = log.getVariableID().getValue();
++ long size = log.getSize().getValue();
++ byte[] data = log.getData();
+
- valueDataList.add(dbValueData);
++ ArrayList<Object> dbValueData = new ArrayList<Object>();
++ dbValueData.add(new Long(log.getSeq()));
++ dbValueData.add(new Long(log.getTime()));
++ dbValueData.add(new Long(variableID));
++ dbValueData.add(new Long(size));
++ dbValueData.add(data);
+
- .getTargetProcessDataFromDB(startTime, endTime);
++ valueDataList.add(dbValueData);
++ } catch (UnsupportedProtocolException ex) {
++ // TODO need to policy of exception handling
++ Logger.exception(ex);
++ }
+ }
+ valueDBInserter.pushData(valueDataList);
+ }
+ }
+
+ @Override
+ public void makeChartSeries(long startTime, long endTime) {
+ chartView.inputChartSeries(getValueDataFromDB(startTime, endTime));
+
+ List<List<Object>> systemDBData = TimelineChartManager.getInstance().getSystemDataFromDB(startTime, endTime);
+ List<List<Object>> uiEventDBData = TimelineChartManager.getInstance().getUIEventDataFromDB(startTime, endTime);
+ List<List<Object>> screenShotDBData = TimelineChartManager.getInstance().getScreenShotDataFromDB(startTime,
+ endTime);
++
++ int selectedPID = 0;
++ if (Toolbar.INSTANCE != null) {
++ selectedPID = Toolbar.INSTANCE.getSelectedPid();
++ }
+ Map<Integer, List<List<Object>>> targetProcessDBData = TimelineChartManager.getInstance()
- if (chart.getProbeType() == DataChannelConstants.MSG_DATA_SYSTEM) {
++ .getTargetProcessDataFromDB(startTime, endTime, selectedPID);
+
+ /*
+ * 2. Make series of chart
+ */
+ for (TimelineChart chart : timelineChartList) {
- } else if (chart.getProbeType() == DataChannelConstants.MSG_PROBE_UIEVENT) {
++ if (chart.getProbeType() == ProtocolConstants.MSG_DATA_SYSTEM) {
+ List<Object> dataList = new ArrayList<Object>();
+ dataList.add(systemDBData);
+ dataList.add(targetProcessDBData);
+ chart.inputChartSeries(dataList);
- } else if (chart.getProbeType() == DataChannelConstants.MSG_PROBE_SCREENSHOT) {
++ } else if (chart.getProbeType() == ProtocolConstants.MSG_PROBE_UIEVENT) {
+ List<Object> dataList = new ArrayList<Object>();
+ dataList.add(uiEventDBData);
+ chart.inputChartSeries(dataList);
++ } else if (chart.getProbeType() == ProtocolConstants.MSG_PROBE_SCREENSHOT) {
+ List<Object> dataList = new ArrayList<Object>();
+ dataList.add(screenShotDBData);
+ chart.inputChartSeries(dataList);
+ }
+ }
+ }
+
+ public Map<Long, List<InteractiveValue>> makeInteractiveValueMap(ResultSet rs) {
+ if (rs == null) {
+ return null;
+ }
+ // Key : variableID
+ Map<Long, List<InteractiveValue>> valueInfoMap = new HashMap<Long, List<InteractiveValue>>();
+ try {
+ while (rs.next()) {
+ long seq = rs.getLong(1);
+ long time = rs.getLong(2);
+ long id = rs.getLong(3);
+ byte[] value = rs.getBytes(5);
+ List<InteractiveValue> valueInfoList = valueInfoMap.get(id);
+ if (valueInfoList == null) {
+ valueInfoList = new ArrayList<InteractiveValue>();
+ valueInfoMap.put(id, valueInfoList);
+ }
+ valueInfoList.add(new InteractiveValue(seq, time, id, value));
+ }
+ } catch (SQLException e) {
+ Logger.error(e);
+ return null;
+ } finally {
+ SqlConnectionManager.releaseResultSet(rs);
+ }
+ if (valueInfoMap.isEmpty()) {
+ return null;
+ }
+ return valueInfoMap;
+ }
+
+ /*
+ * Object of this method is to make data for UI (chart, table)
+ * If you want to understand this logic, refer to the document (Interactive profiling_Analysis_Design.pptx)
+ */
+ public boolean makeInteractiveUIData(InteractiveInfo interactiveInfo, Map<Long, List<InteractiveValue>> valueInfoMap,
+ List<InteractiveUIData> beforeUIDataList, List<InteractiveUIData> afterUIDataList) {
+ List<InteractiveValue> rootBeforeValueInfoList = valueInfoMap.get(interactiveInfo
+ .getVariableID(InteractiveInfo.CHECK_BEFORE_LINE));
+ List<InteractiveValue> rootAfterValueInfoList = valueInfoMap.get(interactiveInfo
+ .getVariableID(InteractiveInfo.CHECK_AFTER_LINE));
+ if (rootBeforeValueInfoList == null && rootAfterValueInfoList == null) {
+ return false;
+ }
+
+ List<List<InteractiveValue>> childrenBeforeValueInfoList = new ArrayList<List<InteractiveValue>>();
+ List<List<InteractiveValue>> childrenAfterValueInfoList = new ArrayList<List<InteractiveValue>>();
+ Iterator<Long> variableIDIter = valueInfoMap.keySet().iterator();
+ while (variableIDIter.hasNext()) {
+ long variableID = variableIDIter.next();
+ if (interactiveInfo.hasChild(variableID, InteractiveInfo.CHECK_BEFORE_LINE)) {
+ childrenBeforeValueInfoList.add(valueInfoMap.get(variableID));
+ } else if (interactiveInfo.hasChild(variableID, InteractiveInfo.CHECK_AFTER_LINE)) {
+ childrenAfterValueInfoList.add(valueInfoMap.get(variableID));
+ } else {
+ // Do nothing
+ }
+ }
+ parseValue(interactiveInfo, InteractiveInfo.CHECK_BEFORE_LINE,
+ rootBeforeValueInfoList, childrenBeforeValueInfoList, beforeUIDataList);
+ parseValue(interactiveInfo, InteractiveInfo.CHECK_AFTER_LINE,
+ rootAfterValueInfoList, childrenAfterValueInfoList, afterUIDataList);
+ return true;
+ }
+
+ private void parseValue(InteractiveInfo interactiveInfo, int checkLocation,
+ List<InteractiveValue> rootValueInfoList, List<List<InteractiveValue>> childrenValueInfoList,
+ List<InteractiveUIData> parsedUIDataList) {
+ if (rootValueInfoList == null) {
+ return;
+ }
+ for (int i = 0; i < rootValueInfoList.size(); i++) {
+ Map<Long, byte[]> valueMap = new HashMap<Long, byte[]>(); // Map<variableID, value>
+ valueMap.put(interactiveInfo.getVariableID(checkLocation), rootValueInfoList.get(i).value);
+ for (int k = 0; k < childrenValueInfoList.size(); k++) {
+ if (childrenValueInfoList.get(k).size() > i) { // Child is in root's range
+ InteractiveValue valueInfo = childrenValueInfoList.get(k).get(i);
+ valueMap.put(valueInfo.variableID, valueInfo.value);
+ } else {
+ // FBI probe of root is sent more than FBI probe of children.
+ Logger.error("rootValueInfo size is larger than childrenValueInfo size.");
+ }
+ }
+ InteractiveUIData uiData = InteractiveParser.parseValue(interactiveInfo, checkLocation, valueMap);
+ if (uiData != null) {
+ uiData.setSeq(rootValueInfoList.get(i).seq);
+ uiData.setTime(rootValueInfoList.get(i).time);
+ parsedUIDataList.add(uiData);
+ }
+ }
+ }
+
+ public void clear() {
+ variableInfoList.clear();
+ }
+}
--- /dev/null
- return (long) (interactiveInfo.getVariableID(InteractiveInfo.CHECK_BEFORE_LINE)
- + interactiveInfo.getVariableID(InteractiveInfo.CHECK_AFTER_LINE) + "," + tableRowID).hashCode();
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+package org.tizen.dynamicanalyzer.ui.interactive.data;
+
+import java.util.List;
+
+import org.tizen.dynamicanalyzer.nl.InteractivePageLabels;
+import org.tizen.dynamicanalyzer.ui.interactive.model.InteractiveInfo;
+
+public class InteractiveUIData implements Comparable {
+ private final static long UNSET_SEQ = -1;
+
+ private long tableRowID; /* need for table row identity */
+ private long seq = UNSET_SEQ; // sequence number from SWAP
+ private long time;
+ private String type;
+ private String name;
+ private Object value;
+ private boolean array = false;
+ private int checkLocation;
+ private InteractiveInfo interactiveInfo;
+ private List<InteractiveUIData> children;
+
+ public InteractiveUIData(InteractiveInfo interactiveInfo, int checkLocation) {
+ this.interactiveInfo = interactiveInfo;
+ this.type = interactiveInfo.getTypeNameWithPointer();
+ this.name = interactiveInfo.getVariableName();
+ this.checkLocation = checkLocation;
+ }
+
+ public long getTableRowID() {
++ return tableRowID;
+ }
+
+ public void setTableRowID(long tableRowID) {
+ this.tableRowID = tableRowID;
+ }
+
+ public long getSeq() {
+ return seq;
+ }
+
+ public void setSeq(long seq) {
+ this.seq = seq;
+ }
+
+ public long getTime() {
+ return time;
+ }
+
+ public void setTime(long time) {
+ this.time = time;
+ }
+
+ public boolean isArray() {
+ return array;
+ }
+
+ public void setArray(boolean array) {
+ this.array = array;
+ }
+
+ public String getType() {
+ if (array) {
+ type += " [" + children.size() + "]";
+ }
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Object getValue() {
+ if (array || children != null) {
+ return getComplexValue();
+ }
+ if (value == null) {
+ return "This variable type is not supported.";
+ }
+ return value;
+ }
+
+ public void setValue(Object value) {
+ this.value = value;
+ }
+
+ public List<InteractiveUIData> getChildren() {
+ return children;
+ }
+
+ public void setChildren(List<InteractiveUIData> children) {
+ this.children = children;
+ }
+
+ public InteractiveInfo getVariableInfo() {
+ return interactiveInfo;
+ }
+
+ public int getCheckLocation() {
+ return checkLocation;
+ }
+
+ private String getComplexValue() {
+ String complexValue = "[";
+ for (int i = 0; i < children.size(); i++) {
+ InteractiveUIData child = children.get(i);
+ if (child == null) {
+ complexValue += InteractivePageLabels.INTERACTIVE_CHART_INVALID_CHECK_LOCATION;
+ } else if (child.isArray() || child.getChildren() != null) {
+ complexValue += child.getComplexValue();
+ } else {
+ complexValue += child.getValue();
+ }
+ if (i != children.size() - 1) { // is not last index
+ complexValue += ", ";
+ }
+ }
+ return complexValue + "]";
+ }
+
+ public String getChartTooltipString() {
+ if (array || children != null) {
+ return getComplexValue();
+ }
+ return getType() + " " + name + " : " + getValue();
+ }
+
+ @Override
+ public int compareTo(Object arg0) {
+ if (arg0 instanceof InteractiveUIData) {
+ return (int) (time - ((InteractiveUIData) arg0).time);
+ }
+ return 0;
+ }
+}
--- /dev/null
- import org.tizen.dynamicanalyzer.swap.channel.control.FunctionBodyInstrument;
- import org.tizen.dynamicanalyzer.swap.channel.control.FunctionBodyInstrumentStep;
- import org.tizen.dynamicanalyzer.swap.channel.control.FunctionBodyInstrumentVariable;
+/*
+ * Dynamic Analyzer
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Jungwook Ryu <jungwook.ryu@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+package org.tizen.dynamicanalyzer.ui.interactive.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
- private List<FunctionBodyInstrument> fbiList = new ArrayList<FunctionBodyInstrument>();
++import org.tizen.dynamicanalyzer.protocol.p40.FunctionBodyInstrument40;
++import org.tizen.dynamicanalyzer.protocol.p40.FunctionBodyInstrumentStep40;
++import org.tizen.dynamicanalyzer.protocol.p40.FunctionBodyInstrumentVariable40;
+import org.tizen.dynamicanalyzer.util.Logger;
+
+public class FBIManager {
- public void addFbi(List<FunctionBodyInstrument> fbiList) {
++ private List<FunctionBodyInstrument40> fbiList = new ArrayList<FunctionBodyInstrument40>();
+ private static FBIManager instance = null;
+
+ public static FBIManager getInstance() {
+ if (instance == null) {
+ instance = new FBIManager();
+ }
+ return instance;
+ }
+
- public List<FunctionBodyInstrument> getFbiList() {
++ public void addFbi(List<FunctionBodyInstrument40> fbiList) {
+ this.fbiList.addAll(fbiList);
+ }
+
- FunctionBodyInstrument fbi = getFunctionBodyInstrument(info.getSourceLineAddress(info.getCheckLocation()));
++ public List<FunctionBodyInstrument40> getFbiList() {
+ return fbiList;
+ }
+
+ public void clear() {
+ fbiList.clear();
+ }
+
+ public void makeSWAPProtocolMessage(InteractiveInfo info) {
+ switch (info.getCheckLocation()) {
+ case InteractiveInfo.CHECK_BEFORE_LINE:
+ case InteractiveInfo.CHECK_AFTER_LINE:
- FunctionBodyInstrument beforeFBI = getFunctionBodyInstrument(info
++ FunctionBodyInstrument40 fbi = getFunctionBodyInstrument(info.getSourceLineAddress(info.getCheckLocation()));
+ setFunctionBodyInstrument(info, info.getCheckLocation(), fbi);
+ break;
+ case InteractiveInfo.CHECK_BEFORE_AFTER_LINE:
- FunctionBodyInstrument afterFBI = getFunctionBodyInstrument(info
++ FunctionBodyInstrument40 beforeFBI = getFunctionBodyInstrument(info
+ .getSourceLineAddress(InteractiveInfo.CHECK_BEFORE_LINE));
- private FunctionBodyInstrument getFunctionBodyInstrument(long address) {
++ FunctionBodyInstrument40 afterFBI = getFunctionBodyInstrument(info
+ .getSourceLineAddress(InteractiveInfo.CHECK_AFTER_LINE));
+ setFunctionBodyInstrument(info, InteractiveInfo.CHECK_BEFORE_LINE, beforeFBI);
+ setFunctionBodyInstrument(info, InteractiveInfo.CHECK_AFTER_LINE, afterFBI);
+ break;
+ default:
+ Logger.error("Impossible case!!");
+ break;
+ }
+ }
+
- FunctionBodyInstrument newFBI = new FunctionBodyInstrument(address);
++ private FunctionBodyInstrument40 getFunctionBodyInstrument(long address) {
+ for (int i = 0; i < fbiList.size(); i++) {
+ if (fbiList.get(i).getAddress() == address) {
+ return fbiList.get(i);
+ }
+ }
- private static void setFunctionBodyInstrument(InteractiveInfo info, int checkLocation, FunctionBodyInstrument fbi) {
++ FunctionBodyInstrument40 newFBI = new FunctionBodyInstrument40(address);
+ fbiList.add(newFBI);
+ return newFBI;
+ }
+
- List<FunctionBodyInstrumentStep> steps = makeFBISteps(info);
- FunctionBodyInstrumentVariable targetVariable = new FunctionBodyInstrumentVariable(
++ private static void setFunctionBodyInstrument(InteractiveInfo info, int checkLocation, FunctionBodyInstrument40 fbi) {
+ long registerOffset = info.getRegisterOffset();
+ byte registerNum = (byte) info.getRegisterID();
+ int dataSize = info.getByteSize();
+ if (info.getArrayCount() > 0) {
+ dataSize *= info.getArrayCount();
+ } else if (info.isString()) {
+ dataSize = 0;
+ }
+ // make target variable
- List<FunctionBodyInstrumentStep> childSteps = makeFBISteps(child);
- FunctionBodyInstrumentVariable childVariable = new FunctionBodyInstrumentVariable(
++ List<FunctionBodyInstrumentStep40> steps = makeFBISteps(info);
++ FunctionBodyInstrumentVariable40 targetVariable = new FunctionBodyInstrumentVariable40(
+ info.getVariableID(checkLocation), registerOffset, registerNum, dataSize, steps);
+ fbi.addVariable(targetVariable);
+
+ // make child variable (char * member of struct)
+ if (info.getType() == VAR_TYPE.STRUCT) {
+ List<InteractiveInfo> children = info.getChildren();
+ for (int i = 0; i < children.size(); i++) {
+ InteractiveInfo child = children.get(i);
+ if (child.isString()) {
- private static List<FunctionBodyInstrumentStep> makeFBISteps(InteractiveInfo info) {
- List<FunctionBodyInstrumentStep> steps = new ArrayList<FunctionBodyInstrumentStep>();
++ List<FunctionBodyInstrumentStep40> childSteps = makeFBISteps(child);
++ FunctionBodyInstrumentVariable40 childVariable = new FunctionBodyInstrumentVariable40(
+ child.getVariableID(checkLocation), registerOffset, registerNum, 0, childSteps);
+ fbi.addVariable(childVariable);
+ }
+ }
+ }
+ }
+
- FunctionBodyInstrumentStep step = new FunctionBodyInstrumentStep((byte) cursorInfo.getPointerOrder(), 0);
++ private static List<FunctionBodyInstrumentStep40> makeFBISteps(InteractiveInfo info) {
++ List<FunctionBodyInstrumentStep40> steps = new ArrayList<FunctionBodyInstrumentStep40>();
+
+ InteractiveInfo cursorInfo = info;
+ while (cursorInfo != null) {
+ // Add sequence is important. Do not change sequence without consideration.
+ if (cursorInfo == info) {
- FunctionBodyInstrumentStep step = new FunctionBodyInstrumentStep((byte) parentInfo.getPointerOrder(),
++ FunctionBodyInstrumentStep40 step = new FunctionBodyInstrumentStep40((byte) cursorInfo.getPointerOrder(), 0);
+ steps.add(step);
+ }
+ InteractiveInfo parentInfo = cursorInfo.getParent();
+ if (parentInfo != null) {
++ FunctionBodyInstrumentStep40 step = new FunctionBodyInstrumentStep40((byte) parentInfo.getPointerOrder(),
+ cursorInfo.getOffset());
+ steps.add(step);
+ }
+ cursorInfo = parentInfo;
+ }
+
+ return steps;
+ }
+}
import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.nl.ConfigureLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
+ import org.tizen.dynamicanalyzer.setting.SettingDataManager;
import org.tizen.dynamicanalyzer.ui.file.FilePage;
+import org.tizen.dynamicanalyzer.ui.interactive.InteractivePage;
+import org.tizen.dynamicanalyzer.ui.interactive.data.InteractiveDataManager;
import org.tizen.dynamicanalyzer.ui.kernel.KernelPage;
import org.tizen.dynamicanalyzer.ui.network.NetworkPage;
import org.tizen.dynamicanalyzer.ui.opengl.GLPage;
package org.tizen.dynamicanalyzer.ui.timeline.calltrace;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+
+import org.eclipse.nebula.widgets.grid.GridItem;
import org.eclipse.swt.SWT;
+ import org.eclipse.swt.custom.StackLayout;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
- import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.common.DASelectionData;
+import org.tizen.dynamicanalyzer.database.SqlConnectionManager;
import org.tizen.dynamicanalyzer.nl.TimelinePageLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.ui.info.callstack.CallstackView;
long start = selData.getStartTime();
long end = selData.getEndTime();
updateView();
- ((CallTraceTable) tableComp).setSelectionByTime(start, end);
+ // When Interactive Table's column is clicked
+ if (selData.getViewID().equals(InteractivePage.listViewID)) {
+ GridItem rootGridItem = findRootGridItem((GridItem)(selData.getData()));
+ InteractiveUIData uiData = (InteractiveUIData)((DATableDataFormat)
+ rootGridItem.getData()).getObject();
+ long interactiveSeqNum = uiData.getSeq();
+ int funcID = uiData.getVariableInfo().getFunctionID();
+ start = findFuncCallTime(funcID, interactiveSeqNum);
+ end = start;
+ }
+ ((DAWindowingTableComposite)stackLayout.topControl).setSelectionByTime(start, end);
updateView();
/* only callstack update */
@Override
public Control getControl() {
- return tableComp;
+ return stackLayout.topControl;
}
+
+ private GridItem findRootGridItem(GridItem gridItem) {
+ if (gridItem.getParentItem() == null) {
+ return gridItem;
+ }
+ return findRootGridItem(gridItem.getParentItem());
+ }
+
+ /*
+ * Find function's call entry time concerning interactive profiling sequence number.
+ */
+ private long findFuncCallTime(int funcID, long interactiveSeqNum) {
+ long callTime = 0;
+ String query = String.format(FunctionEntryDBTable.FIND_ENTRY_TIME_QUERY, funcID, interactiveSeqNum);
+ ResultSet rs = SqlConnectionManager.executeQueryRS(query);
+ if (null == rs) {
+ return callTime;
+ }
+ try {
+ rs.next();
+ callTime = rs.getLong(1);
+ } catch (SQLException e) {
+ Logger.exception(e);
+ } finally {
+ SqlConnectionManager.releaseResultSet(rs);
+ }
+ return callTime;
+ }
}
private DAChartBoardHeightChangeableItem processItem = null;
private Map<Integer, DAChartSeries> childSeriesMap;
- public static synchronized CPUChart getInstance() {
- if (instance == null) {
- instance = new CPUChart();
- }
-
- return instance;
- }
-
- private CPUChart() {
+ public CPUChart() {
chartType = TimelineConstants.CHART_TYPE_CPU;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
+ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.CPU_CHART_TITLE;
chartDescriptor = TimelineChartLabels.CPU_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_CPU;
ColorResources.SERIES_COLOR_CPUCORE_CORE4, ColorResources.SERIES_COLOR_CPUCORE_CORE5,
ColorResources.SERIES_COLOR_CPUCORE_CORE6, ColorResources.SERIES_COLOR_CPUCORE_CORE7 };
- public static synchronized CPUCoreChart getInstance() {
- if (null == instance) {
- instance = new CPUCoreChart();
- }
- return instance;
- }
-
public CPUCoreChart() {
chartType = TimelineConstants.CHART_TYPE_CPU_CORE;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
+ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.CPU_CORE_CHART_TITLE;
chartDescriptor = TimelineChartLabels.CPU_CORE_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_CPU_CORE;
ColorResources.SERIES_COLOR_CPUCORE_CORE4, ColorResources.SERIES_COLOR_CPUCORE_CORE5,
ColorResources.SERIES_COLOR_CPUCORE_CORE6, ColorResources.SERIES_COLOR_CPUCORE_CORE7 };
- public static synchronized CPUFrequencyChart getInstance() {
- if (instance == null) {
- instance = new CPUFrequencyChart();
- }
-
- return instance;
- }
-
- private CPUFrequencyChart() {
+ public CPUFrequencyChart() {
chartType = TimelineConstants.CHART_TYPE_CPU_FREQUENCY;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
+ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.CPU_FREQUENCY_CHART_TITLE;
chartDescriptor = TimelineChartLabels.CPU_FREQUENCY_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_CPU_FREQUENCY;
public static final String[] CAMERA_STATES = new String[] { OFF, OPEN, PREVIEW, RECORDING,
RECORDING_PAUSE };
- public static synchronized DeviceChart getInstance() {
- if (instance == null) {
- instance = new DeviceChart();
- }
-
- return instance;
- }
-
- private DeviceChart() {
+ public DeviceChart() {
chartType = TimelineConstants.CHART_TYPE_DEVICE;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
+ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.DEVICE_CHART_TITLE;
chartDescriptor = TimelineChartLabels.DEVICE_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_DEVICE;
private long maxOpCount = 10;
private long maxReadWriteSize = 100;
- public static DiskIOChart getInstance() {
- if (instance == null) {
- synchronized (DiskIOChart.class) {
- if (instance == null) {
- instance = new DiskIOChart();
- }
- }
- }
-
- return instance;
- }
-
- private DiskIOChart() {
+ public DiskIOChart() {
chartType = TimelineConstants.CHART_TYPE_DISK_IO;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
+ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.DISK_IO_CHART_TITLE;
chartDescriptor = TimelineChartLabels.DISK_IO_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_DISK_IO;
private DAChartBoardItem appUsageItem;
- public static synchronized EnergyChart getInstance() {
- if (instance == null) {
- instance = new EnergyChart();
- }
-
- return instance;
- }
-
- private EnergyChart() {
+ public EnergyChart() {
chartType = TimelineConstants.CHART_TYPE_ENERGY;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
+ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.ENERGY_CHART_TITLE;
chartDescriptor = TimelineChartLabels.ENERGY_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_ENERGY;
private static final int totalAllocSeriesID = -100;
private static final int appAllocSeriesID = -10;
- public static synchronized HeapChart getInstance() {
- if (instance == null) {
- instance = new HeapChart();
- }
- return instance;
+ public HeapChart() {
+ chartType = TimelineConstants.CHART_TYPE_HEAP;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
++ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
+ chartName = TimelineChartLabels.HEAP_CHART_TITLE;
+ chartDescriptor = TimelineChartLabels.HEAP_CHART_DESCRIPTOR;
+ chartIcon = ImageResources.CHART_HEAP;
+ addIcon = ImageResources.CHART_HEAP;
}
-
+
private Map<Integer, DAChartSeries> createChartSeries(int pid) {
Map<Integer, DAChartSeries> chartSeriesMap = new HashMap<Integer, DAChartSeries>();
/*
private DAChartSeries sendSeries;
private DAChartSeries receiveSeries;
- public static synchronized NetworkIOChart getInstance() {
- if (instance == null) {
- synchronized (NetworkIOChart.class) {
- if (instance == null) {
- instance = new NetworkIOChart();
- }
- }
- }
-
- return instance;
- }
-
- private NetworkIOChart() {
+ public NetworkIOChart() {
chartType = TimelineConstants.CHART_TYPE_NETWORK_IO;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
+ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.NETWORK_IO_CHART_TITLE;
chartDescriptor = TimelineChartLabels.NETWORK_IO_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_NETWORK_IO;
private Map<Integer, String> processNameMap = new HashMap<Integer, String>();
private DAChartBoardItem parentBoardItem;
- public static synchronized ProcessMemoryChart getInstance() {
- if (instance == null) {
- instance = new ProcessMemoryChart();
- }
- return instance;
+ public ProcessMemoryChart() {
+ chartType = TimelineConstants.CHART_TYPE_PROCESS_MEMORY;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
++ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
+ chartName = TimelineChartLabels.PROCESS_MEMORY_CHART_TITLE;
+ chartDescriptor = TimelineChartLabels.PROCESS_MEMORY_CHART_DESCRIPTOR;
+ chartIcon = ImageResources.CHART_PROCESS_MEMORY;
+ addIcon = ImageResources.CHART_PROCESS_MEMORY;
}
-
+
private List<DAChartSeries> createChartSeries() {
List<DAChartSeries> chartSeriesList = new ArrayList<DAChartSeries>();
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
-import org.tizen.dynamicanalyzer.common.DAState;
import org.tizen.dynamicanalyzer.common.Global;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
+ import org.tizen.dynamicanalyzer.protocol.ProtocolConstants;
import org.tizen.dynamicanalyzer.resources.ImageResources;
- import org.tizen.dynamicanalyzer.swap.channel.data.DataChannelConstants;
import org.tizen.dynamicanalyzer.ui.info.screenshot.ScreenShotDBTable;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineConstants;
import org.tizen.dynamicanalyzer.util.Logger;
private DAChartSeries screenshotSeries;
private Map<String, Image> imageMap = new ConcurrentHashMap<String, Image>();
- private CreateImageThread createImageThread;
- public static synchronized ScreenshotChart getInstance() {
- if (instance == null) {
- instance = new ScreenshotChart();
- }
-
- return instance;
- }
-
- private ScreenshotChart() {
+ public ScreenshotChart() {
chartType = TimelineConstants.CHART_TYPE_SCREENSHOT;
chartStyle = DAChart.CHART_STYLE_SCREENSHOT;
- probeType = DataChannelConstants.MSG_PROBE_SCREENSHOT;
+ probeType = ProtocolConstants.MSG_PROBE_SCREENSHOT;
chartName = TimelineChartLabels.SCREENSHOT_CHART_TITLE;
chartDescriptor = TimelineChartLabels.SCREENSHOT_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_SCREENSHOT;
+ File.separator
+ AnalyzerConstants.SMALL_IMAGE_FOLDER_NAME
+ File.separator
- + fileName;
+ + fileName;
- int yPosition;
- if (orientation == 0 || orientation == 180) { //$NON-NLS-1$ //$NON-NLS-2$
- yPosition = 10;
- } else {
- yPosition = 23;
- }
+ /*
+ * 1 image need 1 thread.
+ */
if (imageMap.containsKey(imagePath)) {
Image image = imageMap.get(imagePath);
- screenshotSeries.addSeriesItem(new DAChartSeriesItem(time, image));
+ screenshotSeries.addSeriesItem(new DAChartSeriesItem(time,
- yPosition, image));
++ image));
} else {
- if (DAState.isStartable()) { // case : open save file
- addImageSeries(time, imagePath);
- } else { // case : during trace
- if (createImageThread != null) {
- createImageThread.pushImagePath(new ImageSeriesInfo(imagePath, time));
- } else {
- Logger.warning("createImageThread is not create not yet.");
- addImageSeries(time, imagePath);
- }
- }
+ Thread createImageThread = new Thread(null, new CreateImageThread(
- imagePath, time, yPosition), "small image getter thread");
++ imagePath, time), "small image getter thread");
+ createImageThread.start();
}
}
} catch (NumberFormatException ne) {
imageMap.clear();
}
- protected void addImageSeries(double time, String imagePath) {
- Image image = new Image(Display.getDefault(), imagePath);
- imageMap.put(imagePath, image);
- screenshotSeries.addSeriesItem(new DAChartSeriesItem(time, image));
- }
-
private class CreateImageThread extends Thread {
- private BlockingQueue<ImageSeriesInfo> imageInfoQueue = new LinkedBlockingQueue<ImageSeriesInfo>();
-
- public void pushImagePath(ImageSeriesInfo imageInfo) {
- imageInfoQueue.offer(imageInfo);
+ private String imagePath;
+ private double time;
- private int yPosition;
+
- private CreateImageThread(String imagePath, double time, int yPostion) {
++ private CreateImageThread(String imagePath, double time) {
+ this.imagePath = imagePath;
+ this.time = time;
- this.yPosition = yPostion;
}
-
- @Override
+
public void run() {
- Logger.info("CreateImageThread for Screenshot chart is started.");
- while (true) {
+ Image image = null;
+ int count = 0;
+ while (true && count < 5) {
try {
- ImageSeriesInfo imageInfo = imageInfoQueue.take();
- if (imageInfo == ImageSeriesInfo.END_OF_QUEUE) {
+ image = new Image(Display.getDefault(), imagePath);
+ imageMap.put(imagePath, image);
+ break;
+ } catch (SWTException se) {
+ count++;
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException ie) {
break;
}
- if (imageMap.containsKey(imageInfo.getImagePath())) {
- continue;
- }
- // Create Image object
- int count = 0;
- while (count < 5) {
- try {
- addImageSeries(imageInfo.getTime(), imageInfo.getImagePath());
- break;
- } catch (SWTException se) {
- count++;
- try {
- Thread.sleep(100);
- } catch (InterruptedException ie) {
- throw ie;
- }
- }
- }
- } catch (InterruptedException e) {
- Logger.info("CreateImageThread for Screenshot chart is interrupted.");
- break;
}
}
- }
- }
-
- private static class ImageSeriesInfo {
- public static final ImageSeriesInfo END_OF_QUEUE = new ImageSeriesInfo(null, 0);
- private String imagePath;
- private double time;
-
- ImageSeriesInfo(String imagePath, double time) {
- this.imagePath = imagePath;
- this.time = time;
- }
-
- String getImagePath() {
- return imagePath;
- }
-
- double getTime() {
- return time;
+
+ if (null != image) {
- screenshotSeries.addSeriesItem(new DAChartSeriesItem(time,
- yPosition, image));
++ screenshotSeries.addSeriesItem(new DAChartSeriesItem(time, image));
+ } else {
+ // TODO Fix
+// imageMap.put(imagePath, ImageResources.NO_IMAGE_SMALL);
+// screenshotSeries.addSeriesItem(new DAChartSeriesItem(time,
+// yPosition, ImageResources.NO_IMAGE_SMALL));
+ }
}
}
}
private DAChartSeries systemSeries;
private DAChartSeries totalSeries;
- public static synchronized SystemMemoryChart getInstance() {
- if (instance == null) {
- instance = new SystemMemoryChart();
- }
-
- return instance;
- }
-
- private SystemMemoryChart() {
+ public SystemMemoryChart() {
chartType = TimelineConstants.CHART_TYPE_SYSTEM_MEMORY;
- probeType = DataChannelConstants.MSG_DATA_SYSTEM;
+ probeType = ProtocolConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.SYSTEM_MEMORY_CHART_TITLE;
chartDescriptor = TimelineChartLabels.SYSTEM_MEMORY_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_SYSTEM_MEMORY;
import org.tizen.dynamicanalyzer.widgets.popupMenu.DAPopupMenuListener;
public class UIEventChart extends TimelineChart {
- private static UIEventChart instance = null;
-
private DAChartSeries touchEventSeries;
- /*
- * TODO code about Gesture is commented. it will be reopen when it implemented.
- */
- // private DAChartSeries gestureEventSeries;
+ private DAChartSeries gestureEventSeries;
private DAChartSeries orientationEventSeries;
private static final int TYPE_TOUCH = 2;
private static final String NEW_LINE = CommonConstants.NEW_LINE;
- private UIEventListDialog uiEventListDialog = new UIEventListDialog(
- WorkbenchUtil.getWorkbenchWindow().getShell());
+ private UIEventListDialog uiEventListDialog = new UIEventListDialog(WorkbenchUtil.getWorkbenchWindow().getShell());
- public static synchronized UIEventChart getInstance() {
- if (instance == null) {
- instance = new UIEventChart();
- }
-
- return instance;
- }
-
- private UIEventChart() {
+ public UIEventChart() {
chartType = TimelineConstants.CHART_TYPE_UIEVENT;
chartStyle = DAChart.CHART_STYLE_MULTI;
- probeType = DataChannelConstants.MSG_PROBE_UIEVENT;
+ probeType = ProtocolConstants.MSG_PROBE_UIEVENT;
chartName = TimelineChartLabels.UI_EVENT_CHART_TITLE;
chartDescriptor = TimelineChartLabels.UI_EVENT_CHART_DESCRIPTOR;
chartIcon = ImageResources.CHART_UI_EVENT;
}
}
- public Map<Integer, List<List<Object>>> getTargetProcessDataFromDB(long start, long end) {
+ public Map<Integer, List<List<Object>>> getTargetProcessDataFromDB(long start, long end,
+ int targetPID) {
Map<Integer, List<List<Object>>> processedResult = new HashMap<Integer, List<List<Object>>>();
- String where = "WHERE SAMPLING_TIME BETWEEN " + start + " AND " + end
- + " ORDER BY SAMPLING_TIME";
+ String where = "WHERE SAMPLING_TIME BETWEEN " + start + " AND " + end;
+ if (targetPID > 0) {
+ where += " AND PID = " + targetPID;
+ } else {
- // Do nothing. It's mean getting All process info.
++ // Do nothing. Get information from all processes.
+ }
+ where += " ORDER BY SAMPLING_TIME";
List<List<Object>> queryResult = targetProcessDBTable.selectAllColumnData(where);
if (queryResult == null) {
import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.constant.CommonConstants;
import org.tizen.dynamicanalyzer.nl.ConfigureLabels;
+ import org.tizen.dynamicanalyzer.setting.Feature;
+ import org.tizen.dynamicanalyzer.setting.FeatureValueData;
+ import org.tizen.dynamicanalyzer.setting.SettingConstants;
+ import org.tizen.dynamicanalyzer.setting.SettingDataManager;
+ import org.tizen.dynamicanalyzer.setting.TargetData;
+import org.tizen.dynamicanalyzer.ui.interactive.data.InteractiveDataManager;
import org.tizen.dynamicanalyzer.ui.page.BaseView;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineChartManager;
- import org.tizen.dynamicanalyzer.ui.toolbar.setting.data.FeatureData;
- import org.tizen.dynamicanalyzer.ui.toolbar.setting.data.FeatureValueData;
- import org.tizen.dynamicanalyzer.ui.toolbar.setting.data.SettingConstants;
- import org.tizen.dynamicanalyzer.ui.toolbar.setting.data.SettingDataManager;
- import org.tizen.dynamicanalyzer.ui.toolbar.setting.data.TargetData;
import org.tizen.dynamicanalyzer.util.WorkbenchUtil;
import org.tizen.dynamicanalyzer.widgets.da.base.DAMessageBox;