mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
[242714] Esc on Multiple Rename Dialog doesn't close the dialog
This commit is contained in:
parent
20933435f4
commit
79002cfacc
1 changed files with 13 additions and 6 deletions
|
@ -14,6 +14,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
||||||
* David McKnight (IBM) - [226143] [api][breaking] Make RSE rename/delete dialogs internal
|
* David McKnight (IBM) - [226143] [api][breaking] Make RSE rename/delete dialogs internal
|
||||||
|
* David McKnight (IBM) - [242714] Esc on Multiple Rename Dialog doesn't close the dialog
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.dialogs;
|
package org.eclipse.rse.internal.ui.dialogs;
|
||||||
|
@ -146,6 +147,8 @@ public class SystemRenameDialog extends SystemPromptDialog
|
||||||
public boolean canModify(Object element, String property)
|
public boolean canModify(Object element, String property)
|
||||||
{
|
{
|
||||||
boolean modifiable = property.equals(ISystemPropertyConstants.P_NEWNAME);
|
boolean modifiable = property.equals(ISystemPropertyConstants.P_NEWNAME);
|
||||||
|
if (modifiable)
|
||||||
|
{
|
||||||
if ((cellEditor != null) && (cellEditor.getControl() != null))
|
if ((cellEditor != null) && (cellEditor.getControl() != null))
|
||||||
{
|
{
|
||||||
SystemRenameTableRow row = (SystemRenameTableRow)element;
|
SystemRenameTableRow row = (SystemRenameTableRow)element;
|
||||||
|
@ -154,6 +157,7 @@ public class SystemRenameDialog extends SystemPromptDialog
|
||||||
limit = 1000;
|
limit = 1000;
|
||||||
((Text)cellEditor.getControl()).setTextLimit(limit);
|
((Text)cellEditor.getControl()).setTextLimit(limit);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return modifiable;
|
return modifiable;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -529,6 +533,9 @@ public class SystemRenameDialog extends SystemPromptDialog
|
||||||
e.doit = true;
|
e.doit = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (detail == SWT.TRAVERSE_ESCAPE || e.detail == SWT.TRAVERSE_RETURN) {
|
||||||
|
e.doit = false;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
e.doit = true;
|
e.doit = true;
|
||||||
ignoreSelection = false;
|
ignoreSelection = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue