Author: tchemit Date: 2008-02-18 17:36:11 +0000 (Mon, 18 Feb 2008) New Revision: 1080 Modified: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangePageAction.java Log: l'action delete qui fonctionne :) Modified: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangePageAction.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangePageAction.java 2008-02-18 17:20:24 UTC (rev 1079) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangePageAction.java 2008-02-18 17:36:11 UTC (rev 1080) @@ -57,7 +57,7 @@ @Override protected boolean beforeAction(ActionEvent e) throws Exception { JComboBox jComboBox = getChangePageComboBox(); - if (!jComboBox.isEnabled()) { + if (jComboBox==null || !jComboBox.isEnabled()) { return false; } ListTabModel model = (ListTabModel) getModel(); @@ -103,12 +103,14 @@ if (uiObject instanceof JComboBox) { return (JComboBox) uiObject; } + // find with hard name AbstractAction action = SimExplorerActionManager.newAction("goPage", (AbstractButton) null); uiObject = getUIObject((String) action.getValue(Action.ACTION_COMMAND_KEY)); if (uiObject instanceof JComboBox) { return (JComboBox) uiObject; } - throw new IllegalStateException("could not find ChangePageComboBox for action " + this); + return null; + //throw new IllegalStateException("could not find ChangePageComboBox for action " + this); } } \ No newline at end of file