public PublishBulkReportAction() { putValue(Action.NAME, I18NSupport.getString("publish")); Icon icon = ImageUtil.getImageIcon("publish"); putValue(Action.SMALL_ICON, icon); putValue(MNEMONIC_KEY, ShortcutsUtil.getMnemonic("publish.mnemonic", new Integer('U'))); putValue(Action.SHORT_DESCRIPTION, I18NSupport.getString("publish")); putValue(Action.LONG_DESCRIPTION, I18NSupport.getString("publish")); }
public OpenQueryAction(Report createdReport, boolean fullName) { this.createdReport = createdReport; if (fullName) { putValue(Action.NAME, I18NSupport.getString("open.query")); } else { putValue(Action.NAME, I18NSupport.getString("open.query.small")); } Icon icon = ImageUtil.getImageIcon("query_open"); putValue(Action.SMALL_ICON, icon); putValue( Action.MNEMONIC_KEY, ShortcutsUtil.getMnemonic("query.open.mnemonic", new Integer('O'))); putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(ShortcutsUtil.getShortcut("query.open.accelerator", "control O"))); putValue(Action.SHORT_DESCRIPTION, I18NSupport.getString("open.query.desc")); putValue(Action.LONG_DESCRIPTION, I18NSupport.getString("open.query.desc")); }