mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
Fix for bug 60872. Accessibility: Run/Debug configuration dialog has duplicate mnemonics.
Warning cleanup.
This commit is contained in:
parent
dbcc3f2792
commit
e0cd851712
4 changed files with 18 additions and 8 deletions
|
@ -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
|
||||
Added the rendering method for debugger processes.
|
||||
* src/org/eclise/cdt/launch/AbstractCLaunchDelegate.java
|
||||
|
|
|
@ -116,5 +116,6 @@ Launch.common.Exception_occurred_reading_configuration_EXCEPTION=Exception occur
|
|||
Launch.common.DebuggerColon=Debugger:
|
||||
Launch.common.BinariesColon=Binaries:
|
||||
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
|
|
@ -40,6 +40,7 @@ import org.eclipse.jface.viewers.TableLayout;
|
|||
import org.eclipse.jface.viewers.TableViewer;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.jface.viewers.ViewerSorter;
|
||||
import org.eclipse.jface.window.Window;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.ModifyEvent;
|
||||
import org.eclipse.swt.events.ModifyListener;
|
||||
|
@ -342,7 +343,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
|||
|
||||
protected void newEntry() {
|
||||
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());
|
||||
fVariableList.refresh();
|
||||
}
|
||||
|
@ -413,7 +414,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
|||
|
||||
protected void doEdit(Map.Entry entry) {
|
||||
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.setProperty(dialog.getName(), dialog.getValue());
|
||||
fVariableList.refresh();
|
||||
|
|
|
@ -38,6 +38,7 @@ import org.eclipse.debug.core.ILaunchConfiguration;
|
|||
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
|
||||
import org.eclipse.jface.dialogs.MessageDialog;
|
||||
import org.eclipse.jface.viewers.ILabelProvider;
|
||||
import org.eclipse.jface.window.Window;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.custom.BusyIndicator;
|
||||
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() {
|
||||
|
||||
public void widgetSelected(SelectionEvent evt) {
|
||||
|
@ -171,7 +172,7 @@ public class CMainTab extends CLaunchConfigurationTab {
|
|||
});
|
||||
|
||||
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() {
|
||||
|
||||
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.setMultipleSelection(false);
|
||||
//dialog.set
|
||||
if (dialog.open() == ElementListSelectionDialog.OK) {
|
||||
if (dialog.open() == Window.OK) {
|
||||
IBinary binary = (IBinary)dialog.getFirstResult();
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -418,7 +419,7 @@ public class CMainTab extends CLaunchConfigurationTab {
|
|||
if (cProject != null) {
|
||||
dialog.setInitialSelections(new Object[]{cProject});
|
||||
}
|
||||
if (dialog.open() == ElementListSelectionDialog.OK) {
|
||||
if (dialog.open() == Window.OK) {
|
||||
return (ICProject)dialog.getFirstResult();
|
||||
}
|
||||
} catch (CModelException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue