import org.tizen.dynamicanalyzer.ui.network.NetworkPage;
import org.tizen.dynamicanalyzer.ui.opengl.GLPage;
import org.tizen.dynamicanalyzer.ui.page.BaseView;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.summary.SummaryPage;
import org.tizen.dynamicanalyzer.ui.summary.leaks.LeakView;
import org.tizen.dynamicanalyzer.ui.summary.profiling.FunctionUsageProfilingView;
import org.tizen.dynamicanalyzer.ui.timeline.TimelinePage;
import org.tizen.dynamicanalyzer.ui.timeline.calltrace.CallTraceView;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineChartManager;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.userinterface.UIPage;
import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.util.WorkbenchUtil;
public void run() {
// change startup table in timeline page
DATabComposite timelineTabComp = (DATabComposite) AnalyzerUtil.getView(
- TimelinePage.pageID, ScreenshotTabComposite.tabID);
+ TimelinePage.pageID, TimelineTableView.tabID);
AppStartupView appStartup = (AppStartupView) timelineTabComp
- .getView(ScreenshotTabComposite.appStartupViewID);
+ .getView(TimelineTableView.appStartupViewID);
appStartup.changeTable(isWeb);
// change call trace table in timeline page
LICENSE=License
CONFIGURATION=Configuration
WELCOME=Welcome
-SETTING_TITLE=Select features to analyze
+SETTING_TITLE=Settings
# SingletonInfoDlg.
REPLAYEDIT=Replay Editor
public static String SETTING_DIALOG_DESCRIPTION;
public static String SETTING_DIALOG_TARGET_TITLE;
- public static String SETTING_DIALOG_FEATURELIST_TITLE;
- public static String SETTING_DIALOG_SELECTED_TITLE;
+ public static String SETTING_DIALOG_TEMPLATE_TITLE;
public static String SETTING_DIALOG_OVERHEAD;
public static String SETTING_DIALOG_OVERHEAD_DESCRIPTION;
SAMPLING=sampling rate :
SETTING_DIALOG_DESCRIPTION=Choose a target and template
-SETTING_DIALOG_TARGET_TITLE=Target
-SETTING_DIALOG_FEATURELIST_TITLE=Feature List
-SETTING_DIALOG_SELECTED_TITLE=Selected Features
+SETTING_DIALOG_TARGET_TITLE=Targets
+SETTING_DIALOG_TEMPLATE_TITLE=Template
SETTING_DIALOG_OVERHEAD=Overhead :
SETTING_DIALOG_OVERHEAD_DESCRIPTION=The overhead is the estimation of runtime overhead.
FEATURE_DIALOG_FEATURE_TABLE_COLUMN_NAME=Features
FEATURE_OVERHEAD_RANKING_NORMAL=This feature can cause normal overhead
FEATURE_OVERHEAD_RANKING_MIDDLE=This feature can cause middle overhead
FEATURE_OVERHEAD_RANKING_HIGH=This feature can cause high overhead
-FEATURE_OVERHEAD_RANKING_INPUT_VALUE=The feature overhead may occur depending on the input value
+FEATURE_OVERHEAD_RANKING_INPUT_VALUE=The feature overhead may occur depending on the input value
\ No newline at end of file
public static String APP_STARTUP_VIEW_END_TIME;
public static String APP_STARTUP_VIEW_ELAPSED_TIME;
+ public static String DLOG_VIEW_TITLE;
+
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, InformationViewLabels.class);
APP_STARTUP_VIEW_START_TIME=Start Time
APP_STARTUP_VIEW_END_TIME=End Time
APP_STARTUP_VIEW_ELAPSED_TIME=Elapsed Time
+
+DLOG_VIEW_TITLE=Dlog
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.ui.file.manager.FileDataManager;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
SWT.NONE);
addView(detailInfo);
- ScreenshotTabComposite tabview = new ScreenshotTabComposite(rightForm,
+ TimelineTableView tabview = new TimelineTableView(rightForm,
SWT.NONE, FilePage.pageID);
- tabview.setObservingViews(ScreenshotTabComposite.screenshotViewID,
- new String[] { FilePage.apilistViewID });
- tabview.setObservingViews(ScreenshotTabComposite.callstackViewID,
- new String[] { FilePage.apilistViewID });
+// tabview.setObservingViews(TimelineTableView.screenshotViewID,
+// new String[] { FilePage.apilistViewID });
+// tabview.setObservingViews(TimelineTableView.callstackViewID,
+// new String[] { FilePage.apilistViewID });
addView(tabview);
rightForm.setWeights(new int[] { 50, 50 });
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
import org.tizen.dynamicanalyzer.model.TableInput;
import org.tizen.dynamicanalyzer.nl.InformationViewLabels;
import org.tizen.dynamicanalyzer.swap.model.data.AppStartupData;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.range.RangeDataManager;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableDataFormat;
@Override
public void widgetSelected(SelectionEvent e) {
AnalyzerManager.getCurrentPage().updateView(
- new DAViewData(ScreenshotTabComposite.tabID, null));
+ new DAViewData(TimelineTableView.tabID, null));
GridItem[] sels = table.getSelection();
if (sels.length > 0) {
table.setFocusItem(sels[0]);
import org.tizen.dynamicanalyzer.model.TableInput;
import org.tizen.dynamicanalyzer.nl.InformationViewLabels;
import org.tizen.dynamicanalyzer.swap.model.data.WebAppStartupData;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.range.RangeDataManager;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableDataFormat;
@Override
public void widgetSelected(SelectionEvent e) {
AnalyzerManager.getCurrentPage().updateView(
- new DAViewData(ScreenshotTabComposite.tabID, null));
+ new DAViewData(TimelineTableView.tabID, null));
GridItem[] sels = table.getSelection();
if (sels.length > 0) {
table.setFocusItem(sels[0]);
import org.tizen.dynamicanalyzer.swap.model.data.LogData;
import org.tizen.dynamicanalyzer.ui.file.FilePage;
import org.tizen.dynamicanalyzer.ui.opengl.GLPage;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.range.RangePage;
import org.tizen.dynamicanalyzer.ui.summary.SummaryPage;
import org.tizen.dynamicanalyzer.ui.timeline.calltrace.FunctionEntryDBTable;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.userinterface.UIPage;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableDataFormat;
@Override
public void widgetSelected(SelectionEvent e) {
AnalyzerManager.getCurrentPage().updateView(
- new DAViewData(ScreenshotTabComposite.tabID, null));
+ new DAViewData(TimelineTableView.tabID, null));
GridItem[] sels = table.getSelection();
if (sels.length <= 0) {
return;
import org.tizen.dynamicanalyzer.project.ImageInfo;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.util.Logger;
public class ImageViewer extends Composite {
private void widgetSelected(long time) {
AnalyzerManager.getCurrentPage().updateView(
- new DASelectionData(ScreenshotTabComposite.imageViewerID, time, time, null, null));
+ new DASelectionData(TimelineTableView.imageViewerID, time, time, null, null));
}
private void leftArrowAction() {
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.swap.model.data.LogData;
import org.tizen.dynamicanalyzer.ui.opengl.GLPage;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineChartManager;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableDataFormat;
// TODO : erase this. i think this is unnecessary. useless.
DASelectionData selData = new DASelectionData(
- ScreenshotTabComposite.screenshotViewID, selStartTime, Toolbar.INSTANCE
+ TimelineTableView.screenshotViewID, selStartTime, Toolbar.INSTANCE
.getTime(), null, latestButton);
AnalyzerManager.getCurrentPage().updateView(selData);
setLatestMode(false);
long selStartTime = selData.getStartTime();
- if (selData.getViewID().equals(ScreenshotTabComposite.imageViewerID)) {
+ if (selData.getViewID().equals(TimelineTableView.imageViewerID)) {
if (selStartTime < 0) {
selStartTime = 0;
}
import org.tizen.dynamicanalyzer.ui.interactive.chart.InteractiveChartView;
import org.tizen.dynamicanalyzer.ui.interactive.data.InteractiveDataManager;
import org.tizen.dynamicanalyzer.ui.interactive.table.InteractiveTableView;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.timeline.calltrace.CallTraceView;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
CallTraceView apiListView = new CallTraceView(rightForm, SWT.NONE);
addView(apiListView);
- ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm,
+ TimelineTableView tabView = new TimelineTableView(rightForm,
SWT.NONE, InteractivePage.pageID);
- tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
- new String[] { InteractivePage.chartViewID });
- tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
- new String[] { InteractivePage.listViewID });
+// tabView.setObservingViews(TimelineTableView.screenshotViewID,
+// new String[] { InteractivePage.chartViewID });
+// tabView.setObservingViews(TimelineTableView.screenshotViewID,
+// new String[] { InteractivePage.listViewID });
addView(tabView);
rightForm.setWeights(new int[] { 50, 50 });
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.ui.kernel.data.KernelDataManager;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
KernelStatisticInfoView statInfo = new KernelStatisticInfoView(rightForm, SWT.NONE);
addView(statInfo);
- ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm, SWT.NONE,
+ TimelineTableView tabView = new TimelineTableView(rightForm, SWT.NONE,
KernelPage.pageID);
- tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
- new String[] { KernelPage.listViewID });
- tabView.setObservingViews(ScreenshotTabComposite.callstackViewID,
- new String[] { KernelPage.listViewID });
+// tabView.setObservingViews(TimelineTableView.screenshotViewID,
+// new String[] { KernelPage.listViewID });
+// tabView.setObservingViews(TimelineTableView.callstackViewID,
+// new String[] { KernelPage.listViewID });
addView(tabView);
rightForm.setWeights(new int[] { 50, 50 });
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.ui.memory.data.MemoryDataManager;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.ui.network.data.NetworkDataManager;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
SWT.NONE);
addView(detailInfo);
- ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm,
+ TimelineTableView tabView = new TimelineTableView(rightForm,
SWT.NONE, NetworkPage.pageID);
- tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
- new String[] { NetworkPage.listViewID });
- tabView.setObservingViews(ScreenshotTabComposite.callstackViewID,
- new String[] { NetworkPage.listViewID });
+// tabView.setObservingViews(TimelineTableView.screenshotViewID,
+// new String[] { NetworkPage.listViewID });
+// tabView.setObservingViews(TimelineTableView.callstackViewID,
+// new String[] { NetworkPage.listViewID });
addView(tabView);
rightForm.setWeights(new int[] { 50, 50 });
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
import org.tizen.dynamicanalyzer.ui.opengl.table.state.GLRedundantTableView;
import org.tizen.dynamicanalyzer.ui.opengl.table.state.GLStatisticsTableView;
import org.tizen.dynamicanalyzer.ui.opengl.table.state.GLTextureTableView;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.widgets.DAAdvancedTabComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
GLDetailsView detailsView = new GLDetailsView(rightForm, SWT.NONE);
addView(detailsView);
- ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm, SWT.NONE,
+ TimelineTableView tabView = new TimelineTableView(rightForm, SWT.NONE,
GLPage.pageID);
- tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
- new String[] { GLPage.apiListViewID });
- tabView.setObservingViews(ScreenshotTabComposite.callstackViewID,
- new String[] { GLPage.apiListViewID });
+// tabView.setObservingViews(TimelineTableView.screenshotViewID,
+// new String[] { GLPage.apiListViewID });
+// tabView.setObservingViews(TimelineTableView.callstackViewID,
+// new String[] { GLPage.apiListViewID });
addView(tabView);
rightForm.setWeights(new int[] { 50, 50 });
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
import org.eclipse.swt.widgets.Composite;
import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
addView(leakView);
// INFO_VIEW_INDEX = 2;
- ScreenshotTabComposite tabView = new ScreenshotTabComposite(upperForm,
+ TimelineTableView tabView = new TimelineTableView(upperForm,
SWT.NONE, RangePage.pageID);
- tabView.setObservingViews(ScreenshotTabComposite.callstackViewID,
- new String[] { RangePage.failedListViewID,
- RangePage.leakViewID, RangePage.warningListViewID });
+// tabView.setObservingViews(TimelineTableView.callstackViewID,
+// new String[] { RangePage.failedListViewID,
+// RangePage.leakViewID, RangePage.warningListViewID });
addView(tabView);
upperForm.setWeights(new int[] { 37, 40, 23 });
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
--- /dev/null
+package org.tizen.dynamicanalyzer.ui.searchbar;\r
+\r
+import org.eclipse.swt.layout.FillLayout;\r
+import org.eclipse.swt.widgets.Composite;\r
+import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;\r
+\r
+public class SearchBarView extends DAViewComposite {\r
+\r
+ public SearchBarView(Composite parent, int style) {\r
+ super(parent, style, false);\r
+ this.setLayout(new FillLayout());\r
+ }\r
+\r
+}\r
import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.summary.failed.FailedApiListView;
import org.tizen.dynamicanalyzer.ui.summary.leaks.LeakView;
import org.tizen.dynamicanalyzer.ui.summary.profiling.FunctionUsageProfiler;
import org.tizen.dynamicanalyzer.ui.summary.profiling.FunctionUsageProfilingView;
import org.tizen.dynamicanalyzer.ui.summary.warning.WarningDetailView;
import org.tizen.dynamicanalyzer.ui.summary.warning.WarningListView;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.thread.chart.ThreadChartView;
import org.tizen.dynamicanalyzer.ui.thread.data.ThreadDataManager;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
ThreadDetailInfoView detailInfo = new ThreadDetailInfoView(rightForm, SWT.NONE);
addView(detailInfo);
- ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm, SWT.NONE,
+ TimelineTableView tabView = new TimelineTableView(rightForm, SWT.NONE,
ThreadPage.pageID);
- tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
- new String[] { ThreadPage.listViewID });
- tabView.setObservingViews(ScreenshotTabComposite.callstackViewID,
- new String[] { ThreadPage.listViewID });
+// tabView.setObservingViews(TimelineTableView.screenshotViewID,
+// new String[] { ThreadPage.listViewID });
+// tabView.setObservingViews(TimelineTableView.callstackViewID,
+// new String[] { ThreadPage.listViewID });
addView(tabView);
rightForm.setWeights(new int[] { 50, 50 });
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.ui.interactive.data.InteractiveDataManager;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.searchbar.SearchBarView;
import org.tizen.dynamicanalyzer.ui.timeline.calltrace.CallTraceDataManager;
import org.tizen.dynamicanalyzer.ui.timeline.calltrace.CallTraceView;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineChartManager;
-import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineView;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineChartView;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.toolbar.replay.data.ReplayDataManager;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
public class TimelinePage extends DAPageComposite {
public static final String pageID = TimelinePage.class.getName();
- public static final String timelineViewID = TimelineView.class.getName();
+ public static final String timelineViewID = TimelineChartView.class.getName();
public static final String calltraceViewID = CallTraceView.class.getName();
SashForm baseForm;
baseForm = new SashForm(this, SWT.VERTICAL);
baseForm.setLayout(new FillLayout());
baseForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
- ((FillLayout) getLayout()).marginHeight = 15;
- ((FillLayout) getLayout()).marginWidth = 5;
+ ((FillLayout) getLayout()).marginHeight = 0;
+ ((FillLayout) getLayout()).marginWidth = 0;
- leftForm = new SashForm(baseForm, SWT.HORIZONTAL);
+ leftForm = new SashForm(baseForm, SWT.VERTICAL);
// index 0 : TIMELINE_INDEX
- TimelineView timelineComp = new TimelineView(leftForm, SWT.NONE);
- addView(timelineComp);
+ TimelineChartView timelineChartView = new TimelineChartView(leftForm, SWT.NONE);
+ addView(timelineChartView);
- rightForm = new SashForm(leftForm, SWT.VERTICAL);
+ rightForm = new SashForm(leftForm, SWT.HORIZONTAL);
- // index 2 : APILIST_INDEX
- CallTraceView apiListView = new CallTraceView(rightForm, SWT.NONE);
- addView(apiListView);
// index 1 : INFO_INDEX
- ScreenshotTabComposite tabView = new ScreenshotTabComposite(rightForm, SWT.NONE,
+ TimelineTableView timelineTableView = new TimelineTableView(rightForm, SWT.NONE,
TimelinePage.pageID);
- tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID,
- new String[] { TimelinePage.timelineViewID });
- tabView.setObservingViews(ScreenshotTabComposite.callstackViewID,
- new String[] { TimelinePage.calltraceViewID });
- addView(tabView);
+// tabView.setObservingViews(TimelineTableView.screenshotViewID,
+// new String[] { TimelinePage.timelineViewID });
+// tabView.setObservingViews(TimelineTableView.callstackViewID,
+// new String[] { TimelinePage.calltraceViewID });
+ addView(timelineTableView);
+
+ SearchBarView searchBarView = new SearchBarView(leftForm, SWT.NONE);
+ addView(searchBarView);
- leftForm.setWeights(new int[] { 75, 25 });
- rightForm.setWeights(new int[] { 50, 50 });
+ leftForm.setWeights(new int[] { 60, 30, 10 });
leftForm.setSashWidth(AnalyzerConstants.SASH_WIDTH);
rightForm.setSashWidth(AnalyzerConstants.SASH_WIDTH);
}
@Override
- protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
- wrate = (wrate > 100) ? 100 : wrate;
- hrate = (hrate > 100) ? 100 : hrate;
-
- if ((wrate > (100 - 37)) || hrate > 100) {
- return;
- }
-
- leftForm.setWeights(new int[] { 100 - wrate, wrate });
- rightForm.setWeights(new int[] { 100 - hrate, hrate });
+ protected void onResized(int width, int height) { //TODO: need to modify
+// int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+// int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
+// wrate = (wrate > 100) ? 100 : wrate;
+// hrate = (hrate > 100) ? 100 : hrate;
+//
+// if ((wrate > (100 - 37)) || hrate > 100) {
+// return;
+// }
+//
+// leftForm.setWeights(new int[] { 100 - wrate, wrate });
+// rightForm.setWeights(new int[] { 100 - hrate, hrate });
}
@Override
import org.tizen.dynamicanalyzer.ui.info.callstack.CallstackView;
import org.tizen.dynamicanalyzer.ui.interactive.InteractivePage;
import org.tizen.dynamicanalyzer.ui.interactive.data.InteractiveUIData;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
import org.tizen.dynamicanalyzer.ui.timeline.TimelinePage;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableDataFormat;
import org.tizen.dynamicanalyzer.ui.widgets.table.DAWindowingTableComposite;
import org.tizen.dynamicanalyzer.util.Logger;
private WebCallTraceTable webTable = null;
public CallTraceView(Composite parent, int style) {
- super(parent, style, true);
+ super(parent, style, false);
this.setLayout(new FillLayout());
setTitle(TimelinePageLabels.CALL_TRACE_VIEW_TITLE);
if (stackLayout.topControl == nativeTable) {
if (selData.getViewID().equals(TimelinePage.timelineViewID)) {
DATabComposite tabView = (DATabComposite) AnalyzerUtil.getView(
- TimelinePage.pageID, ScreenshotTabComposite.tabID);
+ TimelinePage.pageID, TimelineTableView.tabID);
if (tabView == null) {
Logger.warning("Tabview does not exist.");
} else {
import org.tizen.dynamicanalyzer.widgets.da.view.DAViewData;
import org.tizen.dynamicanalyzer.widgets.timeline.DATimeline;
-public class TimelineView extends DAViewComposite {
+public class TimelineChartView extends DAViewComposite {
private final DAChartBoard chartBoard;
private final TimelineChartManager timelineChartManager = TimelineChartManager
private final LifecycleLogParser lifecycleLogParser = LifecycleLogParser
.getInstance();
- public TimelineView(Composite parent, int style) {
+ public TimelineChartView(Composite parent, int style) {
super(parent, style, false);
setLayout(new FillLayout());
*
*/
-package org.tizen.dynamicanalyzer.ui.page;
+package org.tizen.dynamicanalyzer.ui.timeline.common;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.tizen.dynamicanalyzer.ui.info.screenshot.ImageViewer;
import org.tizen.dynamicanalyzer.ui.info.screenshot.ScreenshotView;
import org.tizen.dynamicanalyzer.ui.timeline.TimelinePage;
+import org.tizen.dynamicanalyzer.ui.timeline.calltrace.CallTraceView;
+import org.tizen.dynamicanalyzer.ui.timeline.dlog.DlogView;
import org.tizen.dynamicanalyzer.widgets.da.view.DABaseComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
-public class ScreenshotTabComposite extends DATabComposite {
- public static final String tabID = ScreenshotTabComposite.class.getName();
+public class TimelineTableView extends DATabComposite {
+ public static final String tabID = TimelineTableView.class.getName();
public static final String screenshotViewID = ScreenshotView.class.getName();
public static final String callstackViewID = CallstackView.class.getName();
public static final String imageViewerID = ImageViewer.class.getName();
ID = tabID;
}
- public ScreenshotTabComposite(Composite parent, int style, String pageID) {
+ public TimelineTableView(Composite parent, int style, String pageID) {
super(parent, style, false);
- ScreenshotView screenshotView = new ScreenshotView(getContentComposite(),
- SWT.NONE, false, pageID);
- addView(screenshotView, false);
+// DlogView dlogView = new DlogView(getContentComposite(),
+// SWT.NONE);
+// addView(dlogView);
+
+ CallTraceView callTraceView = new CallTraceView(getContentComposite(),
+ SWT.NONE);
+ addView(callTraceView, false);
CallstackView callstack = new CallstackView(getContentComposite(),
SWT.NONE);
}
}
- public void setObservingViews(String viewid, String[] observingIDs) {
- DABaseComposite view = getView(viewid);
- if (view instanceof ScreenshotView) {
- ((ScreenshotView) view).setObservingViews(observingIDs);
- } else if (view instanceof CallstackView) {
- ((CallstackView) view).setObservingViews(observingIDs);
- } else if (view instanceof AppStartupView) {
- ((AppStartupView) view).setObservingViews(observingIDs);
- } else {
- // do nothing
- }
- }
+// public void setObservingViews(String viewid, String[] observingIDs) {
+// DABaseComposite view = getView(viewid);
+// if (view instanceof ScreenshotView) {
+// ((ScreenshotView) view).setObservingViews(observingIDs);
+// } else if (view instanceof CallstackView) {
+// ((CallstackView) view).setObservingViews(observingIDs);
+// } else if (view instanceof AppStartupView) {
+// ((AppStartupView) view).setObservingViews(observingIDs);
+// } else {
+// // do nothing
+// }
+// }
}
--- /dev/null
+package org.tizen.dynamicanalyzer.ui.timeline.dlog;\r
+\r
+import org.eclipse.swt.layout.FillLayout;\r
+import org.eclipse.swt.widgets.Composite;\r
+import org.tizen.dynamicanalyzer.nl.InformationViewLabels;\r
+import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;\r
+\r
+public class DlogView extends DAViewComposite {\r
+\r
+ public DlogView(Composite parent, int style) {\r
+ super(parent, style, false);\r
+ this.setLayout(new FillLayout());\r
+ \r
+ setTitle(InformationViewLabels.DLOG_VIEW_TITLE);\r
+ }\r
+\r
+}\r
import org.tizen.dynamicanalyzer.ui.range.RangeDataManager;
import org.tizen.dynamicanalyzer.ui.timeline.TimelinePage;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineConstants;
-import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineView;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineChartView;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableDataFormat;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableHeaderRenderer;
@Override
public void handleClickEvent(DACustomButton button) {
RangeDataManager rangeDataManager = RangeDataManager.getInstance();
- TimelineView tview = (TimelineView) AnalyzerManager
+ TimelineChartView tview = (TimelineChartView) AnalyzerManager
.getCurrentPage().getView(TimelinePage.timelineViewID);
Double startTime = (Double) uiEventListTable.getTable().getData(
import org.tizen.dynamicanalyzer.widgets.da.base.DAButton;
import org.tizen.dynamicanalyzer.widgets.da.base.DAMessageBox;
import org.tizen.dynamicanalyzer.widgets.da.view.DABaseComposite;
-import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
public class SettingDialog extends DAMessageBox {
private static boolean opened = false;
- private DACustomButton cancelButton = null;
private DACustomButton okButton = null;
+ private DACustomButton cancelButton = null;
private boolean isApply = false;
private SettingDialogTemplatePage templatesPage = null;
+ private SettingDialogOptionPage optionPage = null;
+ private DATabComposite tabView = null;
private Composite buttonContentsComp = null;
public SettingDialog(Shell parentShell) {
super(parentShell);
}
- private DACustomButtonClickEventListener cancelButtonListener = new DACustomButtonClickEventListener() {
+ private DACustomButtonClickEventListener okButtonListener = new DACustomButtonClickEventListener() {
@Override
public void handleClickEvent(DACustomButton button) {
+ if (optionPage.isValidInputValue()) {
isApply = true;
doApply();
doRun();
shell.close(); // close dialog
+ } else {
+ doWarningMessage();
+ }
}
};
- private DACustomButtonClickEventListener okButtonListener = new DACustomButtonClickEventListener() {
+ private DACustomButtonClickEventListener cancelButtonListener = new DACustomButtonClickEventListener() {
@Override
public void handleClickEvent(DACustomButton button) {
+// if (optionPage.isValidInputValue()) {
isApply = true;
doRevert();
doRun();
shell.close(); // close dialog
+// } else {
+// doWarningMessage();
+// }
+
}
};
private void doApply() {
+ Composite selectedComposite = tabView.getTopComposite();
+ if (!(selectedComposite instanceof SettingDialogBinarySettingsPage)) {
if (DAState.isStartable()) {
// add & remove tab view page
UIAction.setPageBySetting();
// write setting data
SettingDataManager.INSTANCE.applySettingData();
}
+ } else {
+ // binary setting page
+ SettingDialogBinarySettingsPage page = (SettingDialogBinarySettingsPage) selectedComposite;
+ page.doApply();
+ }
+
}
private void doRevert() {
}
private void doRun() {
+ Composite selectedComposite = tabView.getTopComposite();
+ if (!(selectedComposite instanceof SettingDialogBinarySettingsPage)) {
if (DAState.isStartable()) {
CommonAction.configure();
}
+ }
}
private void doWarningMessage() {
return false;
}
IDECommunicator.setOpenWelcomeDlg(true);
- shell.setSize(610, 520);
+ shell.setSize(631, 550);
shell.setLayout(new FormLayout());
shell.setText(AnalyzerLabels.SETTING_TITLE);
shell.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
-
// content composite
Composite contentsComp = new Composite(shell, SWT.NONE);
FormLayout compLayout = new FormLayout();
compData.right = new FormAttachment(100, 0);
compData.bottom = new FormAttachment(100, -49);
contentsComp.setLayoutData(compData);
-
- templatesPage = new SettingDialogTemplatePage(contentsComp, SWT.NONE);
+
+ // check exist setting file
+ if (SettingDataManager.INSTANCE.isParsingSuccess() == false) {
+ Label label = new Label(contentsComp, SWT.NONE);
+ label.setForeground(ColorResources.DEFAULT_FONT_COLOR);
+ label.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
+ label.setFont(FontResources.SETTING_TITLE_FONT);
+ label.setText(ConfigureLabels.SETTING_WARNING_MESSAGE_FILE_NOT_FOUND);
+
+ shell.addDisposeListener(new DisposeListener() {
+
+ @Override
+ public void widgetDisposed(DisposeEvent e) {
+ opened = false;
+ ShortCutManager.getInstance().setEnabled(!opened);
+ }
+ });
+ opened = true;
+ ShortCutManager.getInstance().setEnabled(!opened);
+
+ shell.open();
+ return true;
+ }
+
+ // tab view
+ tabView = new DATabComposite(contentsComp, SWT.DOUBLE_BUFFERED);
+ tabView.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
+ tabView.setTabWidth(120);
+ compData = new FormData();
+ compData.top = new FormAttachment(0, 0);
+ compData.left = new FormAttachment(0, 0);
+ compData.right = new FormAttachment(100, 0);
+ compData.bottom = new FormAttachment(100, 0);
+ tabView.setLayoutData(compData);
+
+ templatesPage = new SettingDialogTemplatePage(tabView.getContentComposite(), SWT.NONE);
+ tabView.addView(templatesPage, false);
+
+ optionPage = new SettingDialogOptionPage(tabView.getContentComposite(), SWT.NONE);
+ tabView.addView(optionPage, false);
+
+ // check platform SDK (show binary setting page)
+ if (AnalyzerManager.isPlatformSDK()) {
+ createBinarySettingPage();
+ }
// button composite
buttonContentsComp = new Composite(shell, SWT.NONE);
}
});
- okButton = new DAButton(buttonContentsComp, SWT.NONE);
- okButton.addClickListener(okButtonListener);
- okButton.setText(WidgetLabels.OK);
- okButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT);
+ optionPage.addListener(SWT.Hide, new Listener() {
+
+ @Override
+ public void handleEvent(Event event) {
+ Logger.debug("options page hide");
+ if (!optionPage.isValidInputValue()) {
+ doWarningMessage();
+ optionPage.revertInputValue();
+ }
+ // update total overhead range
+ templatesPage.updateTotalOverheadRange();
+ }
+ });
+
+ cancelButton = new DAButton(buttonContentsComp, SWT.NONE);
+ cancelButton.addClickListener(cancelButtonListener);
+ cancelButton.setText(WidgetLabels.CANCEL);
+ cancelButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT);
FormData buttonData = new FormData();
buttonData.right = new FormAttachment(100, -9);
buttonData.top = new FormAttachment(0, 11);
buttonData.width = 100;
buttonData.height = 28;
- okButton.setLayoutData(buttonData);
+ cancelButton.setLayoutData(buttonData);
- cancelButton = new DAButton(buttonContentsComp, SWT.NONE);
- cancelButton.addClickListener(cancelButtonListener);
- cancelButton.setText(WidgetLabels.CANCEL);
- cancelButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT);
+ okButton = new DAButton(buttonContentsComp, SWT.NONE);
+ okButton.addClickListener(okButtonListener);
+ okButton.setText(WidgetLabels.OK);
+ okButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT);
buttonData = new FormData();
- buttonData.right = new FormAttachment(okButton, -8);
+ buttonData.right = new FormAttachment(cancelButton, -8);
buttonData.top = new FormAttachment(0, 11);
buttonData.width = 100;
buttonData.height = 28;
- cancelButton.setLayoutData(buttonData);
+ okButton.setLayoutData(buttonData);
shell.addDisposeListener(new DisposeListener() {
return true;
}
+ private void createBinarySettingPage() {
+ DABaseComposite binarySettings = new SettingDialogBinarySettingsPage(
+ tabView.getContentComposite(), SWT.NONE);
+ tabView.addView(binarySettings, false);
+
+ // binarySettings tab is selected, the close button will be shown.
+ // ok and cancel button is hidden
+ binarySettings.addListener(SWT.Show, new Listener() {
+
+ @Override
+ public void handleEvent(Event event) {
+ Logger.debug("binary settings show");
+ cancelButton.setText(WidgetLabels.CLOSE);
+ FormData data = (FormData) okButton.getLayoutData();
+ data.width = 0;
+
+ buttonContentsComp.layout();
+ }
+ });
+
+ binarySettings.addListener(SWT.Hide, new Listener() {
+
+ @Override
+ public void handleEvent(Event event) {
+ Logger.debug("binary settings hide");
+ cancelButton.setText(WidgetLabels.CANCEL);
+ FormData data = (FormData) okButton.getLayoutData();
+ data.width = 100;
+
+ buttonContentsComp.layout();
+ }
+ });
+ }
+
private void notifyAutoRun() {
synchronized (IDECommunicator.getWaitingWelcomeDlg()) {
IDECommunicator.setOpenWelcomeDlg(false);
// template description widget
private Composite descriptionComp = null;
- private Label selectedLabel = null;
private Label templateIcon = null;
private Label templateNameLabel = null;
private Label templateDescriptionLabel = null;
-
+
+ // overhead widget
+ private Label overheadLabel = null;
+ private Label totalOverheadRange = null;
+ private Label overheadDescriptionLabel = null;
+
private DACustomButton detailButton = null;
private DACustomButtonClickEventListener detailButtonListener = new DACustomButtonClickEventListener() {
public SettingDialogTemplatePage(Composite parent, int style) {
super(parent, style);
+ setTitle(AnalyzerLabels.COOLBAR_AREA_CONFIGURATION_FEATURES);
this.setLayout(new FormLayout());
this.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
+ // Title
+ Label title = new Label(this, SWT.TRANSPARENT);
+ title.setText(ConfigureLabels.SETTING_DIALOG_DESCRIPTION);
+ title.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR);
+ title.setForeground(ColorResources.DEFAULT_FONT_COLOR);
+ title.setFont(FontResources.SETTING_TITLE_FONT);
+
+ FormData data = new FormData();
+ data.top = new FormAttachment(0, 14);
+ data.left = new FormAttachment(0, 8);
+ data.height = 18;
+ title.setLayoutData(data);
+
createTargetComposite();
createTemplateDescriptionComposite();
createTemplateTitleComposite();
}
private void initTemplateDescriptionWidget() {
- if (null != selectedLabel) {
- selectedLabel.dispose();
- selectedLabel = null;
- }
-
if (null != templateIcon) {
templateIcon.dispose();
templateIcon = null;
templateDescriptionLabel = null;
}
+ if (null != overheadLabel) {
+ overheadLabel.dispose();
+ overheadLabel = null;
+ }
+
+ if (null != totalOverheadRange) {
+ totalOverheadRange.dispose();
+ totalOverheadRange = null;
+ }
+
+ if (null != overheadDescriptionLabel) {
+ overheadDescriptionLabel.dispose();
+ overheadDescriptionLabel = null;
+ }
+
if (null != detailButton) {
detailButton.dispose();
detailButton = null;
targetComp = new Composite(this, SWT.NONE);
targetComp.setLayout(new FormLayout());
FormData compData = new FormData();
- compData.top = new FormAttachment(0, 0);
- compData.left = new FormAttachment(0, 0);
- compData.width = 100;
- compData.height = 450;
+ compData.top = new FormAttachment(0, 41);
+ compData.left = new FormAttachment(0, 6);
+ compData.width = 86;
+ compData.height = 403;
targetComp.setLayoutData(compData);
targetComp.setBackground(ColorResources.WHITE);
Rectangle r = new Rectangle(0, 0, rect.width - 1, rect.height - 1);
e.gc.setForeground(ColorResources.SETTING_STROKE);
e.gc.drawRectangle(r);
- e.gc.drawLine(0, 40, rect.width - 1, 40);
+ e.gc.drawLine(0, 22, rect.width - 1, 22);
e.gc.setBackground(ColorResources.SETTING_TITLE_BACKGROUND);
- e.gc.fillRectangle(1, 1, 100, 40);
+ e.gc.fillRectangle(1, 1, 84, 21);
}
});
}
initTemplateDescriptionWidget();
if (null == descriptionComp) {
-
// Composite
descriptionComp = new Composite(this, SWT.NONE);
descriptionComp.setLayout(new FormLayout());
FormData compData = new FormData();
- compData.top = new FormAttachment(0, 41);
- compData.left = new FormAttachment(0, 428);
- compData.width = 324;
- compData.height = 403;
+ compData.top = new FormAttachment(0, 265);
+ compData.left = new FormAttachment(0, 98);
+ compData.width = 524;
+ compData.height = 179;
descriptionComp.setLayoutData(compData);
descriptionComp.setBackground(ColorResources.WHITE);
e.gc.setForeground(ColorResources.SETTING_STROKE);
e.gc.drawRectangle(r);
e.gc.drawLine(0, 117, rect.width - 1, 117);
+
+ // overhead
+ e.gc.drawImage(ImageResources.OVERHEAD_BAR_BG, 90, 130);
+ e.gc.drawImage(ImageResources.OVERHEAD_BAR, 91, 133);
}
});
}
- // label
- selectedLabel = new Label(descriptionComp, SWT.TRANSPARENT);
- FormData selectedLabelData = new FormData();
- selectedLabelData.top = new FormAttachment(0, 4);
- selectedLabelData.left = new FormAttachment(0, 1);
- selectedLabelData.height = 18;
- selectedLabelData.width = 84;
- selectedLabel.setLayoutData(selectedLabelData);
- selectedLabel.setText(ConfigureLabels.SETTING_DIALOG_SELECTED_TITLE);
- selectedLabel.setBackground(ColorResources.SETTING_TITLE_BACKGROUND);
- selectedLabel.setForeground(ColorResources.DEFAULT_FONT_COLOR);
- selectedLabel.setFont(FontResources.SETTING_TITLE_FONT);
- selectedLabel.setAlignment(SWT.CENTER);
-
TargetData target = SettingDataManager.INSTANCE.getTarget(null);
TemplateData template = target.getSelectedTemplate().getData();
templateDescriptionLabel.setForeground(ColorResources.SETTING_COLOR);
templateDescriptionLabel.setFont(FontResources.SETTING_DESCRIPTION_FONT);
+ // label : overhead
+ overheadLabel = new Label(descriptionComp, SWT.TRANSPARENT);
+ data = new FormData();
+ data.top = new FormAttachment(0, 130);
+ data.left = new FormAttachment(0, 9);
+ data.width = 80;
+ data.height = 20;
+ overheadLabel.setLayoutData(data);
+ overheadLabel.setText(ConfigureLabels.SETTING_DIALOG_OVERHEAD);
+ overheadLabel.setBackground(ColorResources.WHITE);
+ overheadLabel.setForeground(ColorResources.DEFAULT_FONT_COLOR);
+ overheadLabel.setFont(FontResources.SETTING_TITLE_FONT);
+
+ // update total overhead range
+ updateTotalOverheadRange();
+
+ // label : overhead description
+ overheadDescriptionLabel = new Label(descriptionComp, SWT.WRAP | SWT.READ_ONLY);
+ data = new FormData();
+ data.top = new FormAttachment(0, 153);
+ data.left = new FormAttachment(0, 90);
+ data.width = 350;
+ data.height = 20;
+ overheadDescriptionLabel.setLayoutData(data);
+ overheadDescriptionLabel.setText(ConfigureLabels.SETTING_DIALOG_OVERHEAD_DESCRIPTION);
+ overheadDescriptionLabel.setBackground(ColorResources.WHITE);
+ overheadDescriptionLabel.setForeground(ColorResources.SETTING_COLOR);
+ overheadDescriptionLabel.setFont(FontResources.SETTING_DESCRIPTION_FONT);
+
detailButton = new DAButton(descriptionComp, SWT.NONE);
detailButton.addClickListener(detailButtonListener);
detailButton.setText(WidgetLabels.DETAIL);
descriptionComp.layout(true);
}
+ public void updateTotalOverheadRange() {
+ SettingDataManager setting = SettingDataManager.INSTANCE;
+ TargetData target = setting.getTarget(null);
+
+ if (null != totalOverheadRange) {
+ totalOverheadRange.dispose();
+ totalOverheadRange = null;
+ }
+
+ int totalOverheadRangeCount = setting.getTotalOverheadRangeCount();
+ int width = 200 / totalOverheadRangeCount;
+ int totalOverheadRangeValue = setting.getSelectedOverheadLevel(target.getTargetName());
+ int startPosition = 91 + (width * totalOverheadRangeValue);
+
+ totalOverheadRange = new Label(descriptionComp, SWT.TRANSPARENT);
+ FormData data = new FormData();
+ data.top = new FormAttachment(0, 133);
+ data.left = new FormAttachment(0, startPosition);
+ data.width = width * (totalOverheadRangeCount - totalOverheadRangeValue);
+ data.height = 10;
+ totalOverheadRange.setLayoutData(data);
+ totalOverheadRange.setBackground(ColorResources.SETTING_OVERHEAD_BACKGROUND);
+
+ descriptionComp.layout(true);
+ }
+
public void createTemplateTitleComposite() {
initTemplateTitleWidget();
FormData compData = new FormData();
compData.top = new FormAttachment(0, 41);
compData.left = new FormAttachment(0, 98);
- compData.width = 324;
- compData.height = 403;
+ compData.width = 524;
+ compData.height = 218;
templateComp.setLayoutData(compData);
templateComp.setBackground(ColorResources.WHITE);
data.height = 18;
data.width = 502;
templateLabel.setLayoutData(data);
- templateLabel.setText(ConfigureLabels.SETTING_DIALOG_FEATURELIST_TITLE);
+ templateLabel.setText(ConfigureLabels.SETTING_DIALOG_TEMPLATE_TITLE);
templateLabel.setBackground(ColorResources.SETTING_TITLE_BACKGROUND);
templateLabel.setForeground(ColorResources.DEFAULT_FONT_COLOR);
templateLabel.setFont(FontResources.SETTING_TITLE_FONT);
import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.userinterface.control.UIControlListView;
import org.tizen.dynamicanalyzer.ui.userinterface.profiling.UIFunctionProfilingView;
import org.tizen.dynamicanalyzer.ui.userinterface.scene.UISceneListView;
UIFunctionProfilingView bottomLeftFirst = new UIFunctionProfilingView(bottomForm, SWT.NONE);
addView(bottomLeftFirst);
- ScreenshotTabComposite tabView = new ScreenshotTabComposite(upperForm, SWT.NONE,
+ TimelineTableView tabView = new TimelineTableView(upperForm, SWT.NONE,
UIPage.pageID);
- tabView.setObservingViews(ScreenshotTabComposite.screenshotViewID, new String[] {
- UIPage.sceneListViewID, UIPage.controlListViewID });
- tabView.setObservingViews(ScreenshotTabComposite.callstackViewID, new String[] {
- UIPage.sceneListViewID, UIPage.controlListViewID });
+// tabView.setObservingViews(TimelineTableView.screenshotViewID, new String[] {
+// UIPage.sceneListViewID, UIPage.controlListViewID });
+// tabView.setObservingViews(TimelineTableView.callstackViewID, new String[] {
+// UIPage.sceneListViewID, UIPage.controlListViewID });
addView(tabView);
bottomForm.setWeights(new int[] { 77, 23 });
@Override
protected void onResized(int width, int height) {
- int wrate = (int) (ScreenshotTabComposite.DEFAULT_WIDTH * 100 / width);
- int hrate = (int) (ScreenshotTabComposite.DEFAULT_HEIGHT * 100 / height);
+ int wrate = (int) (TimelineTableView.DEFAULT_WIDTH * 100 / width);
+ int hrate = (int) (TimelineTableView.DEFAULT_HEIGHT * 100 / height);
wrate = (wrate > 100) ? 100 : wrate;
hrate = (hrate > 100) ? 100 : hrate;
import org.tizen.dynamicanalyzer.project.Project;
import org.tizen.dynamicanalyzer.ui.info.screenshot.ScreenshotView;
import org.tizen.dynamicanalyzer.ui.page.BaseView;
-import org.tizen.dynamicanalyzer.ui.page.ScreenshotTabComposite;
-import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineView;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineChartView;
+import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.util.CommonUtil;
import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.util.WorkbenchUtil;
public class AnalyzerUtil {
// FIXME start
- private static TimelineView timelineComposite;
+ private static TimelineChartView timelineComposite;
- public static TimelineView getTimelineComposite() {
+ public static TimelineChartView getTimelineComposite() {
return timelineComposite;
}
- public static void setTimelineComposite(TimelineView timelineComposite) {
+ public static void setTimelineComposite(TimelineChartView timelineComposite) {
AnalyzerUtil.timelineComposite = timelineComposite;
}
}
public static boolean isLatestTraceMode(String pageID) {
- DATabComposite tabComp = (DATabComposite) AnalyzerUtil.getView(pageID, ScreenshotTabComposite.tabID);
+ DATabComposite tabComp = (DATabComposite) AnalyzerUtil.getView(pageID, TimelineTableView.tabID);
if (tabComp == null) {
Logger.warning("page [" + pageID + "] does not exist.");
return false;
}
- ScreenshotView screenshotView = (ScreenshotView) tabComp.getView(ScreenshotTabComposite.screenshotViewID);
+ ScreenshotView screenshotView = (ScreenshotView) tabComp.getView(TimelineTableView.screenshotViewID);
if (screenshotView == null) {
Logger.warning("screenshotView does not exist in page [" + pageID + "].");
return false;
}
public static void setLatestTraceMode(String pageID, boolean isOn) {
- DATabComposite tabComp = (DATabComposite) AnalyzerUtil.getView(pageID, ScreenshotTabComposite.tabID);
+ DATabComposite tabComp = (DATabComposite) AnalyzerUtil.getView(pageID, TimelineTableView.tabID);
if (tabComp == null) {
Logger.warning("page [" + pageID + "] does not exist.");
return;
}
- ScreenshotView screenshotView = (ScreenshotView) tabComp.getView(ScreenshotTabComposite.screenshotViewID);
+ ScreenshotView screenshotView = (ScreenshotView) tabComp.getView(TimelineTableView.screenshotViewID);
if (screenshotView == null) {
Logger.warning("screenshotView does not exist in page [" + pageID + "].");
return;