Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYannick Mayeur2017-05-04 09:51:21 +0000
committerJonah Graham2017-05-09 10:39:06 +0000
commit832f7f5a47eca6ea4a87abe644885f6f1a861f00 (patch)
tree3d9d1040930c502a27d123216bc7a6e08b0e9072 /debug/org.eclipse.cdt.debug.ui/src
parent60503efc58695602d37fe5d6bdc2b0bacd4fb6a4 (diff)
downloadorg.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')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java11
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties1
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

Back to the top