本文整理匯總了Java中net.sf.freecol.client.gui.action.ExecuteGotoOrdersAction類的典型用法代碼示例。如果您正苦於以下問題:Java ExecuteGotoOrdersAction類的具體用法?Java ExecuteGotoOrdersAction怎麽用?Java ExecuteGotoOrdersAction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ExecuteGotoOrdersAction類屬於net.sf.freecol.client.gui.action包,在下文中一共展示了ExecuteGotoOrdersAction類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: buildOrdersMenu
import net.sf.freecol.client.gui.action.ExecuteGotoOrdersAction; //導入依賴的package包/類
private void buildOrdersMenu() {
// --> Orders
JMenu menu = Utility.localizedMenu("menuBar.orders");
menu.setOpaque(false);
menu.setMnemonic(KeyEvent.VK_O);
menu.add(getMenuItem(SentryAction.id));
menu.add(getMenuItem(FortifyAction.id));
menu.addSeparator();
menu.add(getMenuItem(GotoAction.id));
menu.add(getMenuItem(GotoTileAction.id));
menu.add(getMenuItem(ExecuteGotoOrdersAction.id));
menu.add(getMenuItem(AssignTradeRouteAction.id));
menu.addSeparator();
menu.add(getMenuItem(BuildColonyAction.id));
// Insert all Improvements here:
for (TileImprovementType type : freeColClient.getGame().getSpecification()
.getTileImprovementTypeList()) {
if (!type.isNatural()) {
menu.add(getMenuItem(type.getSuffix() + "Action"));
}
}
menu.addSeparator();
menu.add(getMenuItem(LoadAction.id));
menu.add(getMenuItem(UnloadAction.id));
menu.addSeparator();
menu.add(getMenuItem(WaitAction.id));
menu.add(getMenuItem(SkipUnitAction.id));
menu.add(getMenuItem(ChangeAction.id));
menu.addSeparator();
menu.add(getMenuItem(ClearOrdersAction.id));
menu.add(getMenuItem(RenameAction.id));
menu.add(getMenuItem(DisbandUnitAction.id));
add(menu);
}