1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

CView overwrite files dialog text changed so that it is the same in the CView as in the Navigator

This commit is contained in:
Judy N. Green 2002-10-23 19:57:36 +00:00
parent 7c1f24d612
commit 2af3c15c52
2 changed files with 9 additions and 6 deletions

View file

@ -264,4 +264,7 @@ ClearOutputAction.tooltip=Clear Console
# ------- New menu items to overwrite superclass ----------
CreateFileAction.text = &File
CreateFolderAction.text = F&older
CreateFolderAction.text = F&older
# ------- Drag and Drop Message Text -----------
CViewDragNDrop.txt = already exists. Would you like to overwrite it?

View file

@ -10,6 +10,9 @@ import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.List;
import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.internal.ui.CPlugin;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceStatus;
@ -39,10 +42,7 @@ import org.eclipse.ui.dialogs.IOverwriteQuery;
import org.eclipse.ui.part.PluginDropAdapter;
import org.eclipse.ui.part.ResourceTransfer;
import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
import org.eclipse.ui.wizards.datatransfer.ImportOperation;
import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.ICElement;;
import org.eclipse.ui.wizards.datatransfer.ImportOperation;;
/**
* Implements drop behaviour for drag and drop operations
@ -413,7 +413,7 @@ class CViewDropAdapter extends PluginDropAdapter implements IOverwriteQuery {
*/
public String queryOverwrite(String pathString) {
final String returnCode[] = {CANCEL};
final String msg = "overwrite Query"; //$NON-NLS-1$
final String msg = pathString + " " + CPlugin.getResourceString("CViewDragNDrop.txt") ; //$NON-NLS-1$
final String[] options = {IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.CANCEL_LABEL};
getDisplay().syncExec(new Runnable() {
public void run() {