public static void showInputDialog(SComponent parent, Object question, String title, SComponent inputElement, ActionListener al) { showInputDialog(parent, question, title, SOptionPane.QUESTION_MESSAGE, inputElement, al); }
/** * {@inheritDoc} */ @Override public boolean execute(final IActionHandler actionHandler, final Map<String, Object> context) { SFileChooser fileChooser = new SFileChooser(); SOptionPane .showInputDialog(getSourceComponent(context), getTranslationProvider( context) .getTranslation("open.file.description", getLocale(context)), getTranslationProvider(context).getTranslation("open.file.name", getLocale(context)), fileChooser, new OpenFileActionListener( fileChooser, getController(context), context)); return super.execute(actionHandler, context); }
/** * {@inheritDoc} */ @Override public boolean execute(final IActionHandler actionHandler, final Map<String, Object> context) { SFileChooser fileChooser = new SFileChooser(); SOptionPane .showInputDialog( getSourceComponent(context), getTranslationProvider(context).getTranslation( "open.file.description", getLocale(context)), getTranslationProvider(context).getTranslation("open.file.name", getLocale(context)), fileChooser, new OpenFileActionListener( fileChooser, getController(context), context)); return super.execute(actionHandler, context); }