From 9e735a1c9931a4f6e5871fc10f849f40ad8715c5 Mon Sep 17 00:00:00 2001 From: dongkyu6 lee Date: Thu, 19 May 2016 19:26:44 +0900 Subject: [PATCH] [SRADA-615] Add clear function Change-Id: Id41eb53db17781ec440d967dee2850832d96f7cb --- .../tizen/dynamicanalyzer/ui/hierarchy/HierarchyDataManager.java | 4 ++++ .../src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyPage.java | 5 +++++ .../org/tizen/dynamicanalyzer/ui/interactive/InteractivePage.java | 6 ++++++ .../src/org/tizen/dynamicanalyzer/ui/timeline/TimelinePage.java | 1 + 4 files changed, 16 insertions(+) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyDataManager.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyDataManager.java index 4cb98ca..a2d58d3 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyDataManager.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyDataManager.java @@ -149,4 +149,8 @@ public class HierarchyDataManager extends PageDataManager { } } } + + public void clear() { + rootUIObjects.clear(); + } } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyPage.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyPage.java index 69bed85..e4e69c0 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyPage.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/HierarchyPage.java @@ -95,4 +95,9 @@ public class HierarchyPage extends DAPageComposite { baseForm.setWeights(new int[] { 75, 25 }); rightForm.setWeights(new int[] { 30, 70 }); } + + @Override + public void clear() { + super.clear(); + } } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/interactive/InteractivePage.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/interactive/InteractivePage.java index a034fa1..7f30253 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/interactive/InteractivePage.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/interactive/InteractivePage.java @@ -107,4 +107,10 @@ public class InteractivePage extends DAPageComposite { baseForm.setWeights(new int[] { 100 - wrate, wrate }); rightForm.setWeights(new int[] { 100 - hrate, hrate }); } + + @Override + public void clear() { + super.clear(); + InteractiveDataManager.getInstance().clear(); + } } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/TimelinePage.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/TimelinePage.java index 0320d85..0135439 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/TimelinePage.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/TimelinePage.java @@ -106,5 +106,6 @@ public class TimelinePage extends DAPageComposite { ReplayDataManager.getInstance().clear(); CallTraceDataManager.getInstance().clear(); InteractiveDataManager.getInstance().clear(); + ScreenshotDataManager.getInstance().clear(); } } -- 2.7.4