diff options
author | Yannick Mayeur | 2017-05-04 09:51:21 +0000 |
---|---|---|
committer | Jonah Graham | 2017-05-09 10:39:06 +0000 |
commit | 832f7f5a47eca6ea4a87abe644885f6f1a861f00 (patch) | |
tree | 3d9d1040930c502a27d123216bc7a6e08b0e9072 /debug/org.eclipse.cdt.debug.ui/src | |
parent | 60503efc58695602d37fe5d6bdc2b0bacd4fb6a4 (diff) | |
download | org.eclipse.cdt-832f7f5a47eca6ea4a87abe644885f6f1a861f00.tar.gz org.eclipse.cdt-832f7f5a47eca6ea4a87abe644885f6f1a861f00.tar.xz org.eclipse.cdt-832f7f5a47eca6ea4a87abe644885f6f1a861f00.zip |
Bug 515296: Changed the message when only Address
When the Source Not Found Editor opens with only an address, the message
is changed, to confuse the user less.
Change-Id: I1dcc9fae80d20975b00d2d356469ddda8c2d8d2b
Signed-off-by: Yannick Mayeur <yannick.mayeur@gmail.com>
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
Also-by: Pierre Sachot <sachot.pierre@laposte.net>
Also-by: Jonah Graham <jonah@kichwacoders.com>
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui/src')
2 files changed, 10 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java index 59349d19989..e6daf48c58f 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java @@ -176,11 +176,18 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor { if (context == null) return super.getText(); String contextDescription; + boolean isAddressOnly; ICSourceNotFoundDescription description = context.getAdapter(ICSourceNotFoundDescription.class); - if (description != null) + if (description != null) { contextDescription = description.getDescription(); - else + isAddressOnly = description.isAddressOnly(); + } else { contextDescription = context.toString(); + isAddressOnly = false; + } + if (isAddressOnly) { + return NLS.bind(SourceLookupUIMessages.CSourceNotFoundEditor_8, contextDescription); + } return NLS.bind(SourceLookupUIMessages.CSourceNotFoundEditor_3, contextDescription); } } diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties index 0cf258584e5..0d2889b9a04 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties @@ -54,6 +54,7 @@ CSourceNotFoundEditor_4=View Disassembly... CSourceNotFoundEditor_5=Edit Source Lookup Path... CSourceNotFoundEditor_6=Configure when this editor is shown CSourceNotFoundEditor_7=Preferences... +CSourceNotFoundEditor_8=Break at address \"{0}\" with no debug information available, or outside of program code. CompilationDirectorySourceContainerDialog_0=Directory Selection CompilationDirectorySourceContainerDialog_1=Choose directory to add: CompilationDirectorySourceContainerDialog_2=Compilation directory |