[Title] change snapshotview code
authorHyunjong,Pakr <phjwithyou.park@samsung.com>
Fri, 30 Nov 2012 01:17:06 +0000 (10:17 +0900)
committerHyunjong,Pakr <phjwithyou.park@samsung.com>
Fri, 30 Nov 2012 01:17:06 +0000 (10:17 +0900)
[Desc.] userinterface page
[Issue] redmine #7377

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/UIPage.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/control/UIControlListView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/profiling/UIFunctionProfilingView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/scene/UITransformListTable.java

index 82a8b58..6353877 100644 (file)
@@ -35,7 +35,6 @@ import org.eclipse.swt.layout.FillLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.tizen.dynamicanalyzer.common.CommonConstants;
 import org.tizen.dynamicanalyzer.common.DesignConstants;
-import org.tizen.dynamicanalyzer.logparser.LogPackage;
 import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
 import org.tizen.dynamicanalyzer.ui.info.snapshot.SnapshotView;
 import org.tizen.dynamicanalyzer.ui.page.DAPageComposite;
@@ -54,9 +53,7 @@ public class UIPage extends DAPageComposite {
        private final double DEFAULT_WIDTH = DesignConstants.SNAPSHOT_VIEW_WIDTH + 10;
        private final double DEFAULT_HEIGHT = DesignConstants.SNAPSHOT_VIEW_HEIGHT
                        + 10 + DesignConstants.VIEW_TITLEBAR_HEIGHT;
-
-       UIDataManager tManager = UIDataManager.getInstance();
-
+       
        public UIPage(Composite parent, int style) {
                super(parent, style);
                name = AnalyzerLabels.COOLBAR_AREA_UI;
@@ -120,7 +117,4 @@ public class UIPage extends DAPageComposite {
                });
        }
 
-       public void updateLog(LogPackage logPack) {
-               tManager.parsePageData(logPack);
-       }
 }
\ No newline at end of file
index ab65ab6..e95199b 100644 (file)
@@ -31,6 +31,8 @@ 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.logparser.LogPackage;
 import org.tizen.dynamicanalyzer.model.DAView;
 import org.tizen.dynamicanalyzer.nl.UserInterfacePageLabels;
 import org.tizen.dynamicanalyzer.resources.ColorResources;
@@ -43,6 +45,8 @@ public class UIControlListView extends DAView {
 
        int[] innerMaxWeight = { 100, 0, 0 };
        int[] outerMaxWeight = { 100, 0 };
+       
+       UIDataManager tManager = UIDataManager.getInstance();
 
        private String[] columnNames = {
                        UserInterfacePageLabels.USERINTERFACE_CONTROL_LIST_VIEW_COLUMN_0,
@@ -108,4 +112,16 @@ public class UIControlListView extends DAView {
        public void otherViewSelectionOccured() {
                treeComp.deselectAll();
        }
+
+       @Override
+       public void updateView(DASelectionData data) { // FIXME
+
+       }
+
+       @Override
+       public void updateLog(LogPackage logPack) {
+               tManager.parsePageData(logPack);
+       }
+
+
 }
\ No newline at end of file
index 0feec29..e318089 100644 (file)
@@ -58,7 +58,7 @@ public class UIFunctionProfilingView extends DAView {
                        UserInterfacePageLabels.USERINTERFACE_UIFUNCTIONPROFILING_LIST_VIEW_COLUMN_6,
                        UserInterfacePageLabels.USERINTERFACE_UIFUNCTIONPROFILING_LIST_VIEW_COLUMN_7,
                        UserInterfacePageLabels.USERINTERFACE_UIFUNCTIONPROFILING_LIST_VIEW_COLUMN_8 };
-       private int[] columnSizes = { 280, 85, 85, 85, 85, 85, 85, 85, 85 };
+       private int[] columnSizes = { 280, 90, 90, 90, 90, 90, 90, 90, 90 };
        UIFunctionProfilingTable treeComp = null;
        private boolean[] columnVisibility = { true, true, true, true, true, true,
                        true, true, true };
index bc0b39b..6475de8 100644 (file)
@@ -89,7 +89,7 @@ public class UITransformListTable extends DATableComposite {
                                inputData.add(sceneTransformsData.getData().get(j));
                        }
 
-                       DATableDataFormat tableData = new DATableDataFormat(sceneTransformsData.getTime());
+                       DATableDataFormat tableData = new DATableDataFormat(sceneTransformsData.getSequence());
                        tableData.getData().addAll(inputData);
 
                        text.add(sceneTransformsData.getTime()); // Time