1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

make it clear that the action if for "C Local Appliation"

This commit is contained in:
Alain Magloire 2003-03-18 14:34:44 +00:00
parent 50c8567614
commit 78f2019cdd
2 changed files with 8 additions and 8 deletions

View file

@ -70,7 +70,7 @@
<extension <extension
point="org.eclipse.debug.ui.launchShortcuts"> point="org.eclipse.debug.ui.launchShortcuts">
<shortcut <shortcut
label="C Application" label="C Local Application"
icon="icons/c_app.gif" icon="icons/c_app.gif"
modes="run, debug" modes="run, debug"
class="org.eclipse.cdt.launch.internal.CApplicationLaunchShortcut" class="org.eclipse.cdt.launch.internal.CApplicationLaunchShortcut"

View file

@ -256,11 +256,11 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
protected IBinary chooseBinary(List binList, String mode) { protected IBinary chooseBinary(List binList, String mode) {
ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), new WorkbenchLabelProvider()); ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), new WorkbenchLabelProvider());
dialog.setElements(binList.toArray()); dialog.setElements(binList.toArray());
dialog.setTitle("C ApplicationAction"); //$NON-NLS-1$ dialog.setTitle("C Local Application"); //$NON-NLS-1$
if (mode.equals(ILaunchManager.DEBUG_MODE)) { if (mode.equals(ILaunchManager.DEBUG_MODE)) {
dialog.setMessage("Choose an application to debug"); //$NON-NLS-1$ dialog.setMessage("Choose a local application to debug"); //$NON-NLS-1$
} else { } else {
dialog.setMessage("Choose an application to run"); //$NON-NLS-1$ dialog.setMessage("Choose a local application to run"); //$NON-NLS-1$
} }
dialog.setMultipleSelection(false); dialog.setMultipleSelection(false);
if (dialog.open() == ElementListSelectionDialog.OK) { if (dialog.open() == ElementListSelectionDialog.OK) {
@ -313,11 +313,11 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
} catch (InterruptedException e) { } catch (InterruptedException e) {
return; return;
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
MessageDialog.openError(getShell(), "C Application Launcher", e.getMessage()); MessageDialog.openError(getShell(), "C Local Application Launcher", e.getMessage());
return; return;
} }
if (results.size() == 0) { if (results.size() == 0) {
MessageDialog.openError(getShell(), "C Application Launcher", "Launch failed no binaries"); MessageDialog.openError(getShell(), "C Local Application Launcher", "Launch failed no binaries");
} else { } else {
IBinary bin = chooseBinary(results, mode); IBinary bin = chooseBinary(results, mode);
if (bin != null) { if (bin != null) {
@ -325,7 +325,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
} }
} }
} else { } else {
MessageDialog.openError(getShell(), "C Application Launcher", "Launch failed no project selected"); MessageDialog.openError(getShell(), "C Local Application Launcher", "Launch failed no project selected");
} }
} }