1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Fix for bug 60872. Accessibility: Run/Debug configuration dialog has duplicate mnemonics.

Warning cleanup.
This commit is contained in:
Mikhail Khodjaiants 2004-06-21 21:55:20 +00:00
parent dbcc3f2792
commit e0cd851712
4 changed files with 18 additions and 8 deletions

View file

@ -1,3 +1,10 @@
2004-06-21 Mikhail Khodjaiants
Fix for bug 60872. Accessibility: Run/Debug configuration dialog has duplicate mnemonics.
Warning cleanup.
* LaunchUIPluginResources.properties
* CEnvironmentTab.java
* CMainTab.java
2004-05-09 Mikhail Khodjaiants 2004-05-09 Mikhail Khodjaiants
Added the rendering method for debugger processes. Added the rendering method for debugger processes.
* src/org/eclise/cdt/launch/AbstractCLaunchDelegate.java * src/org/eclise/cdt/launch/AbstractCLaunchDelegate.java

View file

@ -116,5 +116,6 @@ Launch.common.Exception_occurred_reading_configuration_EXCEPTION=Exception occur
Launch.common.DebuggerColon=Debugger: Launch.common.DebuggerColon=Debugger:
Launch.common.BinariesColon=Binaries: Launch.common.BinariesColon=Binaries:
Launch.common.QualifierColon=Qualifier: Launch.common.QualifierColon=Qualifier:
Launch.common.B&rowse...=B&rowse... Launch.common.Browse_1=&Browse
Launch.common.Browse_2=B&rowse
Launch.common.Project_does_not_exist=Project does not exist Launch.common.Project_does_not_exist=Project does not exist

View file

@ -40,6 +40,7 @@ import org.eclipse.jface.viewers.TableLayout;
import org.eclipse.jface.viewers.TableViewer; import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerSorter; import org.eclipse.jface.viewers.ViewerSorter;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT; import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.events.ModifyListener;
@ -342,7 +343,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
protected void newEntry() { protected void newEntry() {
EntryDialog dialog = new EntryDialog(new String(), new String(), false); EntryDialog dialog = new EntryDialog(new String(), new String(), false);
if (dialog.open() == EntryDialog.OK) { if (dialog.open() == Window.OK) {
fElements.setProperty(dialog.getName(), dialog.getValue()); fElements.setProperty(dialog.getName(), dialog.getValue());
fVariableList.refresh(); fVariableList.refresh();
} }
@ -413,7 +414,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
protected void doEdit(Map.Entry entry) { protected void doEdit(Map.Entry entry) {
EntryDialog dialog = new EntryDialog(entry.getKey().toString(), entry.getValue().toString(), true); EntryDialog dialog = new EntryDialog(entry.getKey().toString(), entry.getValue().toString(), true);
if (dialog.open() == EntryDialog.OK) { if (dialog.open() == Window.OK) {
fElements.remove(entry.getKey()); fElements.remove(entry.getKey());
fElements.setProperty(dialog.getName(), dialog.getValue()); fElements.setProperty(dialog.getName(), dialog.getValue());
fVariableList.refresh(); fVariableList.refresh();

View file

@ -38,6 +38,7 @@ import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT; import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.BusyIndicator; import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyEvent;
@ -127,7 +128,7 @@ public class CMainTab extends CLaunchConfigurationTab {
} }
}); });
fProjButton = createPushButton(projComp, LaunchUIPlugin.getResourceString("Launch.common.B&rowse..."), null); //$NON-NLS-1$ fProjButton = createPushButton(projComp, LaunchUIPlugin.getResourceString("Launch.common.Browse_1"), null); //$NON-NLS-1$
fProjButton.addSelectionListener(new SelectionAdapter() { fProjButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent evt) { public void widgetSelected(SelectionEvent evt) {
@ -171,7 +172,7 @@ public class CMainTab extends CLaunchConfigurationTab {
}); });
Button fBrowseForBinaryButton; Button fBrowseForBinaryButton;
fBrowseForBinaryButton = createPushButton(mainComp, LaunchUIPlugin.getResourceString("Launch.common.B&rowse..."), null); //$NON-NLS-1$ fBrowseForBinaryButton = createPushButton(mainComp, LaunchUIPlugin.getResourceString("Launch.common.Browse_2"), null); //$NON-NLS-1$
fBrowseForBinaryButton.addSelectionListener(new SelectionAdapter() { fBrowseForBinaryButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent evt) { public void widgetSelected(SelectionEvent evt) {
@ -289,7 +290,7 @@ public class CMainTab extends CLaunchConfigurationTab {
dialog.setLowerListLabel(LaunchUIPlugin.getResourceString("Launch.common.QualifierColon")); //$NON-NLS-1$ dialog.setLowerListLabel(LaunchUIPlugin.getResourceString("Launch.common.QualifierColon")); //$NON-NLS-1$
dialog.setMultipleSelection(false); dialog.setMultipleSelection(false);
//dialog.set //dialog.set
if (dialog.open() == ElementListSelectionDialog.OK) { if (dialog.open() == Window.OK) {
IBinary binary = (IBinary)dialog.getFirstResult(); IBinary binary = (IBinary)dialog.getFirstResult();
fProgText.setText(binary.getResource().getProjectRelativePath().toString()); fProgText.setText(binary.getResource().getProjectRelativePath().toString());
} }
@ -343,7 +344,7 @@ public class CMainTab extends CLaunchConfigurationTab {
} }
}); });
if (dialog.open() == ElementTreeSelectionDialog.CANCEL) { if (dialog.open() == Window.CANCEL) {
return; return;
} }
@ -418,7 +419,7 @@ public class CMainTab extends CLaunchConfigurationTab {
if (cProject != null) { if (cProject != null) {
dialog.setInitialSelections(new Object[]{cProject}); dialog.setInitialSelections(new Object[]{cProject});
} }
if (dialog.open() == ElementListSelectionDialog.OK) { if (dialog.open() == Window.OK) {
return (ICProject)dialog.getFirstResult(); return (ICProject)dialog.getFirstResult();
} }
} catch (CModelException e) { } catch (CModelException e) {