1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

[143503] [updating] need a synchronize cache operation - nls messages

This commit is contained in:
David McKnight 2007-12-18 19:39:03 +00:00
parent 3d54afd880
commit d2bbf9cad1
3 changed files with 15 additions and 3 deletions

View file

@ -256,6 +256,10 @@ public class FileResources extends NLS
// Property Pages
public static String MESSAGE_ENCODING_NOT_SUPPORTED;
// synchronize cache action
public static String MESSAGE_ERROR_CACHING_REMOTE_FILES;
public static String MESSAGE_SYNCHRONIZING_REMOTE_FILE_CACHE;
static
{
// load message values from bundle file

View file

@ -247,3 +247,10 @@ ACTION_SELECT_FILE_TOOLTIP=Select file from remote system
# Property Pages...
#=============================================================
MESSAGE_ENCODING_NOT_SUPPORTED=The selected encoding is not supported.
#=============================================================
# Synchronize Cache Action...
#=============================================================
MESSAGE_ERROR_CACHING_REMOTE_FILES=Error Caching Remote Files
MESSAGE_SYNCHRONIZING_REMOTE_FILE_CACHE=Remote File Cache Synchronizing Remote File Cache

View file

@ -36,6 +36,7 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.rse.core.model.SystemRemoteResourceSet;
import org.eclipse.rse.internal.files.ui.Activator;
import org.eclipse.rse.internal.files.ui.FileResources;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
@ -70,7 +71,7 @@ public class SynchronizeCacheActionDelegate implements IActionDelegate {
// If errors occurred, open an Error dialog
if (errorStatus != null) {
ErrorDialog.openError(getShell(), "Error Caching Remote Files", null, errorStatus);
ErrorDialog.openError(getShell(), FileResources.MESSAGE_ERROR_CACHING_REMOTE_FILES, null, errorStatus);
errorStatus = null;
}
}
@ -134,7 +135,7 @@ public class SynchronizeCacheActionDelegate implements IActionDelegate {
ProgressMonitorDialog mon = new ProgressMonitorDialog(getShell()) {
protected void configureShell(Shell shell) {
super.configureShell(shell);
shell.setText("Synchronizing Remote File Cache");
shell.setText(FileResources.MESSAGE_SYNCHRONIZING_REMOTE_FILE_CACHE);
}
};
mon.run(true, true, op);
@ -159,7 +160,7 @@ public class SynchronizeCacheActionDelegate implements IActionDelegate {
* the message
*/
void displayError(String message) {
MessageDialog.openError(getShell(), "Error Caching Remote Files", message);
MessageDialog.openError(getShell(), FileResources.MESSAGE_ERROR_CACHING_REMOTE_FILES, message);
}
/**