From 1edc5ac51f6f027976d27916c3cc7f9d271ecc84 Mon Sep 17 00:00:00 2001 From: "jinwooim.bae" Date: Fri, 2 May 2014 18:48:24 +0900 Subject: [PATCH] ANIMATOR : Show animationGroup id This is showing menu for user. Change-Id: Ic4f475ad66ed07bf45dd2925bee5ca21ab46daf1 Signed-off-by: jinwooim.bae --- .../timeline/header/TimelineOutlineHeader.java | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/header/TimelineOutlineHeader.java b/org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/header/TimelineOutlineHeader.java index f516978..f7524dd 100644 --- a/org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/header/TimelineOutlineHeader.java +++ b/org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/header/TimelineOutlineHeader.java @@ -196,11 +196,12 @@ public class TimelineOutlineHeader extends Composite { animationGroupMenu = new Menu(menuDropDownButton.getShell(), SWT.POP_UP); for (int i = 0; i < animations.size(); i++) { final MenuItem aniGroupItem = new MenuItem(animationGroupMenu, SWT.CHECK); - aniGroupItem.setText(animations.get(i).getName()); - aniGroupItem.setData("id", animations.get(i).getId()); + final AnimatorAnimation animatorAnimation = animations.get(i); + aniGroupItem.setText(animatorAnimation.getName() + getId(animatorAnimation)); + aniGroupItem.setData("id", animatorAnimation.getId()); if (selectedAnimationGroupId != null - && selectedAnimationGroupId.equals(animations.get(i).getId())) { + && selectedAnimationGroupId.equals(animatorAnimation.getId())) { aniGroupItem.setSelection(true); } @@ -308,7 +309,7 @@ public class TimelineOutlineHeader extends Composite { if (size != 0) { selectedAnimationGroupId = animations.get(0).getId(); - animationGroupLabel.setText(animations.get(0).getName()); + animationGroupLabel.setText(animations.get(0).getName() + getId(animations.get(0))); animationGroupLabel.setData("id", animations.get(0).getId()); } else { animationGroupLabel.setText("NONE"); @@ -324,6 +325,17 @@ public class TimelineOutlineHeader extends Composite { } /** + * Get AnimationGroupId + * + * @param animationGroup {@link AnimatorAnimation} + * @return + */ + private String getId(AnimatorAnimation animationGroup) { + String id = " ( ID : " + animationGroup.getId() + " )"; + return id; + } + + /** * Clear Tree in Timeline */ public void clearTree() { @@ -619,7 +631,7 @@ public class TimelineOutlineHeader extends Composite { String animationId = animation.getId(); setSelectedAnimationGroupId(animationId); - animationGroupLabel.setText(animationName); + animationGroupLabel.setText(animationName + getId(animation)); getAnimationGroupLabel().setData("id", animationId); animationGroupLabel.setToolTipText(animationName); animationGroupLabel.pack(); @@ -639,7 +651,7 @@ public class TimelineOutlineHeader extends Composite { String animationName = animation.getName(); String animationId = animation.getId(); - animationGroupLabel.setText(animationName); + animationGroupLabel.setText(animationName + getId(animation)); getAnimationGroupLabel().setData("id", animationId); animationGroupLabel.setToolTipText(animationName); animationGroupLabel.pack(); -- 2.7.4