You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2011/05/06 20:06:30 UTC
svn commit: r1100306 -
/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/ContextMenus.java
Author: smartini
Date: Fri May 6 18:06:30 2011
New Revision: 1100306
URL: http://svn.apache.org/viewvc?rev=1100306&view=rev
Log:
revert latest changes (will be moved in another class, for user-driven tests)
Modified:
pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/ContextMenus.java
Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/ContextMenus.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/ContextMenus.java?rev=1100306&r1=1100305&r2=1100306&view=diff
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/ContextMenus.java (original)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/ContextMenus.java Fri May 6 18:06:30 2011
@@ -37,11 +37,6 @@ public class ContextMenus extends Window
Menu.Section menuSection = new Menu.Section();
menu.getSections().add(menuSection);
- menuSection.add(new Menu.Item("Do Nothing"));
- Menu.Item doNothingMenuItem = new Menu.Item("Do Nothing and disabled");
- doNothingMenuItem.setEnabled(false);
- menuSection.add(doNothingMenuItem);
-
Menu.Item whatIsThisMenuItem = new Menu.Item("What is this?");
whatIsThisMenuItem.setAction(new Action() {
@Override
@@ -52,11 +47,8 @@ public class ContextMenus extends Window
Prompt.prompt(message, ContextMenus.this);
}
});
- menuSection.add(whatIsThisMenuItem);
- Menu.Item nullActionMenuItem = new Menu.Item("Item with null action assigned");
- nullActionMenuItem.setAction((Action) null);
- menuSection.add(nullActionMenuItem);
+ menuSection.add(whatIsThisMenuItem);
return false;
}