1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-07 18:43:32 +02:00

Bug 314700 - TVT36:TCT349: PLK Untranslated tooltip in Executables view

This commit is contained in:
Vivian Kong 2010-05-27 15:27:41 +00:00
parent b220c5a3c7
commit 3c7225052b
3 changed files with 21 additions and 8 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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