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

[199324] [nls] Move dialog SystemMessages should be added/updated

This commit is contained in:
Kevin Doyle 2007-11-02 15:26:27 +00:00
parent 133313358b
commit 1ac36e2054
3 changed files with 12 additions and 4 deletions

View file

@ -16,6 +16,7 @@
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
* Kevin Doyle (IBM) - [198007] Moving multiple folders allows moving to themselves
* Kevin Doyle (IBM) - [160769] Move Resource dialog allows user to continue on invalid destination
* Kevin Doyle (IBM) - [199324] [nls] Move dialog SystemMessages should be added/updated
********************************************************************************/
package org.eclipse.rse.internal.files.ui.actions;
@ -45,6 +46,7 @@ public class SystemMoveRemoteFileAction extends SystemCopyRemoteFileAction
implements IValidatorRemoteSelection
{
private SystemMessage targetEqualsSrcMsg = null;
private SystemMessage targetEqualsParentSrcMsg = null;
private SystemMessage targetDescendsFromSrcMsg = null;
private SystemMessage invalidFilterMsg = null;
protected Vector movedFiles = new Vector();
@ -139,9 +141,9 @@ public class SystemMoveRemoteFileAction extends SystemCopyRemoteFileAction
if (selectedFolderPath.equals(selectedParentFile.getAbsolutePath()))
{
if (targetEqualsSrcMsg == null)
targetEqualsSrcMsg = RSEUIPlugin.getPluginMessage(ISystemMessages.FILEMSG_MOVE_TARGET_EQUALS_SOURCE);
return targetEqualsSrcMsg;
if (targetEqualsParentSrcMsg == null)
targetEqualsParentSrcMsg = RSEUIPlugin.getPluginMessage(ISystemMessages.FILEMSG_MOVE_TARGET_EQUALS_PARENT_OF_SOURCE);
return targetEqualsParentSrcMsg;
}
else if (selectedFolderPath.equals(selectedFile.getAbsolutePath()))
{

View file

@ -14,6 +14,7 @@
* David Dykstal (IBM) - [186589] move user types, user actions, and compile commands
* API to the user actions plugin
* Kevin Doyle (IBM) - [160769] Added FILEMSG_MOVE_FILTER_NOT_VALID
* Kevin Doyle (IBM) - [199324] Added FILEMSG_MOVE_TARGET_EQUALS_PARENT_OF_SRC
********************************************************************************/
package org.eclipse.rse.ui;
@ -261,6 +262,7 @@ public interface ISystemMessages
public static final String FILEMSG_COPY_FILE_FAILED = "RSEF1306"; //$NON-NLS-1$
public static final String FILEMSG_MOVE_FILE_FAILED = "RSEF1307"; //$NON-NLS-1$
public static final String FILEMSG_MOVE_TARGET_EQUALS_SOURCE = "RSEF1308"; //$NON-NLS-1$
public static final String FILEMSG_MOVE_TARGET_EQUALS_PARENT_OF_SOURCE = "RSEF1314"; //$NON-NLS-1$
public static final String FILEMSG_MOVE_TARGET_DESCENDS_FROM_SOURCE = "RSEF1312"; //$NON-NLS-1$
public static final String FILEMSG_MOVE_FILTER_NOT_VALID = "RSEF1313"; //$NON-NLS-1$
public static final String FILEMSG_DELETING = "RSEF1315"; //$NON-NLS-1$

View file

@ -974,7 +974,7 @@ Kevin Doyle (IBM) - [160769] Added message for invalid filter when moving files
</Message>
<Message ID="1308" Indicator="E">
<LevelOne>Target folder cannot equal source folder</LevelOne>
<LevelTwo>Attempting to move a file or folder to the same folder as it exists in is equivalent to a rename operation. Use the rename action for this</LevelTwo>
<LevelTwo>It is impossible to move a folder to itself.</LevelTwo>
</Message>
<Message ID="1309" Indicator="E">
<LevelOne>Folder already exists</LevelOne>
@ -995,6 +995,10 @@ Kevin Doyle (IBM) - [160769] Added message for invalid filter when moving files
<Message ID="1313" Indicator="E">
<LevelOne>Selected filter is not a valid destination.</LevelOne>
<LevelTwo>Some filters, such as the Root or Drives filter, do not designate locations on the remote file system and cannot have files moved into them.</LevelTwo>
</Message>
<Message ID="1314" Indicator="E">
<LevelOne>Target folder cannot equal parent of source file/folder.</LevelOne>
<LevelTwo>A file or folder cannot be moved into the directory in which it exists. If you wish to rename the file, use the rename action.</LevelTwo>
</Message>
<Message ID="1315" Indicator="I">
<LevelOne>Deleting %1...</LevelOne>