From: jooyoul_lee Date: Tue, 27 May 2014 01:16:19 +0000 (+0900) Subject: NSCREEN : remove move action X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F21713%2F1;p=sdk%2Fide%2Fweb-ui-builder-eplugin.git NSCREEN : remove move action 1. nscreen item : remove move action Change-Id: I47f7e96249ac3500b540db62e082c26d8bc3cad7 Signed-off-by: jooyoul_lee --- 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() {