Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorKen Ryall2007-07-31 03:30:54 +0000
committerKen Ryall2007-07-31 03:30:54 +0000
commitcd9c320af71608ad7a87f27522db169c21fd3bf4 (patch)
treec393f9f1070172aac949c0bd53b308b89473a920 /debug
parent7b8d15251672e3f90875c1c99cf1724b85dae3b6 (diff)
downloadorg.eclipse.cdt-cd9c320af71608ad7a87f27522db169c21fd3bf4.tar.gz
org.eclipse.cdt-cd9c320af71608ad7a87f27522db169c21fd3bf4.tar.xz
org.eclipse.cdt-cd9c320af71608ad7a87f27522db169c21fd3bf4.zip
Give each button a uid.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java14
1 files changed, 11 insertions, 3 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 5213b647e87..7e116f54d40 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
@@ -46,7 +46,6 @@ import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IViewReference;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
@@ -59,7 +58,12 @@ import org.eclipse.ui.PlatformUI;
public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
public final String foundMappingsContainerName = "Found Mappings"; //$NON-NLS-1$
-
+ private static final String UID_KEY = ".uid"; //$NON-NLS-1$
+ private static final String UID_CLASS_NAME = CSourceNotFoundEditor.class.getName();
+ public static final String UID_DISASSEMBLY_BUTTON = UID_CLASS_NAME+ "disassemblyButton"; //$NON-NLS-1$
+ public static final String UID_LOCATE_FILE_BUTTON = UID_CLASS_NAME+ "locateFileButton"; //$NON-NLS-1$
+ public static final String UID_EDIT_LOOKUP_BUTTON = UID_CLASS_NAME+ "editLookupButton"; //$NON-NLS-1$
+
private String missingFile;
private ILaunch launch;
private IDebugElement context;
@@ -131,7 +135,9 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
public void widgetSelected(SelectionEvent evt) {
viewDisassembly();
}
- });
+ });
+ disassemblyButton.setData(UID_KEY, UID_DISASSEMBLY_BUTTON);
+
}
{
@@ -147,6 +153,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
locateFile();
}
});
+ locateFileButton.setData(UID_KEY, UID_LOCATE_FILE_BUTTON);
}
{
@@ -162,6 +169,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
editSourceLookupPath();
}
});
+ editLookupButton.setData(UID_KEY, UID_EDIT_LOOKUP_BUTTON); //$NON-NLS-1$
}
syncButtons();

Back to the top