char register; int index = actionCommand.indexOf('@'); if(index != 1) register = '$'; else { register = actionCommand.charAt(0); actionCommand = actionCommand.substring(2); }  String retVal = (String)JOptionPane.showInputDialog(view, actionCommand,jEdit.getProperty("macro-input.title"), JOptionPane.QUESTION_MESSAGE); if(retVal == null) Registers.clearRegister(register); else { Registers.setRegister(register,new Registers.StringRegister(retVal)); }
String prompt = dialog.getPrompt(); String register = dialog.getRegister(); recorder.actionPerformed(this,register + '@' + prompt);
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		String actionCommand = evt.getActionCommand();		if(actionCommand == null)		{			InputHandler.MacroRecorder recorder = view.getInputHandler()				.getMacroRecorder();			if(recorder == null)			{				GUIUtilities.error(view,"macro-input.no-record",null);				return;			}			MacroInputDialog dialog = new MacroInputDialog(view);			if(dialog.isOK())			{				String prompt = dialog.getPrompt();				String register = dialog.getRegister();				recorder.actionPerformed(this,register + '@' + prompt);			}		}		else		{			char register;			int index = actionCommand.indexOf('@');			if(index != 1)				register = '$';			else			{				register = actionCommand.charAt(0);				actionCommand = actionCommand.substring(2);			}			String retVal = (String)JOptionPane.showInputDialog(view,				actionCommand,jEdit.getProperty("macro-input.title"),				JOptionPane.QUESTION_MESSAGE);			if(retVal == null)				Registers.clearRegister(register);			else			{				Registers.setRegister(register,new					Registers.StringRegister(retVal));			}		}	}