diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java index 01157a7bb89..473efb237a6 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008 Nokia and others. + * Copyright (c) 2008, 2010 Nokia and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * Nokia - Initial API and implementation + * IBM Corporation *******************************************************************************/ package org.eclipse.cdt.debug.internal.ui.views.executables; @@ -370,7 +371,7 @@ public class ExecutablesView extends ViewPart { } private Action createRemoveAction() { - Action action = new Action("Remove") { + Action action = new Action(Messages.ExecutablesView_Remove) { public void run() { ISelection selection = getExecutablesViewer().getSelection(); @@ -384,11 +385,11 @@ public class ExecutablesView extends ViewPart { } final Executable[] selectedExesArray = selectedExes.toArray(new Executable[selectedExes.size()]); - boolean confirm = MessageDialog.openConfirm(getSite().getShell(), "Confirm Remove Executables", "Are you sure you want to remove the selected executables?"); + boolean confirm = MessageDialog.openConfirm(getSite().getShell(), Messages.ExecutablesView_ConfirmRemoveExe, Messages.ExecutablesView_ConfirmRemoveSelected); if (confirm) { - Job removeJob = new UIJob("Remove Executables") { + Job removeJob = new UIJob(Messages.ExecutablesView_RemoveExes) { public IStatus runInUIThread(IProgressMonitor monitor) { IStatus result = ExecutablesManager.getExecutablesManager().removeExecutables(selectedExesArray, monitor); @@ -402,7 +403,7 @@ public class ExecutablesView extends ViewPart { message.append(children[i].getMessage()); } } - MessageDialog.openWarning(getSite().getShell(), "Remove Executables", message.toString()); + MessageDialog.openWarning(getSite().getShell(), Messages.ExecutablesView_RemoveExes, message.toString()); } return result; } @@ -413,7 +414,7 @@ public class ExecutablesView extends ViewPart { } }; - action.setToolTipText("Remove the selected executables"); + action.setToolTipText(Messages.ExecutablesView_RemoveSelectedExes); action.setImageDescriptor(ExecutablesView.DESC_REMOVE); action.setDisabledImageDescriptor(ExecutablesView.DESC_REMOVE_DISABLED); action.setEnabled(false); diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/Messages.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/Messages.java index 958b3b798d2..92d165a5050 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/Messages.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/Messages.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008 Nokia and others. + * Copyright (c) 2008, 2010 Nokia and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * Nokia - initial API and implementation + * IBM Corporation *******************************************************************************/ package org.eclipse.cdt.debug.internal.ui.views.executables; @@ -17,6 +18,8 @@ public class Messages extends NLS { public static String ExecutablesContentProvider_FetchingExecutables; public static String ExecutablesView_Columns; public static String ExecutablesView_ConfigureColumns; + public static String ExecutablesView_ConfirmRemoveExe; + public static String ExecutablesView_ConfirmRemoveSelected; public static String ExecutablesView_ExeData; public static String ExecutablesView_ExeLocation; public static String ExecutablesView_ExeName; @@ -29,6 +32,9 @@ public class Messages extends NLS { public static String ExecutablesView_ImportExecutables; public static String ExecutablesView_Refresh; public static String ExecutablesView_RefreshList; + public static String ExecutablesView_Remove; + public static String ExecutablesView_RemoveExes; + public static String ExecutablesView_RemoveSelectedExes; public static String ExecutablesView_Select_Executable; public static String ExecutablesView_SelectColumns; public static String ExecutablesView_SelectExeFile; diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/messages.properties b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/messages.properties index 5c91bede192..d83fc115585 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/messages.properties +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/messages.properties @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2008 Nokia and others. +# Copyright (c) 2008, 2010 Nokia and others. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at @@ -7,10 +7,13 @@ # # Contributors: # Nokia - initial API and implementation +# IBM Corporation ############################################################################### ExecutablesContentProvider_FetchingExecutables=Fetching executables ExecutablesView_Columns=Columns ExecutablesView_ConfigureColumns=Configure Columns +ExecutablesView_ConfirmRemoveExe=Confirm Remove Executables +ExecutablesView_ConfirmRemoveSelected=Are you sure you want to remove the selected executables? ExecutablesView_ExeData=Executable Date ExecutablesView_ExeLocation=Executable Location ExecutablesView_ExeName=Executable Name @@ -23,6 +26,9 @@ ExecutablesView_ImportExe=Import an executable file ExecutablesView_ImportExecutables=Import Executables ExecutablesView_Refresh=Refresh ExecutablesView_RefreshList=Refresh the list of executables +ExecutablesView_Remove=Remove +ExecutablesView_RemoveExes=Remove Executables +ExecutablesView_RemoveSelectedExes=Remove the selected executables ExecutablesView_Select_Executable=Select Executable ExecutablesView_SelectColumns=Select the columns to show ExecutablesView_SelectExeFile=Select an executable file