public static Action getAction(final short actionID, final MDModel model) {
		if (actionID == COUN_ID || actionID == MEAS_ID || actionID == TRAJ_ID || actionID == RAVE_ID
				|| actionID == WHAT_ID || actionID == MARK_ID || actionID == SELE_ID) {
			Action a = new AbstractAction() {
				public void actionPerformed(ActionEvent e) {
					((MDView) model.getView()).setAction(actionID);
				}
			};
			a.putValue(Action.SMALL_ICON, UserAction.getIcon(actionID));
			a.putValue(Action.NAME, UserAction.getName(actionID));
			a.putValue(Action.MNEMONIC_KEY, UserAction.getMnemonicKey(actionID));
			a.putValue(Action.ACCELERATOR_KEY, UserAction.getAcceleratorKey(actionID));
			a.putValue(Action.SHORT_DESCRIPTION, UserAction.getDescription(actionID));
			a.putValue(Action.LONG_DESCRIPTION, UserAction.getLongDescription(actionID));
			return a;
		}
		Action a = new ModelAction(model, new Executable() {
			public void execute() {
				((MDView) model.getView()).setAction(actionID);
			}
		}) {
		};
		a.putValue(Action.SMALL_ICON, UserAction.getIcon(actionID));
		a.putValue(Action.NAME, UserAction.getName(actionID));
		a.putValue(Action.MNEMONIC_KEY, UserAction.getMnemonicKey(actionID));
		a.putValue(Action.ACCELERATOR_KEY, UserAction.getAcceleratorKey(actionID));
		a.putValue(Action.SHORT_DESCRIPTION, UserAction.getDescription(actionID));
		a.putValue(Action.LONG_DESCRIPTION, UserAction.getLongDescription(actionID));
		return a;
	}