[UI Hierarchy] Add clear to HierarchyTreeView
authorjungwook.ryu <jungwook.ryu@samsung.com>
Wed, 23 Dec 2015 12:05:59 +0000 (21:05 +0900)
committerjungwook.ryu <jungwook.ryu@samsung.com>
Wed, 23 Dec 2015 12:05:59 +0000 (21:05 +0900)
Change-Id: I857f24fa6813206d997544fa807d97d46414eacd
Signed-off-by: jungwook.ryu <jungwook.ryu@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/tree/HierarchyTreeView.java

index e811694..d916539 100644 (file)
@@ -54,14 +54,12 @@ import org.tizen.dynamicanalyzer.common.DAResult;
 import org.tizen.dynamicanalyzer.common.DAResult.ErrorCode;
 import org.tizen.dynamicanalyzer.common.DASelectionData;
 import org.tizen.dynamicanalyzer.common.DAState;
-import org.tizen.dynamicanalyzer.common.Global;
 import org.tizen.dynamicanalyzer.communicator.DACommunicator;
 import org.tizen.dynamicanalyzer.communicator.UnsupportedProtocolException;
 import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
 import org.tizen.dynamicanalyzer.nl.UIHierarchyPageLabels;
 import org.tizen.dynamicanalyzer.resources.ColorResources;
 import org.tizen.dynamicanalyzer.resources.ImageResources;
-import org.tizen.dynamicanalyzer.swap.model.data.UIHierarchyData;
 import org.tizen.dynamicanalyzer.swap.model.data.hierarchy.HierarchyUIObject;
 import org.tizen.dynamicanalyzer.swap.model.data.hierarchy.HierarchyUIObject.STATUS;
 import org.tizen.dynamicanalyzer.ui.hierarchy.HierarchyDataManager;
@@ -115,6 +113,12 @@ public class HierarchyTreeView extends DAViewComposite {
                notifyOtherViews(new HierarchyViewCommunication(HIERARCHY_ACTION.TREE_ZOOM, null));
        }
 
+       @Override
+       public void clear() {
+               treeLayer.removeAll();
+               informationLayer.removeAll();
+       }
+
        public void stopProgress(final boolean isSuccess) {
                Display.getDefault().syncExec(new Runnable() {
                        @Override