/** * Returns the NLS'ed message for the given argument. * * @param key the key to look up * @return the message for the given key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key is null</li> * </ul> */ public static String getMessage(String key) { return Compatibility.getMessage(key); }
/** * Returns the NLS'ed message for the given argument. * * @param key the key to look up * @return the message for the given key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key is null</li> * </ul> */ public static String getMessage(String key) { return Compatibility.getMessage(key); }
/** * Returns the NLS'ed message for the given argument. * * @param key the key to look up * @return the message for the given key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key is null</li> * </ul> */ public static String getMessage(String key) { return Compatibility.getMessage(key); }
/** * Returns the NLS'ed message for the given argument. * * @param key the key to look up * @return the message for the given key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key is null</li> * </ul> */ public static String getMessage(String key) { return Compatibility.getMessage(key); }
/** * Returns the NLS'ed message for the given argument. * * @param key the key to look up * @return the message for the given key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key is null</li> * </ul> */ public static String getMessage(String key) { return Compatibility.getMessage(key); }
/** * Returns the NLS'ed message for the given arguments. * * @param key the key to look up * @param args the parameters to insert into the message * @return the message for the given parameterized key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key or args are null</li> * </ul> * * @since 3.8 */ public static String getMessage(String key, Object[] args) { return Compatibility.getMessage(key, args); }
/** * Returns the NLS'ed message for the given arguments. * * @param key the key to look up * @param args the parameters to insert into the message * @return the message for the given parameterized key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key or args are null</li> * </ul> * * @since 3.8 */ public static String getMessage(String key, Object[] args) { return Compatibility.getMessage(key, args); }
/** * Returns the NLS'ed message for the given arguments. * * @param key the key to look up * @param args the parameters to insert into the message * @return the message for the given parameterized key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key or args are null</li> * </ul> * * @since 3.8 */ public static String getMessage(String key, Object[] args) { return Compatibility.getMessage(key, args); }
/** * Returns the NLS'ed message for the given arguments. * * @param key the key to look up * @param args the parameters to insert into the message * @return the message for the given parameterized key * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the key or args are null</li> * </ul> * * @since 3.8 */ public static String getMessage(String key, Object[] args) { return Compatibility.getMessage(key, args); }
int OnProgressChange (int /*long*/ aWebProgress, int /*long*/ aRequest, int aCurSelfProgress, int aMaxSelfProgress, int aCurTotalProgress, int aMaxTotalProgress) { int currentKBytes = aCurTotalProgress / 1024; int totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Integer (currentKBytes), new Integer (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange64 (int /*long*/ aWebProgress, int /*long*/ aRequest, long aCurSelfProgress, long aMaxSelfProgress, long aCurTotalProgress, long aMaxTotalProgress) { long currentKBytes = aCurTotalProgress / 1024; long totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Long (currentKBytes), new Long (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange (long /*int*/ aWebProgress, long /*int*/ aRequest, int aCurSelfProgress, int aMaxSelfProgress, int aCurTotalProgress, int aMaxTotalProgress) { int currentKBytes = aCurTotalProgress / 1024; int totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Integer (currentKBytes), new Integer (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange (int /*long*/ aWebProgress, int /*long*/ aRequest, int aCurSelfProgress, int aMaxSelfProgress, int aCurTotalProgress, int aMaxTotalProgress) { int currentKBytes = aCurTotalProgress / 1024; int totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Integer (currentKBytes), new Integer (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange64 (long /*int*/ aWebProgress, long /*int*/ aRequest, long aCurSelfProgress, long aMaxSelfProgress, long aCurTotalProgress, long aMaxTotalProgress) { long currentKBytes = aCurTotalProgress / 1024; long totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Long (currentKBytes), new Long (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange64 (long /*int*/ aWebProgress, long /*int*/ aRequest, long aCurSelfProgress, long aMaxSelfProgress, long aCurTotalProgress, long aMaxTotalProgress) { long currentKBytes = aCurTotalProgress / 1024; long totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Long (currentKBytes), new Long (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange (long /*int*/ aWebProgress, long /*int*/ aRequest, int aCurSelfProgress, int aMaxSelfProgress, int aCurTotalProgress, int aMaxTotalProgress) { int currentKBytes = aCurTotalProgress / 1024; int totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Integer (currentKBytes), new Integer (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange64 (int /*long*/ aWebProgress, int /*long*/ aRequest, long aCurSelfProgress, long aMaxSelfProgress, long aCurTotalProgress, long aMaxTotalProgress) { long currentKBytes = aCurTotalProgress / 1024; long totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Long (currentKBytes), new Long (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange64 (int /*long*/ aWebProgress, int /*long*/ aRequest, long aCurSelfProgress, long aMaxSelfProgress, long aCurTotalProgress, long aMaxTotalProgress) { long currentKBytes = aCurTotalProgress / 1024; long totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Long (currentKBytes), new Long (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange (int /*long*/ aWebProgress, int /*long*/ aRequest, int aCurSelfProgress, int aMaxSelfProgress, int aCurTotalProgress, int aMaxTotalProgress) { int currentKBytes = aCurTotalProgress / 1024; int totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Integer (currentKBytes), new Integer (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
boolean webView_runBeforeUnloadConfirmPanelWithMessage_initiatedByFrame(long /*int*/ sender, long /*int*/ messageID, long /*int*/ frame) { NSString message = new NSString(messageID); StringBuffer text = new StringBuffer(Compatibility.getMessage("SWT_OnBeforeUnload_Message1")); //$NON-NLS-1$ text.append("\n\n"); //$NON-NLS-1$ text.append(message.getString()); text.append("\n\n"); //$NON-NLS-1$ text.append(Compatibility.getMessage("SWT_OnBeforeUnload_Message2")); //$NON-NLS-1$ MessageBox messageBox = new MessageBox(browser.getShell(), SWT.OK | SWT.CANCEL | SWT.ICON_QUESTION | SWT.SHEET); messageBox.setMessage(text.toString()); return messageBox.open() == SWT.OK; }