setColor("edit_chart_button_hover_color_end", new RGB(177, 177, 177)); //$NON-NLS-1$
setColor("edit_chart_button_push_color_start", new RGB(177, 177, 177)); //$NON-NLS-1$
setColor("edit_chart_button_push_color_end", new RGB(231, 231, 231)); //$NON-NLS-1$
- setColor("edit_chart_button_outline_normal_color", new RGB(154, 154, 154)); //$NON-NLS-1$
+ setColor(
+ "edit_chart_button_outline_normal_color", new RGB(154, 154, 154)); //$NON-NLS-1$
setColor("edit_chart_button_outline_hover_color", new RGB(45, 180, 200)); //$NON-NLS-1$
setColor("edit_chart_button_outline_push_color", new RGB(154, 154, 154)); //$NON-NLS-1$
- setColor("edit_chart_button_inline_normal_color", new RGB(255, 255, 255)); //$NON-NLS-1$
+ setColor(
+ "edit_chart_button_inline_normal_color", new RGB(255, 255, 255)); //$NON-NLS-1$
setColor("edit_chart_button_inline_hover_color", new RGB(255, 255, 255)); //$NON-NLS-1$
setColor("edit_chart_button_inline_push_color", new RGB(255, 255, 255)); //$NON-NLS-1$
setColor("view_bg_color", new RGB(230, 230, 230)); //$NON-NLS-1$
getColor("view_title_font_color", new RGB(255, 255, 255));
- setColor("coolbar_bg_color", new RGB(228, 228, 228)); //$NON-NLS-1$
+ setColor("coolbar_bg_color", new RGB(45, 180, 200)); //$NON-NLS-1$
setColor("default_font_color", new RGB(0, 0, 0));//$NON-NLS-1$
/** title bar colors **/
setColor("titlebar_bottom_stroke_1", new RGB(115, 115, 115));
setColor("titlebar_bottom_stroke_2", new RGB(160, 160, 160));
- /** device and application combo specific colors start **/
- setColor("device_application_enable_font", new RGB(0, 0, 0)); //$NON-NLS-1$
- setColor("device_application_disable_font", new RGB(119, 223, 238)); //$NON-NLS-1$
- setColor("device_application_popup_outer_1", new RGB(45, 180, 200)); //$NON-NLS-1$
- setColor("device_application_popup_outer_2", new RGB(47, 85, 92)); //$NON-NLS-1$
- setColor("device_application_item_normal_top", new RGB(255, 255, 255)); //$NON-NLS-1$
- setColor("device_application_item_normal_inner", new RGB(232, 234, 235)); //$NON-NLS-1$
- setColor("device_application_item_normal_bottom", new RGB(180, 180, 180)); //$NON-NLS-1$
- setColor("device_application_item_select_top", new RGB(255, 255, 255)); //$NON-NLS-1$
- setColor("device_application_item_select_inner", new RGB(45, 180, 200)); //$NON-NLS-1$
- setColor("device_application_item_select_bottom", new RGB(180, 180, 180)); //$NON-NLS-1$
- /** device and application combo specific colors end **/
/*** combo button gradation ***/
- setColor(
- "device_application_button_normal_start", new RGB(221, 221, 221)); //$NON-NLS-1$
- setColor("device_application_button_normal_end", new RGB(157, 157, 157)); //$NON-NLS-1$
- setColor("device_application_button_push_start", new RGB(24, 147, 189)); //$NON-NLS-1$
- setColor("device_application_button_push_end", new RGB(24, 147, 189)); //$NON-NLS-1$
- setColor("device_application_button_hover_start", new RGB(50, 185, 231)); //$NON-NLS-1$
- setColor("device_application_button_hover_end", new RGB(50, 185, 231)); //$NON-NLS-1$
- setColor(
- "device_application_button_disable_start", new RGB(157, 157, 157)); //$NON-NLS-1$
- setColor("device_application_button_disable_end", new RGB(78, 79, 81)); //$NON-NLS-1$
+ setColor("toolbar_combo_normal_start", new RGB(63,180,198)); //$NON-NLS-1$
+ setColor("toolbar_combo_normal_end", new RGB(26,128,144)); //$NON-NLS-1$
+ setColor("toolbar_combo_hover_start", new RGB(63,180,198)); //$NON-NLS-1$
+ setColor("toolbar_combo_hover_end", new RGB(26,128,144)); //$NON-NLS-1$
+ setColor("toolbar_combo_push_start", new RGB(26,128,144)); //$NON-NLS-1$
+ setColor("toolbar_combo_push_end", new RGB(63,185,198)); //$NON-NLS-1$
+ setColor("toolbar_combo_disable_start", new RGB(50,171,189)); //$NON-NLS-1$
+ setColor("toolbar_combo_disable_end", new RGB(50,171,189)); //$NON-NLS-1$
+
+ setColor("toolbar_combo_outline_normal_in_color", new RGB(240,240,240)); //$NON-NLS-1$
+ setColor("toolbar_combo_outline_hover_in_color", new RGB(0,38,45)); //$NON-NLS-1$
+ setColor("toolbar_combo_outline_push_in_color", new RGB(240,240,240)); //$NON-NLS-1$
+ setColor("toolbar_combo_outline_disable_in_color", new RGB(119,223,238)); //$NON-NLS-1$
+
+ setColor("toolbar_combo_button_normal_color", new RGB(206,206,206)); //$NON-NLS-1$
+ setColor("toolbar_combo_button_hover_color", new RGB(45,180,200)); //$NON-NLS-1$
+ setColor("toolbar_combo_button_push_color", new RGB(24,147,189)); //$NON-NLS-1$
+ setColor("toolbar_combo_button_disable_color", new RGB(206,206,206)); //$NON-NLS-1$
+
+ setColor("toolbar_combo_arrow_outline_color", new RGB(47,85,92)); //$NON-NLS-1$
+ setColor("toolbar_combo_font_normal_color", new RGB(255,255,255)); //$NON-NLS-1$
+ setColor("toolbar_combo_font_disable_color", new RGB(119,223,238)); //$NON-NLS-1$
+
/*** title combo color ***/
setColor("frame_rate_combo_normal_start", new RGB(251, 251, 251));
setColor("frame_rate_combo_hover_end", new RGB(207, 207, 207));
setColor("frame_rate_combo_disable_start", new RGB(251, 251, 251));
setColor("frame_rate_combo_disable_end", new RGB(207, 207, 207));
-
+
setColor("frame_rate_combo_outline_disable", new RGB(168, 168, 168));
setColor("frame_rate_combo_outline_normal", new RGB(168, 168, 168));
setColor("frame_rate_combo_outline_hover", new RGB(47, 85, 92));
setColor("frame_rate_combo_outline_push", new RGB(168, 168, 168));
-
+
/*** combo arrow button color ***/
setColor("device_application_button_normal", new RGB(206, 206, 206)); //$NON-NLS-1$
setColor("device_application_button_push", new RGB(24, 147, 189)); //$NON-NLS-1$
setColor("add_chart_normal_stroke", new RGB(168, 168, 168)); //$NON-NLS-1$
setColor("add_chart_hover_stroke", new RGB(47, 85, 92)); //$NON-NLS-1$
setColor("add_chart_push_stroke", new RGB(168, 168, 168)); //$NON-NLS-1$
-
+
setColor("add_chart_normal_start", new RGB(251, 251, 251)); //$NON-NLS-1$
setColor("add_chart_normal_end", new RGB(207, 207, 207)); //$NON-NLS-1$
setColor("add_chart_hover_start", new RGB(251, 251, 251)); //$NON-NLS-1$
setColor("add_chart_push_start", new RGB(207, 207, 207)); //$NON-NLS-1$
setColor("add_chart_push_end", new RGB(251, 251, 251)); //$NON-NLS-1$
setColor("add_chart_font_color", new RGB(71, 71, 71)); //$NON-NLS-1$
-
+
// bar graph
setColor("cpu_bar_graph_color", new RGB(0, 122, 167)); //$NON-NLS-1$
setColor("cpu_bar_graph_gray_color", new RGB(222, 222, 222));
setColor("seriesColorDiskIOWriteByte", new RGB(194, 79, 167)); //$NON-NLS-1$
setColor("seriesColorDiskIOReadSector", new RGB(131, 207, 232)); //$NON-NLS-1$
setColor("seriesColorDiskIOWriteSector", new RGB(229, 123, 206)); //$NON-NLS-1$
-
+
setColor("seriesColorDeviceWifi", new RGB(164, 43, 191)); //$NON-NLS-1$
setColor("seriesColorDeviceBluetooth", new RGB(88, 99, 212)); //$NON-NLS-1$
setColor("seriesColorDeviceGPS", new RGB(203, 136, 39)); //$NON-NLS-1$
setColor("seriesColorDeviceDNet", new RGB(161, 137, 60)); //$NON-NLS-1$
setColor("seriesColorDeviceCamera", new RGB(229, 123, 206)); //$NON-NLS-1$
-
+
setColor("seriesColorUIEventKey", new RGB(122, 132, 238)); //$NON-NLS-1$
setColor("seriesColorUIEventTouch", new RGB(129, 172, 50)); //$NON-NLS-1$
setColor("seriesColorUIEventGesture", new RGB(236, 107, 47)); //$NON-NLS-1$
/*** binary settings ***/
setColor("binary_settings_input_box_color", new RGB(223, 223, 223)); //$NON-NLS-1$
setColor("binary_settings_label_color", new RGB(122, 122, 122)); //$NON-NLS-1$
-
+
/*** file explorer ***/
setColor("explorer_select_start_color", new RGB(201, 242, 255)); //$NON-NLS-1$
setColor("explorer_select_end_color", new RGB(109, 219, 255)); //$NON-NLS-1$
- setColor("explorer_cell_bg_color", new RGB(250,250,250)); //$NON-NLS-1$
+ setColor("explorer_cell_bg_color", new RGB(250, 250, 250)); //$NON-NLS-1$
setColor("explorer_cell_line_color", new RGB(186, 186, 186)); //$NON-NLS-1$
}
import java.util.Map;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.widgets.Composite;
import org.tizen.dynamicanalyzer.ui.toolbar.configuration.ConfigurationDialog;
import org.tizen.dynamicanalyzer.ui.toolbar.opentrace.OpenTraceDialog;
import org.tizen.dynamicanalyzer.ui.toolbar.replayEditor.ReplayEditDialog;
+import org.tizen.dynamicanalyzer.util.DALogger;
import org.tizen.dynamicanalyzer.util.WorkbenchUtil;
import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
-import org.tizen.dynamicanalyzer.util.DALogger;
import org.tizen.dynamicanalyzer.widgets.button.DACustomButton;
import org.tizen.dynamicanalyzer.widgets.button.DACustomButtonClickEventListener;
import org.tizen.dynamicanalyzer.widgets.button.DACustomButtonRenderer;
public static final int REPLAY_EDIT_BUTTON = 9;
public static final String ALL_PROCESS = "All Processes";
- public static final String PROCESS_SPLITER = CommonConstants.SPACE
- + CommonConstants.COLON + CommonConstants.SPACE;
+ public static final String PROCESS_SPLITER = CommonConstants.SPACE + CommonConstants.COLON
+ + CommonConstants.SPACE;
private static ToolbarArea coolbarArea;
private DACustomToggleButton viewSourceButton;
private static final int TIMER_WIDTH = 122;
- private static int COMBO_FIRST_INDEX = 0;
public static boolean bThreadPageWork = false; // FIXME
public static boolean bUIPageWork = false; // FIXME
if (null != selectedApp) {
if (appName.equals(AnalyzerConstants.RUNNING_PROCESS)) {
Shell shell = WorkbenchUtil.getWorkbenchWindow().getShell();
- ProcessExplorerDialog pdialog = new ProcessExplorerDialog(
- shell);
+ ProcessExplorerDialog pdialog = new ProcessExplorerDialog(shell);
pdialog.setProcessList(selectedApp.getRunningProcesses());
Object result = pdialog.open();
if (result != null) {
ProcessInformation process = project.getProcessInformation(pids[i]);
String binName = process.getProcessName();
if (binName == null || binName.isEmpty()) {
- int bid = process.getLastProcessMemoryMap().getMainbinary()
- .getBinaryID();
+ int bid = process.getLastProcessMemoryMap().getMainbinary().getBinaryID();
String binPath = project.getDeviceStatusInfo().getBinaryInfo(bid)
.getTargetBinaryPath();
if (null != binPath && !binPath.isEmpty()) {
setToolbarStartStopState(true);
- if (null == DACommunicator.getDevices()
- || DACommunicator.getDevices().isEmpty()) {
+ if (null == DACommunicator.getDevices() || DACommunicator.getDevices().isEmpty()) {
deviceCombo.setEnabled(false);
}
- if (!deviceCombo.isEnabled()
- || null == GlobalInformation.getCurrentDeviceInfo()) {
+ if (!deviceCombo.isEnabled() || null == GlobalInformation.getCurrentDeviceInfo()) {
appCombo.setEnabled(false);
}
- if (!appCombo.isEnabled()
- || null == GlobalInformation.getCurrentApplication()) {
+ if (!appCombo.isEnabled() || null == GlobalInformation.getCurrentApplication()) {
setStartButtonEnablement(false);
}
@Override
public void run() {
- StartProcessManager.getInstance()
- .startProcessStart("prepare for tracing");
+ StartProcessManager.getInstance().startProcessStart("prepare for tracing");
}
});
/** which contains start, TimerClock, save, open and replay buttons. */
// Creates start button.
- startButton = new DACustomButton(parent, ImageResources.START,
- ImageResources.START_PUSH, ImageResources.START_HOVER,
- ImageResources.START_DISABLE);
+ startButton = new DACustomButton(parent, ImageResources.START, ImageResources.START_PUSH,
+ ImageResources.START_HOVER, ImageResources.START_DISABLE);
// startButton.setButtonEnabled(false);
setStartButtonState(false);
startButton.setToolTipText(ShortCutManager.START_TRACE);
timerClock.setClockFont(FontResources.TIMER);
// // Creates save trace button.
- saveTraceButton = new DACustomButton(parent, ImageResources.SAVE,
- ImageResources.SAVE_PUSH, ImageResources.SAVE_HOVER,
- ImageResources.SAVE_DISABLE);
+ saveTraceButton = new DACustomButton(parent, ImageResources.SAVE, ImageResources.SAVE_PUSH,
+ ImageResources.SAVE_HOVER, ImageResources.SAVE_DISABLE);
saveTraceButton.setButtonEnabled(false);
+ saveTraceButton.setBackground(ColorResources.COOLBAR_BG_COLOR);
saveTraceButton.setToolTipText(ShortCutManager.SAVE_TRACE);
buttons.put(SAVE_BUTTON, saveTraceButton);
// // Creates open trace button.
- openTraceButton = new DACustomButton(parent, ImageResources.OPEN,
- ImageResources.OPEN_PUSH, ImageResources.OPEN_HOVER,
- ImageResources.OPEN_DISABLE);
+ openTraceButton = new DACustomButton(parent, ImageResources.OPEN, ImageResources.OPEN_PUSH,
+ ImageResources.OPEN_HOVER, ImageResources.OPEN_DISABLE);
openTraceButton.setToolTipText(ShortCutManager.OPEN_TRACE);
+ openTraceButton.setBackground(ColorResources.COOLBAR_BG_COLOR);
buttons.put(OPEN_BUTTON, openTraceButton);
// Creates replay button.
ImageResources.REPLAY_PUSH, ImageResources.REPLAY_HOVER,
ImageResources.REPLAY_DISABLE);
replayButton.setToolTipText(ShortCutManager.REPLAY);
+ replayButton.setBackground(ColorResources.COOLBAR_BG_COLOR);
buttons.put(REPLAY_BUTTON, replayButton);
// Creates replayEdit button.
ImageResources.REPLAY_EDIT_PUSH, ImageResources.REPLAY_EDIT_HOVER,
ImageResources.REPLAY_EDIT_DISABLE);
replayEditButton.setToolTipText(ShortCutManager.REPLAY_EDIT);
+ replayEditButton.setBackground(ColorResources.COOLBAR_BG_COLOR);
buttons.put(REPLAY_EDIT_BUTTON, replayEditButton);
// Creates config button
ImageResources.SETTINGS_PUSH, ImageResources.SETTINGS_HOVER,
ImageResources.SETTINGS_DISABLE);
configButton.setToolTipText(ShortCutManager.COOLBAR_AREA_SETTING);
+ configButton.setBackground(ColorResources.COOLBAR_BG_COLOR);
buttons.put(CONFIG_BUTTON, configButton);
// Creates screenshot button
ImageResources.SCREEN_SHOT_PUSH, ImageResources.SCREEN_SHOT_HOVER,
ImageResources.SCREEN_SHOT_DISABLE);
screenshotButton.setToolTipText("Capture screen");
+ screenshotButton.setBackground(ColorResources.COOLBAR_BG_COLOR);
buttons.put(SCREENSHOT_BUTTON, screenshotButton);
// Creates about button.
- aboutButton = new DACustomButton(parent, ImageResources.ABOUT,
- ImageResources.ABOUT_PUSH, ImageResources.ABOUT_HOVER,
- ImageResources.ABOUT_DISABLE);
+ aboutButton = new DACustomButton(parent, ImageResources.ABOUT, ImageResources.ABOUT_PUSH,
+ ImageResources.ABOUT_HOVER, ImageResources.ABOUT_DISABLE);
aboutButton.setToolTipText(ShortCutManager.COOLBAR_AREA_ABOUT);
+ aboutButton.setBackground(ColorResources.COOLBAR_BG_COLOR);
buttons.put(ABOUT_BUTTON, aboutButton);
// Creates view source button.
- viewSourceButton = new DACustomToggleButton(parent,
- ImageResources.VIEW_SOURCE_NORMAL, ImageResources.VIEW_SOURCE_PUSH,
- ImageResources.VIEW_SOURCE_HOVER, ImageResources.VIEW_SOURCE_DISABLE,
- ImageResources.VIEW_SOURCE_TOGGLE,
- ImageResources.VIEW_SOURCE_TOGGLE_HOVER,
- ImageResources.VIEW_SOURCE_TOGGLE_PUSH);
+ viewSourceButton = new DACustomToggleButton(parent, ImageResources.VIEW_SOURCE_NORMAL,
+ ImageResources.VIEW_SOURCE_PUSH, ImageResources.VIEW_SOURCE_HOVER,
+ ImageResources.VIEW_SOURCE_DISABLE, ImageResources.VIEW_SOURCE_TOGGLE,
+ ImageResources.VIEW_SOURCE_TOGGLE_HOVER, ImageResources.VIEW_SOURCE_TOGGLE_PUSH);
viewSourceButton.setToolTipText(ShortCutManager.COOLBAR_AREA_VIEW_SOURCE);
+ viewSourceButton.setBackground(ColorResources.COOLBAR_BG_COLOR);
buttons.put(SOURCE_BUTTON, viewSourceButton);
// Creates snapshot on/off button.
data = new FormData();
data.top = new FormAttachment(0, 4);
data.left = new FormAttachment(openTraceButton, 0, SWT.RIGHT);
- data.width = 31; // 31
+ data.width = 33; // 31
data.height = 30;
replayButton.setLayoutData(data);
data = new FormData();
data.top = new FormAttachment(0, 4);
data.left = new FormAttachment(replayButton, 0, SWT.RIGHT);
- data.width = 31;
+ data.width = 0;
data.height = 30;
replayEditButton.setLayoutData(data);
/** device and application combo */
// Creates device combo.
- deviceCombo = new DACustomCombo(parent, SWT.NONE);
- deviceCombo.setImages(ImageResources.COMBO_NORMAL, ImageResources.COMBO_HOVER,
- ImageResources.COMBO_PUSH, ImageResources.COMBO_DISABLE);
- deviceCombo.setComboButtonGradation(
- ColorResources.DEVICE_APPLICATION_BUTTON_NORMAL_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_NORMAL_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_PUSH_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_PUSH_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_HOVER_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_HOVER_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_DISABLE_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_DISABLE_END);
- deviceCombo.setButtonImages(ImageResources.COMBO_DROPDOWN_UP,
- ImageResources.COMBO_DROPDOWN_DOWN);
- deviceCombo.setEnabled(true);
- deviceCombo.setItemHeight(DesignConstants.COMBO_DEVICE_HEIGHT);
- deviceCombo.setComboFont(FontResources.COMBO);
- deviceCombo.setItemFont(FontResources.DROPDOWN);
- deviceCombo.setButtonRenderer(new DACustomButtonRenderer());
-
- Label bracketLabel = new Label(parent, SWT.CENTER | SWT.TRANSPARENT);
- bracketLabel.setImage(ImageResources.BRACKET);
-
- // Creates application combo.
- appCombo = new DACustomCombo(parent, SWT.NONE);
- appCombo.setImages(ImageResources.COMBO_NORMAL, ImageResources.COMBO_HOVER,
- ImageResources.COMBO_PUSH, ImageResources.COMBO_DISABLE);
- appCombo.setComboButtonGradation(
- ColorResources.DEVICE_APPLICATION_BUTTON_NORMAL_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_NORMAL_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_PUSH_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_PUSH_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_HOVER_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_HOVER_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_DISABLE_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_DISABLE_END);
- appCombo.setButtonImages(ImageResources.COMBO_DROPDOWN_UP,
- ImageResources.COMBO_DROPDOWN_DOWN);
- appCombo.setEnabled(false);
- appCombo.setItemHeight(DesignConstants.COMBO_APP_HEIGHT);
- appCombo.setComboFont(FontResources.COMBO);
- appCombo.setItemFont(FontResources.DROPDOWN);
- appCombo.setButtonRenderer(new DACustomButtonRenderer());
-
+ deviceCombo = makeDACustomCombo(parent);
// Sets layout data.
data = new FormData();
data.top = new FormAttachment(0, DesignConstants.COMBO_DEVICE_TOP);
data.height = DesignConstants.COMBO_DEVICE_HEIGHT;
deviceCombo.setLayoutData(data);
+ Label bracketLabel = new Label(parent, SWT.CENTER | SWT.TRANSPARENT);
+ bracketLabel.setImage(ImageResources.BRACKET);
+ bracketLabel.setBackground(ColorResources.COOLBAR_BG_COLOR);
data = new FormData();
data.top = new FormAttachment(0, DesignConstants.COMBO_DEVICE_TOP);
data.left = new FormAttachment(deviceCombo, 0, SWT.RIGHT);
data.height = 24;
bracketLabel.setLayoutData(data);
+ // Creates application combo.
+ appCombo = makeDACustomCombo(parent);
data = new FormData();
data.top = new FormAttachment(0, DesignConstants.COMBO_APP_TOP);
data.left = new FormAttachment(bracketLabel, 0, SWT.RIGHT);
appCombo.setLayoutData(data);
// Creates process combo.
- processCombo = new DACustomCombo(parent, SWT.NONE);
- processCombo.setImages(ImageResources.COMBO_NORMAL, ImageResources.COMBO_HOVER,
- ImageResources.COMBO_PUSH, ImageResources.COMBO_DISABLE);
- processCombo.setComboButtonGradation(
- ColorResources.DEVICE_APPLICATION_BUTTON_NORMAL_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_NORMAL_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_PUSH_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_PUSH_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_HOVER_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_HOVER_END,
- ColorResources.DEVICE_APPLICATION_BUTTON_DISABLE_START,
- ColorResources.DEVICE_APPLICATION_BUTTON_DISABLE_END);
- processCombo.setButtonImages(ImageResources.COMBO_DROPDOWN_UP,
- ImageResources.COMBO_DROPDOWN_DOWN);
- processCombo.setItemHeight(DesignConstants.COMBO_APP_HEIGHT);
- processCombo.setComboFont(FontResources.COMBO);
- processCombo.setItemFont(FontResources.DROPDOWN);
- processCombo.setButtonRenderer(new DACustomButtonRenderer());
-
+ processCombo = makeDACustomCombo(parent);
data = new FormData();
data.top = new FormAttachment(0, DesignConstants.COMBO_APP_TOP);
- data.left = new FormAttachment(replayEditButton, 10);
+ data.left = new FormAttachment(replayEditButton, 15);
data.width = DesignConstants.COMBO_APP_WIDTH;
data.height = DesignConstants.COMBO_APP_HEIGHT;
processCombo.setLayoutData(data);
addToolbarListeners();
}
+ private DACustomCombo makeDACustomCombo(Composite parent) {
+ DACustomCombo returnCombo = new DACustomCombo(parent, SWT.NONE);
+ returnCombo.setComboGradation(ColorResources.TOOLBAR_COMBO_NORMAL_START,
+ ColorResources.TOOLBAR_COMBO_NORMAL_END, ColorResources.TOOLBAR_COMBO_PUSH_START,
+ ColorResources.TOOLBAR_COMBO_PUSH_END, ColorResources.TOOLBAR_COMBO_HOVER_START,
+ ColorResources.TOOLBAR_COMBO_HOVER_END, ColorResources.TOOLBAR_COMBO_DISABLE_START,
+ ColorResources.TOOLBAR_COMBO_DISABLE_END);
+ returnCombo.setOutlineColors(ColorResources.TOOLBAR_COMBO_OUTLINE_NORMAL_IN_COLOR,
+ ColorResources.TOOLBAR_COMBO_OUTLINE_PUSH_IN_COLOR,
+ ColorResources.TOOLBAR_COMBO_OUTLINE_HOVER_IN_COLOR,
+ ColorResources.TOOLBAR_COMBO_OUTLINE_DISABLE_IN_COLOR);
+ returnCombo.setComboButtonImage(ImageResources.TOOLBAR_COMBO_BUTTON_NORMAL,
+ ImageResources.TOOLBAR_COMBO_BUTTON_NORMAL,
+ ImageResources.TOOLBAR_COMBO_BUTTON_NORMAL,
+ ImageResources.TOOLBAR_COMBO_BUTTON_DISABLE);
+ returnCombo.setComboImagePoint(new Point(139, 9));
+ returnCombo.setComboButtonColor(ColorResources.TOOLBAR_COMBO_BUTTON_NORMAL_COLOR,
+ ColorResources.TOOLBAR_COMBO_BUTTON_PUSH_COLOR,
+ ColorResources.TOOLBAR_COMBO_BUTTON_HOVER_COLOR,
+ ColorResources.TOOLBAR_COMBO_BUTTON_DISABLE_COLOR);
+ returnCombo.setArrowOutlineColors(ColorResources.TOOLBAR_COMBO_ARROW_OUTLINE_COLOR,
+ ColorResources.TOOLBAR_COMBO_ARROW_OUTLINE_COLOR,
+ ColorResources.TOOLBAR_COMBO_ARROW_OUTLINE_COLOR,
+ ColorResources.TOOLBAR_COMBO_ARROW_OUTLINE_COLOR);
+ returnCombo.setButtonImages(ImageResources.COMBO_DROPDOWN_UP,
+ ImageResources.COMBO_DROPDOWN_DOWN);
+ returnCombo.setFontPoint(new Point(5, 5));
+ returnCombo.setEnabled(true);
+ returnCombo.setComboFont(FontResources.COMBO);
+ returnCombo.setItemFont(FontResources.DROPDOWN);
+ returnCombo.setFontColors(ColorResources.TOOLBAR_COMBO_FONT_NORMAL_COLOR,
+ ColorResources.TOOLBAR_COMBO_FONT_NORMAL_COLOR,
+ ColorResources.TOOLBAR_COMBO_FONT_NORMAL_COLOR,
+ ColorResources.TOOLBAR_COMBO_FONT_DISABLE_COLOR);
+ returnCombo.setButtonRenderer(new DACustomButtonRenderer());
+ return returnCombo;
+ }
+
public long getTime() {
return timerClock.getTimeInMicroseconds();
}
List<AppInfo> apps = addToAppComboFromTarget();
if (apps != null && apps.size() > 0) {
- String appName = GlobalInformation.getCurrentDeviceInfo()
- .getSelectedAppName();
+ String appName = GlobalInformation.getCurrentDeviceInfo().getSelectedAppName();
if (null == appName) {
appCombo.select(0);
GlobalInformation.setCurrentApplication(apps.get(0));
for (AppInfo app : apps) {
String appid = app.getInfo(AppInfo.PROPERTY.APPID.index);
String pkgid = app.getInfo(AppInfo.PROPERTY.PACKAGE.index);
- if (appid.startsWith(pkgid)
- && !appid.contains(AnalyzerConstants.APPCONTROL)) {
+ if (appid.startsWith(pkgid) && !appid.contains(AnalyzerConstants.APPCONTROL)) {
appcomboList.add(app);
}
}
AppInfo appInfo = DACommunicator.getPkgInfoByName(text);
if (null != appInfo) {
GlobalInformation.setCurrentApplication(appInfo);
- GlobalInformation.getCurrentDeviceInfo().getCommunicator()
- .onAppSelected(appInfo);
+ GlobalInformation.getCurrentDeviceInfo().getCommunicator().onAppSelected(appInfo);
GlobalInformation.getCurrentDeviceInfo().setSelectedAppName(
appInfo.getInfo(AppInfo.PROPERTY.LABEL.index));
Display.getDefault().syncExec(new Runnable() {
AppInfo appInfo = DACommunicator.getPkgInfoByAppPkgId(id);
if (null != appInfo) {
GlobalInformation.setCurrentApplication(appInfo);
- GlobalInformation.getCurrentDeviceInfo().getCommunicator()
- .onAppSelected(appInfo);
+ GlobalInformation.getCurrentDeviceInfo().getCommunicator().onAppSelected(appInfo);
GlobalInformation.getCurrentDeviceInfo().setSelectedAppName(
appInfo.getInfo(AppInfo.PROPERTY.LABEL.index));
appCombo.setText(appInfo.getInfo(AppInfo.PROPERTY.LABEL.index));