1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-08 19:13:27 +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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
* *
* Contributors: * Contributors:
* Nokia - Initial API and implementation * Nokia - Initial API and implementation
* IBM Corporation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.views.executables; package org.eclipse.cdt.debug.internal.ui.views.executables;
@ -370,7 +371,7 @@ public class ExecutablesView extends ViewPart {
} }
private Action createRemoveAction() { private Action createRemoveAction() {
Action action = new Action("Remove") { Action action = new Action(Messages.ExecutablesView_Remove) {
public void run() { public void run() {
ISelection selection = getExecutablesViewer().getSelection(); ISelection selection = getExecutablesViewer().getSelection();
@ -384,11 +385,11 @@ public class ExecutablesView extends ViewPart {
} }
final Executable[] selectedExesArray = selectedExes.toArray(new Executable[selectedExes.size()]); 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) if (confirm)
{ {
Job removeJob = new UIJob("Remove Executables") { Job removeJob = new UIJob(Messages.ExecutablesView_RemoveExes) {
public IStatus runInUIThread(IProgressMonitor monitor) { public IStatus runInUIThread(IProgressMonitor monitor) {
IStatus result = ExecutablesManager.getExecutablesManager().removeExecutables(selectedExesArray, monitor); IStatus result = ExecutablesManager.getExecutablesManager().removeExecutables(selectedExesArray, monitor);
@ -402,7 +403,7 @@ public class ExecutablesView extends ViewPart {
message.append(children[i].getMessage()); message.append(children[i].getMessage());
} }
} }
MessageDialog.openWarning(getSite().getShell(), "Remove Executables", message.toString()); MessageDialog.openWarning(getSite().getShell(), Messages.ExecutablesView_RemoveExes, message.toString());
} }
return result; 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.setImageDescriptor(ExecutablesView.DESC_REMOVE);
action.setDisabledImageDescriptor(ExecutablesView.DESC_REMOVE_DISABLED); action.setDisabledImageDescriptor(ExecutablesView.DESC_REMOVE_DISABLED);
action.setEnabled(false); 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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
* *
* Contributors: * Contributors:
* Nokia - initial API and implementation * Nokia - initial API and implementation
* IBM Corporation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.views.executables; 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 ExecutablesContentProvider_FetchingExecutables;
public static String ExecutablesView_Columns; public static String ExecutablesView_Columns;
public static String ExecutablesView_ConfigureColumns; public static String ExecutablesView_ConfigureColumns;
public static String ExecutablesView_ConfirmRemoveExe;
public static String ExecutablesView_ConfirmRemoveSelected;
public static String ExecutablesView_ExeData; public static String ExecutablesView_ExeData;
public static String ExecutablesView_ExeLocation; public static String ExecutablesView_ExeLocation;
public static String ExecutablesView_ExeName; public static String ExecutablesView_ExeName;
@ -29,6 +32,9 @@ public class Messages extends NLS {
public static String ExecutablesView_ImportExecutables; public static String ExecutablesView_ImportExecutables;
public static String ExecutablesView_Refresh; public static String ExecutablesView_Refresh;
public static String ExecutablesView_RefreshList; 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_Select_Executable;
public static String ExecutablesView_SelectColumns; public static String ExecutablesView_SelectColumns;
public static String ExecutablesView_SelectExeFile; 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 # All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0 # are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at # which accompanies this distribution, and is available at
@ -7,10 +7,13 @@
# #
# Contributors: # Contributors:
# Nokia - initial API and implementation # Nokia - initial API and implementation
# IBM Corporation
############################################################################### ###############################################################################
ExecutablesContentProvider_FetchingExecutables=Fetching executables ExecutablesContentProvider_FetchingExecutables=Fetching executables
ExecutablesView_Columns=Columns ExecutablesView_Columns=Columns
ExecutablesView_ConfigureColumns=Configure 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_ExeData=Executable Date
ExecutablesView_ExeLocation=Executable Location ExecutablesView_ExeLocation=Executable Location
ExecutablesView_ExeName=Executable Name ExecutablesView_ExeName=Executable Name
@ -23,6 +26,9 @@ ExecutablesView_ImportExe=Import an executable file
ExecutablesView_ImportExecutables=Import Executables ExecutablesView_ImportExecutables=Import Executables
ExecutablesView_Refresh=Refresh ExecutablesView_Refresh=Refresh
ExecutablesView_RefreshList=Refresh the list of executables 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_Select_Executable=Select Executable
ExecutablesView_SelectColumns=Select the columns to show ExecutablesView_SelectColumns=Select the columns to show
ExecutablesView_SelectExeFile=Select an executable file ExecutablesView_SelectExeFile=Select an executable file