return isToplevel;\r
}\r
\r
+ public Composite getTopTable() {\r
+ return null;\r
+ }\r
+\r
@Override\r
public void updateView() {\r
for (Map.Entry<String, DABaseComposite> entry : childMap.entrySet()) {\r
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.ui.file.manager.FileDataManager;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
+import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;
public class FilePage extends DAPageComposite {
// page and view IDs
SashForm topForm;
SashForm bottomForm;
+ private DATabComposite fileAPITableView = null;
+ private DATabComposite fileDetailTableView = null;
+
public FilePage(Composite parent, int style) {
super(parent, style);
setTitle(AnalyzerLabels.COOLBAR_AREA_FILE);
bottomRightForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
bottomRightForm.setLayout(new FillLayout());
- DATabComposite fileAPITableView = new DATabComposite(bottomLeftForm, SWT.NONE, false, true);
+ fileAPITableView = new DATabComposite(bottomLeftForm, SWT.NONE, false, true);
{
FileApiListView fileApiListView = new FileApiListView(fileAPITableView.getContentComposite(), SWT.NONE);
fileAPITableView.addView(fileApiListView);
}
addView(fileAPITableView);
- DATabComposite fileDetailTableView = new DATabComposite(bottomRightForm, SWT.NONE, false, true);
+ fileDetailTableView = new DATabComposite(bottomRightForm, SWT.NONE, false, true);
{
FileDetailInfoView fileDetailInfoView = new FileDetailInfoView(fileDetailTableView.getContentComposite(), SWT.NONE);
fileDetailTableView.addView(fileDetailInfoView);
}
@Override
+ public Composite getTopTable() {
+ DAViewComposite view = (DAViewComposite)this.fileAPITableView.getTopComposite();
+ Composite comp = (Composite)view.getControl();
+ Logger.debug(comp.toString());
+ return comp;
+ }
+
+ @Override
protected void onResized(int width, int height) {
int hrate = (int) (TimelineTableView.DEFAULT_TABLE_VIEW_HEIGHT * 100 / height);
baseForm.setWeights(new int[] { 100 - hrate, hrate });
import org.tizen.dynamicanalyzer.ui.memory.data.HeapDataManager;
import org.tizen.dynamicanalyzer.ui.memory.data.MemoryDataManager;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
+import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;
public class MemoryPage extends DAPageComposite {
public static final String pageID = MemoryPage.class.getName();
SashForm bottomRightForm;
SashForm bottomLeftForm;
+ private DATabComposite memoryTabView = null;
+
MemoryChartView memoryChartView;
MemoryDetailsTableView memoryDetailsTableView;
MemoryStatisticsTableView memoryStatisticsTableView;
bottomRightForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
bottomRightForm.setLayout(new FillLayout());
- DATabComposite memoryTabView = new DATabComposite(bottomLeftForm, SWT.NONE, false, true);
+ memoryTabView = new DATabComposite(bottomLeftForm, SWT.NONE, false, true);
{
memoryDetailsTableView = new MemoryDetailsTableView(memoryTabView.getContentComposite(), SWT.NONE);
memoryTabView.addView(memoryDetailsTableView, false);
}
@Override
+ public Composite getTopTable() {
+ DAViewComposite view = (DAViewComposite)this.memoryTabView.getTopComposite();
+ Composite comp = (Composite)view.getControl();
+ Logger.debug(comp.toString());
+ return comp;
+ }
+
+ @Override
protected void onResized(int width, int height) {
int hrate = (int) (TimelineTableView.DEFAULT_TABLE_VIEW_HEIGHT * 100 / height);
baseForm.setWeights(new int[] { 100 - hrate, hrate });
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.ui.network.data.NetworkDataManager;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
+import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;
public class NetworkPage extends DAPageComposite {
public static final String pageID = NetworkPage.class.getName();
public static final String detailViewID = NetworkDetailView.class
.getName();
+ private DATabComposite networkAPITableView = null;
+
SashForm baseForm;
SashForm topForm;
SashForm bottomForm;
bottomRightForm.setForeground(ColorResources.WHITE);
bottomRightForm.setLayout(new FillLayout());
- DATabComposite networkAPITableView = new DATabComposite(bottomLeftForm, SWT.NONE, false, true);
+ networkAPITableView = new DATabComposite(bottomLeftForm, SWT.NONE, false, true);
{
NetworkAPIListView networkApiListView = new NetworkAPIListView(networkAPITableView.getContentComposite(), SWT.NONE);
networkAPITableView.addView(networkApiListView);
}
@Override
+ public Composite getTopTable() {
+ DAViewComposite view = (DAViewComposite)this.networkAPITableView.getTopComposite();
+ Composite comp = (Composite)view.getControl();
+ Logger.debug(comp.toString());
+ return comp;
+ }
+
+ @Override
protected void onResized(int width, int height) {
int hrate = (int) (TimelineTableView.DEFAULT_TABLE_VIEW_HEIGHT * 100 / height);
baseForm.setWeights(new int[] { 100 - hrate, hrate });
import org.tizen.dynamicanalyzer.ui.opengl.table.state.GLStatisticsTableView;
import org.tizen.dynamicanalyzer.ui.opengl.table.state.GLTextureTableView;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
+import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;
import org.tizen.dynamicanalyzer.resources.ColorResources;
public class GLPage extends DAPageComposite {
public static final int RIGHT_TAB_WIDTH = 97;
+ private DATabComposite glLeftTableView = null;
+ private DATabComposite glRightTableView = null;
+
SashForm baseForm;
SashForm topForm;
SashForm bottomForm;
addView(glChartView);
bottomForm = new SashForm(baseForm, SWT.HORIZONTAL);
- DATabComposite glLeftTableView = new DATabComposite(bottomForm, SWT.NONE, false, true);
+ glLeftTableView = new DATabComposite(bottomForm, SWT.NONE, false, true);
{
GLStatisticsTableView glStatisticsView = new GLStatisticsTableView(glLeftTableView.getContentComposite(), SWT.NONE);
glLeftTableView.addView(glStatisticsView);
}
addView(glLeftTableView);
- DATabComposite glRightTableView = new DATabComposite(bottomForm, SWT.NONE, false, true);
+ glRightTableView = new DATabComposite(bottomForm, SWT.NONE, false, true);
{
GLRedundantTableView glRedundantView = new GLRedundantTableView(glRightTableView.getContentComposite(), SWT.NONE);
glRightTableView.addView(glRedundantView);
}
@Override
+ public Composite getTopTable() {
+ DAViewComposite view = (DAViewComposite)this.glLeftTableView.getTopComposite();
+ Composite comp = (Composite)view.getControl();
+ Logger.debug(comp.toString());
+ return comp;
+ }
+
+ @Override
protected void onResized(int width, int height) {
int hrate = (int) (TimelineTableView.DEFAULT_TABLE_VIEW_HEIGHT * 100 / height);
baseForm.setWeights(new int[] { 100 - hrate, hrate });
return topComposite;
}
+ public DAPageComposite getTopPage() {
+ return getTopComposite();
+ }
+
@UIMethod
public void clear() {
tabView.clear();
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.util.Logger;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;
public class ThreadPage extends DAPageComposite {
public static final String pageID = ThreadPage.class.getName();
public static final String listViewID = ThreadAPIListView.class.getName();
public static final String detailViewID = ThreadDetailInfoView.class.getName();
+ private DATabComposite threadApiTableView = null;
+ private DATabComposite threadDetailTableView = null;
+
SashForm baseForm;
SashForm topForm;
SashForm bottomForm;
bottomRightForm.setForeground(ColorResources.TAB_SELECTED_COLOR_START);
bottomRightForm.setLayout(new FillLayout());
- DATabComposite threadApiTableView = new DATabComposite(bottomLeftForm, SWT.NONE, false, true);
+ threadApiTableView = new DATabComposite(bottomLeftForm, SWT.NONE, false, true);
{
ThreadAPIListView threadAPIListView = new ThreadAPIListView(threadApiTableView.getContentComposite(),
SWT.NONE);
}
addView(threadApiTableView);
- DATabComposite threadDetailTableView = new DATabComposite(bottomRightForm, SWT.NONE, false, true);
+ threadDetailTableView = new DATabComposite(bottomRightForm, SWT.NONE, false, true);
{
ThreadDetailInfoView threadDetailInfoView = new ThreadDetailInfoView(
threadDetailTableView.getContentComposite(), SWT.NONE);
}
@Override
+ public Composite getTopTable() {
+ DAViewComposite view = (DAViewComposite)this.threadApiTableView.getTopComposite();
+ Composite comp = (Composite)view.getControl();
+ Logger.debug(comp.toString());
+ return comp;
+ }
+
+ @Override
protected void onResized(int width, int height) {
int hrate = (int) (TimelineTableView.DEFAULT_TABLE_VIEW_HEIGHT * 100 / height);
baseForm.setWeights(new int[] { 100 - hrate, hrate });
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineTableView;
import org.tizen.dynamicanalyzer.ui.timeline.dlog.DLogDataManager;
import org.tizen.dynamicanalyzer.ui.toolbar.replay.data.ReplayDataManager;
+import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.widgets.da.view.DAPageComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
+import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;
public class TimelinePage extends DAPageComposite {
public static final String pageID = TimelinePage.class.getName();
DataManagerRegistry.registerPageDataManager(SummaryDataManager.getInstance());
}
+ @Override
+ public Composite getTopTable() {
+ DAViewComposite view= (DAViewComposite)this.timelineTableView.getTopComposite();
+ Composite comp = (Composite)view.getControl();
+ Logger.debug(comp.toString());
+ return comp;
+ }
+
public TimelineChartView getTimelineChartView() {
return timelineChartView;
}
import org.tizen.dynamicanalyzer.ui.toolbar.opentrace.OpenTraceDialog;
import org.tizen.dynamicanalyzer.ui.toolbar.replayEditor.ReplayEditDialog;
import org.tizen.dynamicanalyzer.ui.toolbar.setting.PreferencesDialog;
+import org.tizen.dynamicanalyzer.ui.widgets.SearchDialog;
import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.util.WorkbenchUtil;
import org.tizen.dynamicanalyzer.widgets.button.DACustomButton;
@Override
public void handleClickEvent(DACustomButton button) {
- /// Search Event
+ Shell shell = WorkbenchUtil.getWorkbenchWindow().getShell();
+ BaseView baseView = (BaseView)WorkbenchUtil.getViewPart(BaseView.ID);
+ Composite comp = baseView.getTopPage().getTopTable();
+ SearchDialog dialog = new SearchDialog(shell, comp);
+ dialog.open();
}
});
viewSourceButton.setButtonEnabled(enabled);
configButton.setButtonEnabled(enabled);
aboutButton.setButtonEnabled(enabled);
- searchButton.setButtonEnabled(false);
+ searchButton.setButtonEnabled(enabled);
}
private void setScreenShotButtonEnable(boolean enabled) {