when the table is re-created from setting dialog, check current project(application) state
Change-Id: Ib5d8b0f698727d2a7359930f832a3eb8821b2cd5
Signed-off-by: heeyoung <heeyoung1008.hwang@samsung.com>
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.tizen.dynamicanalyzer.common.DASelectionData;
+import org.tizen.dynamicanalyzer.common.Global;
import org.tizen.dynamicanalyzer.nl.InformationViewLabels;
+import org.tizen.dynamicanalyzer.project.Project;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.swap.logparser.DataManagerRegistry;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
webTable = new WebAppStartupTable(contents, SWT.NONE, SWT.MULTI
| SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
- stackLayout.topControl = nativeTable;
+ // select native or web table
+ Project currentProject = Global.getProject();
+ if (currentProject == null) {
+ stackLayout.topControl = nativeTable;
+ } else {
+ changeTable(currentProject.isWebApplication());
+ }
// set data manager
DataManagerRegistry.registerPageDataManager(AppStartupDataManager.getInstance());
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.tizen.dynamicanalyzer.common.Global;
import org.tizen.dynamicanalyzer.nl.SummaryLabels;
+import org.tizen.dynamicanalyzer.project.Project;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATreeComposite;
import org.tizen.dynamicanalyzer.widgets.da.view.DAViewComposite;
webTable = new WebProfilingTable(contents, SWT.NONE, SWT.SINGLE
| SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
- stackLayout.topControl = nativeTable;
+ // select native or web table
+ Project currentProject = Global.getProject();
+ if (currentProject == null) {
+ stackLayout.topControl = nativeTable;
+ } else {
+ changeTable(currentProject.isWebApplication());
+ }
}
@Override
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.tizen.dynamicanalyzer.common.DASelectionData;
+import org.tizen.dynamicanalyzer.common.Global;
import org.tizen.dynamicanalyzer.database.SqlConnectionManager;
import org.tizen.dynamicanalyzer.nl.TimelinePageLabels;
+import org.tizen.dynamicanalyzer.project.Project;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.ui.info.callstack.CallstackView;
import org.tizen.dynamicanalyzer.ui.interactive.InteractivePage;
webTable = new WebCallTraceTable(contents, SWT.NONE, SWT.MULTI
| SWT.BORDER | SWT.FULL_SELECTION);
- stackLayout.topControl = nativeTable;
+ // select native or web table
+ Project currentProject = Global.getProject();
+ if (currentProject == null) {
+ stackLayout.topControl = nativeTable;
+ } else {
+ changeTable(currentProject.isWebApplication());
+ }
}
@Override