From 5266a8fff9f64c2a7ba806abb266293cbe415e24 Mon Sep 17 00:00:00 2001 From: jooyoul_lee Date: Tue, 27 May 2014 10:16:19 +0900 Subject: [PATCH] NSCREEN : remove move action 1. nscreen item : remove move action Change-Id: I47f7e96249ac3500b540db62e082c26d8bc3cad7 Signed-off-by: jooyoul_lee --- .../webuibuilder/ui/views/nscreen/NScreenItem.java | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItem.java b/org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItem.java index 41f0238..623853c 100644 --- a/org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItem.java +++ b/org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItem.java @@ -148,12 +148,12 @@ public class NScreenItem extends Composite { // } // } if (model.getType() != NScreenType.PIXELRATIO) { - if (index > 0 && !model.isLinked(getPageId()) && !isRoot()) { - menu.getItem(MENU_MOVE_UP).setEnabled(true); - } - if (index < size - 1 && !model.isLinked(getPageId()) && !isRoot()) { - menu.getItem(MENU_MOVE_DOWN).setEnabled(true); - } +// if (index > 0 && !model.isLinked(getPageId()) && !isRoot()) { +// menu.getItem(MENU_MOVE_UP).setEnabled(true); +// } +// if (index < size - 1 && !model.isLinked(getPageId()) && !isRoot()) { +// menu.getItem(MENU_MOVE_DOWN).setEnabled(true); +// } } } } @@ -311,19 +311,19 @@ public class NScreenItem extends Composite { } public void moveUpAction() { - int index = parent.getItems().indexOf(this); - if (index != 0 && isItemEnabled() && !isLinked() && !isRoot()) { - Command command = new NScreenMoveUpCommand(this); - parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command); - } +// int index = parent.getItems().indexOf(this); +// if (index != 0 && isItemEnabled() && !isLinked() && !isRoot()) { +// Command command = new NScreenMoveUpCommand(this); +// parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command); +// } } public void moveDownAction() { - int index = parent.getItems().indexOf(this); - if (index < parent.getItems().size() - 1 && isItemEnabled() && !isLinked() && !isRoot()) { - Command command = new NScreenMoveDownCommand(this); - parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command); - } +// int index = parent.getItems().indexOf(this); +// if (index < parent.getItems().size() - 1 && isItemEnabled() && !isLinked() && !isRoot()) { +// Command command = new NScreenMoveDownCommand(this); +// parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command); +// } } public void LinkCutAction() { -- 2.7.4